32d98a8b by Jeff Balicki

sss

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent b081e7be
...@@ -291,7 +291,12 @@ function my_staff_checkout_field( $checkout ) { ...@@ -291,7 +291,12 @@ function my_staff_checkout_field( $checkout ) {
291 ) 291 )
292 ), $checkout->get_value( 'is_your_registration' )); 292 ), $checkout->get_value( 'is_your_registration' ));
293 293
294 294 echo '<tr class="coupon-form"><td colspan="2">';
295 wc_get_template(
296 'checkout/form-coupon.php',
297
298 );
299 echo '</td></tr>';
295 300
296 301
297 echo "</div></div><script> 302 echo "</div></div><script>
...@@ -380,7 +385,7 @@ function display_custom_meta_data_in_backend_orders( $order ){ ...@@ -380,7 +385,7 @@ function display_custom_meta_data_in_backend_orders( $order ){
380 /* 385 /*
381 * Hooking "Coupon form" after order total in checkout page with custom function 386 * Hooking "Coupon form" after order total in checkout page with custom function
382 */ 387 */
383 add_action( 'woocommerce_review_order_after_order_total', 'woocommerce_checkout_coupon_form_custom' ); 388 //add_action( 'woocommerce_review_order_after_order_total', 'woocommerce_checkout_coupon_form_custom' );
384 389
385 /* 390 /*
386 * Rendering html for "Coupon form" with custom function 391 * Rendering html for "Coupon form" with custom function
......
...@@ -36,7 +36,7 @@ if ( ! wc_coupons_enabled() ) { // @codingStandardsIgnoreLine. ...@@ -36,7 +36,7 @@ if ( ! wc_coupons_enabled() ) { // @codingStandardsIgnoreLine.
36 ?> 36 ?>
37 37
38 <div id="coupon-form" class="checkout_coupon" method="post" style="display:none;"> 38 <div id="coupon-form" class="checkout_coupon" method="post" style="display:none;">
39 <p><strong><?php esc_html_e( 'If you have a SJHCG staff coupon code, please apply it below.', 'woocommerce' ); ?></strong></p> 39 <p><?php esc_html_e( 'If you have a SJHCG staff coupon code, please apply it below.', 'woocommerce' ); ?></p>
40 40
41 <p class="form-row form-row-first"> 41 <p class="form-row form-row-first">
42 <input type="text" name="coupon_code" class="input-text" placeholder="<?php esc_attr_e( 'SJHCG staff coupon code', 'woocommerce' ); ?>" id="checkout_coupon_code" value="" /> 42 <input type="text" name="coupon_code" class="input-text" placeholder="<?php esc_attr_e( 'SJHCG staff coupon code', 'woocommerce' ); ?>" id="checkout_coupon_code" value="" />
......