Presales: Can I move coupon input field?

QuestionsCategory: Woocommerce one page checkout and layouts ProPresales: Can I move coupon input field?
?s=48&d=mm&r=gJR Montano asked 1 year ago
Is it possible to move the coupon field (located above) and put it below REVIEW ORDERS? or simply below all the columns? Is this possible in pro version or even with some coding? I use divi theme btw.

1 Answers
?s=48&d=mm&r=grupinder answered 1 year ago
Hi @ Jr ,
It is not possible to put coupon form inside checkout form because it will disturb the flow of processing orders. But yes you can move its position from up to bottom. Here technically coupon form will remain outside the checkout form.
Please use the below code in function.php file.
remove_action( ‘woocommerce_before_checkout_form’, ‘woocommerce_checkout_coupon_form’, 10 );
add_action( ‘woocommerce_after_checkout_form’, ‘woocommerce_checkout_coupon_form’ );

It should resolve your issue.
Do let us know how it works.


Your Answer