• avneeeesh

    (@avneeeesh)


    Hello!
    On the checkout page, when I enter the address (using an address autocomplete plugin), everything works fine and the shipping fees are calculated properly.
    However, when I edit those fields and enter a different address, it does not recalculate the shipping rates.

    This can be a major exploit. Please let me know how I can fix this, thanks!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Sofyan Sitorus

    (@sofyansitorus)

    Hi @avneeeesh,

    Thanks for reaching out, and for the detailed description. I can see exactly what’s happening here!

    You’ve correctly identified the root cause: when you change the address using your autocomplete plugin, WooCommerce’s checkout update mechanism isn’t being triggered, so WooReer never gets a chance to recalculate the shipping distance. This is a third-party address autocomplete plugin integration issue, not a bug in WooReer itself.

    What’s Happening Under the Hood

    WooReer (like all WooCommerce shipping plugins) relies on WooCommerce dispatches a request to the WooCommerce REST API endpoint whenever address fields change. Under normal circumstances, WooCommerce listens for change or blur events on its native checkout input fields and then dispatches a request to the WooCommerce REST API endpoint to recalculate rates.

    When an autocomplete plugin populates the address fields programmatically (rather than the customer typing directly), it often fills the inputs using JavaScript without triggering the native browser change event that WooCommerce is listening for. As a result:

    • The fields appear filled in visually ✅
    • But WooCommerce never detects a change ❌
    • So no REST API request is dispatched ❌
    • And WooReer never recalculates the distance or shipping rate ❌

    This matches precisely what you — and our developer notes — have observed: no request is being dispatched to the WooCommerce REST API endpoint when the address is updated.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.