I use this code to function.php in the child theme:
remove_action( ‘woocommerce_before_checkout_form’, ‘woocommerce_checkout_coupon_form’, 10 );
add_action( ‘woocommerce_review_order_after_cart_contents’, ‘woocommerce_checkout_coupon_form_custom’ );
function woocommerce_checkout_coupon_form_custom() {
echo ‘<tr class=”coupon-form”><td colspan=”2″>’;
wc_get_template(
‘checkout/form-coupon.php’,
array(
‘checkout’ => WC()->checkout(),
)
);
echo ‘</tr></td>’;
}
but the coupon field dont remove from the top position and appear twice.
i inpute this code to the storefront theme and works fine, the problem is with the woodmart child theme.
-
This reply was modified 1 year, 5 months ago by
antoniosvan.
-
This reply was modified 1 year, 5 months ago by
antoniosvan.