Home › Forums › WoodMart support forum › How to Move Coupon Block before Payment Block In checkout Page
How to Move Coupon Block before Payment Block In checkout Page
- This topic has 17 replies, 2 voices, and was last updated 4 weeks, 1 day ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
January 31, 2025 at 4:24 pm #634491
gopal2k6.1983ParticipantHow to Move Coupon Block before Payment Block In checkout Page
Attachments:
You must be logged in to view attached files.January 31, 2025 at 4:26 pm #634493
gopal2k6.1983ParticipantI have tryied using hooks but when click on apply coupon button they trigger Place button. let me know
January 31, 2025 at 4:27 pm #634495
gopal2k6.1983ParticipantI am using Elementor Layout and Coupon based element does’t exist
February 1, 2025 at 10:13 am #634645
Aizaz Imtiaz AwanKeymasterHello,
To move the coupon block before the payment block on the checkout page, try to add the following code in function.php of the child theme.
remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 ); add_action( 'woocommerce_review_order_before_payment', 'woocommerce_checkout_coupon_form' );
This will place the coupon section above the payment methods.
Best Regards
February 1, 2025 at 11:14 am #634655
gopal2k6.1983ParticipantNo This is not working they trigger place order..
February 1, 2025 at 11:18 am #634658
gopal2k6.1983ParticipantNo This is not working they trigger place order..
February 1, 2025 at 5:23 pm #634710
Aizaz Imtiaz AwanKeymasterHello,
Sorry, there is no such option to move the coupon to a new position. It requires customizations and this is beyond our limitations and support policy.
Please follow this guide and move the coupon field. https://www.cloudways.com/blog/move-woocommerce-coupon-field/
Best Regards
February 1, 2025 at 6:28 pm #634724
gopal2k6.1983ParticipantIT’s works with Default theme but Not worked with Your theme. This is Bug and wrongly Override and created . Please fix otherwise i will raise a negative review
February 3, 2025 at 11:27 am #634893
Aizaz Imtiaz AwanKeymasterHello,
It is not possible to move the form there, as it creates a form within a form, which will not function correctly with any theme. Unfortunately, submitting one form will also trigger the submission of the outer form.
If you are able to achieve this using the default WooCommerce theme, please provide screenshots so we can review how it works in that setup.
Best Regards
February 3, 2025 at 11:44 am #634902
gopal2k6.1983Participantcoupon – 550ff
February 3, 2025 at 11:45 am #634903
gopal2k6.1983ParticipantI am using
Twenty Twenty-Four theme and fixed your theme soon as posible.
February 3, 2025 at 11:48 am #634904
gopal2k6.1983Participantit’s comes with checkout review block.
February 3, 2025 at 1:17 pm #634946
Aizaz Imtiaz AwanKeymasterHello,
You used Gutenberg for the Checkout page. In order to disable it, edit this page and remove all Gutenberg blocks. Then define such a shortcode for the checkout: https://take.ms/8yG9B and test how it works.
Best Regards,
February 3, 2025 at 3:48 pm #635032
gopal2k6.1983ParticipantOk Let me know how to remove this form I am trying remove action but this is not removing
remove_action( ‘woocommerce_before_checkout_form’, ‘woocommerce_checkout_coupon_form’, 10 );
February 4, 2025 at 11:33 am #635217
Aizaz Imtiaz AwanKeymasterHello,
You can remove the coupon form by using a custom layout for the checkout page.
Navigate to layout and create a Checkout Layout for “checkout Top Content”, You can remove the coupon form, This way, the coupon form won’t appear.
Further, you can read more about the Layout Builder here: https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/
Best Regards,
February 4, 2025 at 12:03 pm #635229
gopal2k6.1983ParticipantPlease chek before wrong instruction. Coupon section not manage via layout. it’s come fromm code and unable to remove from Code also..
Please do in website i alredy gave a details.
February 4, 2025 at 12:07 pm #635232
gopal2k6.1983Participantplease look screenshot
February 4, 2025 at 2:52 pm #635302
Aizaz Imtiaz AwanKeymasterHello,
You need to create a checkout layout for “Top content”.
https://ibb.co/tP2krLRdBut I have checked your site and the coupon form is not showing in checkout on top.
https://ibb.co/VcfZGHHzBest regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register