mhmhmhmh
Forum Replies Created
-
Hello,
Thank you for the quick reply. I can confirm the fix is working and fixes the issue as intended.
I have two feature requests, you might be able to add to the release:
- Let admins select which fields are required from the backend (especially for phone)
- Form validation via regex for fields (address always has to contain a house nr, phone has to be certain format)
I am happy to help with the features if needed.
Hello,
Thank you for your very quick reply. I have tested the update and noticed an issue when using local pickup.Steps to reproduce
- Log in as a customer with a saved address.
- Select Local pickup as the delivery method.
- Return to the previous Contact step.
- Select Enter a new address.
Actual behaviour
Although Enter a new address is selected, the existing billing address is displayed underneath in its collapsed state with an Edit button.
After clicking Edit, the address fields open. However, as soon as I type a character into any field, the form immediately collapses again. This makes it impossible to enter or edit the address.
The issue persists whenever local pickup is selected.
Expected behaviour
Selecting Enter a new address should display empty, editable address fields and keep them open while the customer enters their details.
Comparison
The issue does not occur when Delivery is selected. In that case, selecting Enter a new address correctly opens the empty delivery-address fields, and they remain editable.
It appears that selecting local pickup changes the address section from the shipping address to the billing address. The address picker may still be tracking the previous shipping-address state, causing the billing form to be interpreted as an existing or changed address and repeatedly collapsed.
Possible cause
I checked
src/blocks/frontend.js. During local pickup, WooCommerce displays the billing address, butuseShippingAsBillingmay remain enabled. Unwan then repeatedly synchronizes the shipping address to the billing address and callssetEditingBillingAddress(false), causing the form to collapse after every keystroke.The fix would be to retrieve WooCommerce’s
prefersCollection()state and disable the shipping-to-billing synchronization while it istrue. The billing editor and billing address selection should remain active during collection.After changing the source file,
build/blocks/frontend.jsmust be rebuilt because this is the file loaded during checkout.