Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Allow user to select different address as the shipping address in the cart

Allow user to select different address as the shipping address in the cart

ironpro
Shopify Partner
24 0 4

Hi,

I’m displaying the default user shipping address at the top of the cart as the default value in a select dropdown. I need to allow the user to select a different address as the shipping address for the cart. After that, when they click on checkout, the selected address should be reflected on the checkout page.

I tried implementing this on the storefront using JavaScript, but it didn’t work. Now, I’m considering resolving it using the Admin API and hosting the application on a third-party platform.

Is this approach possible? Has anyone had experience with this?

Thank you.

Screenshot_4.png

Developer
Replies 2 (2)

dave_shipperhq
Shopify Partner
79 3 8

Hi @ironpro - Interesting approach of showing the address on the cart. Is there a reason for it?

ironpro
Shopify Partner
24 0 4

Hi @dave_shipperhq 
Yes the idea is to calculate shipping rate on the cart.
So the customer should be able to select their shipping address.

Developer