PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.6
ShopBuilder – WooCommerce Builder For Elementor v3.2.6
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Modules/CheckoutEditor/GeneralCheckout.php +0 -15 3.4.23.2.6 View file →
@@ -87,23 +87,8 @@
87 87 } elseif ( ! empty( $this->shipping_settings['shipping_postcode'] ) ) {
88 88 $fields['postcode'] = wp_parse_args( $this->shipping_settings['shipping_postcode'], $fields['postcode'] );
89 89 }
90 90 }
91 - // Inject priority from saved settings order so WC's address-i18n.js does not re-sort locale-managed fields with core defaults.
92 - $billing_keys = array_keys( $this->billing_settings );
93 - $shipping_keys = array_keys( $this->shipping_settings );
94 - foreach ( [ 'address_1', 'address_2', 'city', 'state', 'postcode' ] as $key ) {
95 - if ( empty( $fields[ $key ] ) ) {
96 - continue;
97 - }
98 - $billing_index = array_search( 'billing_' . $key, $billing_keys, true );
99 - $shipping_index = array_search( 'shipping_' . $key, $shipping_keys, true );
100 - if ( false !== $billing_index ) {
101 - $fields[ $key ]['priority'] = ( absint( $billing_index ) + 1 ) * 10;
102 - } elseif ( false !== $shipping_index ) {
103 - $fields[ $key ]['priority'] = ( absint( $shipping_index ) + 1 ) * 10;
104 - }
105 - }
106 91 return $fields;
107 92 }
108 93
109 94 /**