Support » Plugin: WooCommerce Address Book » Can i move the “Address Book” field in the checkout page?

  • Hi, I want to move the “Address Book” field at the top of the shipping details on the checkout page. Is it possible? Is there any hook to set the priority to move te field? It would be very helpful.

    Regards,
    Imran

Viewing 1 replies (of 1 total)
  • Plugin Contributor Matt Harrison

    (@matt-h-1)

    It currently does default to be at the top of the shipping details by using a priority of -1 by default.

    You can change this using the standard WooCommerce hooks to affect the checkout fields.

    Here is an example to move it to the bottom of the shipping details.

    function move_address_book_to_bottom( $fields ) {
    	if ( isset( $fields['shipping']['address_book'] ) ) {
    		$fields['shipping']['address_book']['priority'] = 100;
    	}
    
    	return $fields;
    }
    add_filter( 'woocommerce_checkout_fields', 'move_address_book_to_bottom', 10000, 1 );
    

    You can see here for more details on customizing the checkout fields.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.