#shipping-state field is removed from Checkout page when using blocks
-
Hey there,
Hope you are doing well!
We have a select field with Id=”shipping-state” in the checkout blocks, this field must exist, it can change the label again like in Canada, Japan, or it can even be hidden, but it cannot be removed.
In traditional checkout the plugin works correctly, leaving the field hidden as we can see in the file includes/class-wc-gzd-checkout.php line 431public function filter_de_states_locale( $locale ) { if ( $this->disable_de_state_select() && isset( $locale['DE'], $locale['DE']['state'] ) ) { $locale['DE']['state']['hidden'] = true; } return $locale; }
However, in block checkout the plugin removes the HTML element from the DOM, this action breaks when customer use Amazon Pay Express checkout
(The file responsible for this seems to be: assets/js/blocks/checkout-pickup-location-select/slotfills/pickup-location-select.js)?related thread in Amazon Pay plugin Support
Let us know if you need more information.
Best,
Christian
- You must be logged in to reply to this topic.