Support » Plugin: WooCommerce » Reorder Checkout Fields

  • Resolved akshat05

    (@akshat05)


    Hi,

    I added the following snippet to change the order of state, shipping and postcode, but after changing the country, state, city and postcodes are going to the end. Please help me out with a solution.

    add_filter( 'woocommerce_shipping_fields', 'move_checkout_shipping_field', 10, 1 );
     
    function move_checkout_shipping_field( $address_fields ) {
            $address_fields['shipping_state']['priority'] = 44;
    	$address_fields['shipping_company']['priority'] = 15;
    	$address_fields['shipping_city']['priority'] = 46;
    	$address_fields['shipping_postcode']['priority'] = 48;
        return $address_fields;
    }

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Reorder Checkout Fields’ is closed to new replies.