Support » Plugin: WooCommerce » How to reorder woocommerce checkout fields Priority

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support gabrielfuentes

    (@gabrielfuentes)

    Hi there! 👋

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Thread Starter lucasl9

    (@lucasl9)

    I found the solution. There are third-party plugins that order fields using jquery. In my case it was a city filling plugin using the billing postcode.

    HEre is my snippet to override this plugin behavior.

    add_action( 'wp_head', function () { ?>
    <script>
    jQuery(document).ready(function()
    {
    	setTimeout(function() {  
    		jQuery('#billing_postcode_field').insertBefore('#billing_country_field');
          	jQuery('#shipping_postcode_field').insertBefore('#shipping_country_field');
    	},60);
    });
    </script>
    <?php } );
    • This reply was modified 9 months, 3 weeks ago by lucasl9.
    Plugin Support gabrielfuentes

    (@gabrielfuentes)

    That’s Awesome! Thanks for sharing that snippet with us 🙂

    Please feel free to open a new thread for any other thing we can help with.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to reorder woocommerce checkout fields Priority’ is closed to new replies.