Skip to content
Advertisement

How to reorder additional fields on checkout page in WooCommerce

I cant figure out how to reorder the additional fields, on the checkout page in WooCommerce.

I have added one extra field to the WooCommerce additional information section. I would like to show the time field first then the order notes below it.

This is the code that I am using:

JavaScript

However, this does not have the desired result. Can someone tell me what I’m doing wrong?

Advertisement

Answer

If you want to show your custom field first, and then the order notes.

You can either use:

JavaScript

OR use the woocommerce_before_order_notes action hook

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement