Bugfix: Reordered fields NOT working in customer account address page
-
Hello,
I’ve had an issue with reordered fields for customer account page: my custom order set with Flexible Checkout Fields for WooCommerce was not working. The custom order was fine on checkout page only.
After some time of debbuging, I found that you’ve missed a check in class-flexible-checkout-fields-plugin.php on line 253:
Here
public function woocommerce_default_address_fields( $fields ) { if ( is_checkout() ) { foreach ( $fields as $key => $field ) { unset( $fields[ $key ]['priority'] ); } } return $fields; }
has to be
public function woocommerce_default_address_fields( $fields ) { if ( is_checkout() || is_account_page() ) { foreach ( $fields as $key => $field ) { unset( $fields[ $key ]['priority'] ); } } return $fields; }
Otherwise, the wc_address_i18n_params has priority and custom order not works.
I hope this fix will help other users and you as well, and will be included in the next update.
??
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Bugfix: Reordered fields NOT working in customer account address page’ is closed to new replies.