• Resolved aristosv

    (@aristosv)


    On the “Checkout” page, I am trying to move “Your order” to the top of the page using hooks.

    This works

    remove_action( 'woocommerce_checkout_order_review', 'woocommerce_order_review', 10 );
    add_action( 'woocommerce_before_checkout_form', 'woocommerce_order_review', 20 );

    But the title “Your order” remains at the bottom of the page, above the payment methods. It doesn’t move to the top.

    How can I fix this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • There isn’t a hook for that, so you’ll need to make a custom template.

    Copy
    wp-content/plugins/woocommerce/templates/checkout/form-checkout.php
    to
    wp-content/themes/your-child-theme/woocommerce/checkout/form-checkout.php
    and edit the copy.

    If your parent theme already has a custom copy, start with that.

    Thread Starter aristosv

    (@aristosv)

    You mean there is no hook specifically for the title? Sounds strange to have a hook to move “Your order” but not it’s title.

    • This reply was modified 3 years, 10 months ago by aristosv.

    I agree but have a look at form-checkout.php. Lots of hooks but not for the title. Its the only element that doesn’t.

    Thread Starter aristosv

    (@aristosv)

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘move Your order using hooks’ is closed to new replies.