Move Coupon Field in Checkout Woocommerce | digital marketing premium

Move Coupon Field in Checkout Woocommerce

Move Coupon Field in Checkout Woocommerce

I put this code in function.php and transferred it effectively. You can use this code to add the coupon add option from top to bottom on the cart section.

remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );
add_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_coupon_form', 5 );

After adding this code, you will see two coupon fields, you will have to add one more CSS code to remove it.

.woocommerce-form-coupon-toggle {
    display: none;
}

Leave a Comment

Your email address will not be published.