reordering checkout fields doesn’t work anymore on 3.0.4
-
Hi,
after updating to woocommerce 3.0.4, my code to reorder checkout fields is not working anymore (it worked in 3.0.3). This is the code:
add_filter("woocommerce_billing_fields", "ap_ja_order_billing_fields"); function ap_ja_order_billing_fields($fields) { $order = array( "billing_country", "billing_postcode", "billing_state", "billing_address_1", "billing_address_2", "billing_company", "billing_last_name", "billing_first_name", "billing_furigana_last_name", "billing_furigana_first_name", "billing_email", "billing_phone" ); foreach($order as $field) { $ordered_fields[$field] = $fields[$field]; } $fields = $ordered_fields; return $fields; }
No matter how I change it, it appears to randomly alter things, but first and last name always stay on top. It worked perfectly until 3.0.4.
Thank you for your help
Alessio
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘reordering checkout fields doesn’t work anymore on 3.0.4’ is closed to new replies.