4

I'm using WooCommerce and i'm new to both Wordpress and this plugin. I have downloaded a free theme which I will configure, however I can't figure out how I can change the checkout template. What I want to do is moving payment options from bottom, to the top right column.

http://bildr.no/image/SWtmTlZo.jpeg

Which files do I need to edit?

1
  • 1
    This question is generic in the sense that it's not clear what is the approach, but it is very specific to Wordpress indeed.
    – kontur
    Commented Apr 5, 2018 at 8:29

1 Answer 1

7

You can customize the checkout page using hooks. To remove the payment options add the following code to your (child)theme's functions.php:

remove_action( 'woocommerce_checkout_order_review', 'woocommerce_checkout_payment', 20 );

To add it after the order notes use this hook:

add_action( 'woocommerce_after_order_notes', 'woocommerce_checkout_payment', 20 );
1
  • Perfect! I tried to move the template parts, but then they don't have the correct variables available. Like this, you can change the entire structure!
    – kontur
    Commented Apr 5, 2018 at 8:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.