How to change order of field in "edit shipping address"
-
Hello,
I’ve been struggling to change order of field in shipping address in Account page.
I could change the order of field in checkout field with this snippet,——————-
// Change Order
add_filter(“woocommerce_checkout_fields”, “order_fields”);function order_fields($fields) {
$order = array(
“shipping_country”,
“shipping_state”,
“shipping_postcode”,
“shipping_address_1”,
“shipping_address_2”,
“shipping_first_name”,
“shipping_phone”,
“shipping_delivery_place”,
“shipping_date”,
“shipping_time”);
foreach($order as $field)
{
$ordered_fields[$field] = $fields[“shipping”][$field];
}$fields[“shipping”] = $ordered_fields;
return $fields;}
———————-But in the edit shipping address page, it shows with default order (Same as order of billing address).
Please tell me how to change the order of field of only shipping address in Account page?
- The topic ‘How to change order of field in "edit shipping address"’ is closed to new replies.