Problem with shipping address when the Local Pickup in checkout block is selected #45234
EnriqueCarreon08
started this conversation in
Checkout Flow
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to update a plugin for quote shipping and pickup rates with the new blocks pages. The situation is the next:
The shipping address starts the quote and gets the shipping and pickup locations with dynamic prices and delivery times ( calculated according to zip codes ).
Example: I sent the zipcode 5000 to the shipping address
When I am in step 2 of the checkout and select Local Pickup, the billing address form changes the shipping address information like if "uses same" was marked.
Example I must change my zipcode in the billing information to 1000, but now too in the shipping address, the zipcode is 1000.
I understand that the shipping address isn't necessary when the local pickup location should be the destination address, however, if the shipping address changes, the calculation of rates starts again but with a different zip code.
Example
If a customer wish uses the pickup for a store with zipcode 5000 in the shipping address.
Then go to the checkout and select it in pickup locations.
Next, if the customer fills the billing with zip code 1000.
Then the calculation of rates starts again and throws a list of rates with locations different because the shipping address was updated.
Expected action: In step 2 of checkout when the Local Pickup is selected if the billing address is updated don't update the shipping address, if the "Use same address for billing" isn't selected.
Justification Better control for the customer information, better UX.
More information: For this case in CartUpdateCustomer.php the function get_route_post_response receives the shipping and billing information of the wc-block-data.js path: "/wc/store/v1/cart/update-customer".
I'll be very grateful if you provide me with a solution or if it is a duplicate issue then provide me the ticket or status of request.
Beta Was this translation helpful? Give feedback.
All reactions