SmartWP Plugins
Forum Replies Created
-
Thanks for confirming the fixes. We’ve pushed a new release, and it should be available to the public soon. If you have a moment, we’d really appreciate it if you could leave us a review.
We’ve also added both of your feature suggestions to our roadmap and will be looking at including them in a future update.
And you’re most certainly welcome to contribute. The plugin is available on GitHub here:
https://github.com/Smart-WP-Plugins/unwan-address-library-for-woocommerce
Feel free to submit a pull request or open an issue there. We’d be happy to have your contribution!
Thank you — that’s a valuable catch, and you diagnosed it correctly.
Updated test build – https://drive.google.com/file/d/1hb6ouIeb8SWqgJ2oKSoQUDxcMyOJv1rU/view?usp=sharingYou were right that
useShippingAsBillingstays enabled during local pickup.
We were able to reproduce this one directly, and it turns out it isn’t specific
to Germanized at all: it happens on a stock WooCommerce block checkout as soon
as local pickup is involved. So this affects more stores than just yours, and
we’re glad you found it.It was also doing more damage than the collapsing form suggested. Because Unwan
kept mirroring the shipping address into billing, the billing address was being
silently overwritten with the shipping/store address — which would have ended
up on the order. The collapsing form was the visible symptom of that.The fix is essentially what you proposed: Unwan now reads WooCommerce’s
prefersCollection()state and disables shipping-to-billing synchronisation
entirely while collection is active, leaving the billing editor and the billing
address picker fully in charge. And yes —build/blocks/frontend.jshas been
rebuilt, thank you for flagging that.We’ve verified on our own installation:
- Blocks checkout with pickup: “Enter a new address” opens empty fields and
they stay open and editable through a full address entry. - Blocks checkout with delivery: unchanged, “use same address for billing”
still works as before. - Classic checkout with pickup: unaffected (it has no shipping-to-billing
mirror), but tested and working.
Could you re-run your local pickup scenario,
and also re-check the original Germanized multi-level flow to make sure the
first fix still holds? If both look good we’ll publish this as the next
release.Thanks again — two good reports in a row, and the second one found something
that would have affected a lot of stores.Thank you for this — it’s an unusually good report, and your reading of
frontend.js pointed straight at the right area.Up front: we don’t have a Germanized Pro licence here, so we can’t reproduce
your exact setup. But we were able to work out the underlying cause from the
code with confidence, and it isn’t quite where it appears to be.The
customassignment you quoted sits behind a one-shot guard, so an ordinary
checkout state update can’t reach it a second time. The only way it re-runs is
if the checkout block is fully unmounted and remounted — which is what
Germanized’s multi-level checkout does as it re-renders its address step. Each
remount resets that guard, Unwan re-inspects the address you’re halfway through
typing, finds no exact match against your saved addresses, classifies it ascustom, and collapses the form. Hence “after almost any field change”.That also caused a second problem, which your suggested one-line fix wouldn’t
have caught: on each remount the half-typed address was being reclassified as
an edit of an existing saved address rather than a new one, which meant an
address you had explicitly chosen to enter as new would silently not be saved
to your address book after the order.We’ve fixed both:
- The picker’s selection now persists across remounts, so whatever you chose
stays chosen no matter how often a third-party checkout re-renders. This is
the actual root-cause fix, and it holds for any multi-step checkout plugin,
not just Germanized. - The native fields are now hidden only when a genuinely saved address is
selected.customkeeps them visible and editable — essentially your
suggestion, generalized. This is a deliberate second layer: even if some
other extension finds a new way to triggercustom, the form stays usable.
As a side effect this also fixes a related annoyance in classic checkout, where
correcting an address that wasn’t yet in your address book required wiping it
and retyping from scratch.I’ve attached a test build so you can verify before we publish. It installs
over your current version via Plugins → Add New → Upload Plugin (WordPress will
offer to replace the existing copy). The version number is intentionally left
unchanged, so this build won’t be silently overwritten by an update while
you’re testing. https://drive.google.com/file/d/1vB1oOtEz_oE163WFN4lYliP5IYgNOotM/view?usp=sharingSince we can’t reproduce the Germanized side ourselves, your confirmation is
what we’d be relying on. If you’re able, could you check three things?- The original flow — enter a new address in the Germanized billing step and
type through first name, postcode, city and street. The form should stay
open throughout. - That the new address actually appears in your address book afterwards
(this is the second bug described above). - That selecting an existing saved address still collapses the fields down to
the summary with the Change button, as before.
If all three look right we’ll ship it as the next release, and you’ll be able
to re-enable Unwan on your store. If anything still misbehaves, a screenshot or
a browser console log from the checkout step would help a lot.Thanks again for taking the time to dig into the source — it made this much
faster to pin down. - Blocks checkout with pickup: “Enter a new address” opens empty fields and