Move Shipping and payment metods options after Billing/Shipping info
-
Hello,
I’m trying to redesign a website’s checkout. I want to move all the payment and shipping options under the billing information form (in column to the left) and keep the order review (products, subtotal, final total) and the coupon form in a seperate column to the right.So far, I have added the following lines to my functions.php
remove_action( ‘woocommerce_checkout_order_review’, ‘woocommerce_checkout_shipping’, 10 );
remove_action( ‘woocommerce_checkout_order_review’, ‘woocommerce_checkout_payment’, 20 );In form-checkout.php, I have added:
do_action( ‘woocommerce_checkout_shipping’ );
do_action( ‘woocommerce_checkout_payment’ );However, the payment methods have been removed from the order_review, but they do not display where the do_action is.
Also, the shipping methods are still under the order_review and in place of the do_action, I see the shipping details form. I guess woocommerce_checkout_shipping is about the form.How do I change checkout in order to create the layout I want?
In short, the order is:
left Column: Billing details – Shipping details – Shipping methods – payment methods – Pay button
Right column: Order review – Coupon input
My woocommerce version is 9.0.2Thank you in advance.
- You must be logged in to reply to this topic.