What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Update shipping price based on shopify API

Update shipping price based on shopify API

upadhyayvivek25
Shopify Partner
1 0 0

I created storefront using reactJS.
And i wanted to add shipping rate based on selected option on cart page.

 

I added 3 options on cart page.

1. "Ship to address"- the Standard shipping price will be ($20)

2. "Store Pickup"- the Standard shipping price will be ($10)

3. "Local delivery"- the Standard shipping price will be ($5)


So based on selected option the Shipping Method will visible any one as bellow
Standard Shipping($20) / Standard Shipping($10) / Standard Shipping($5)

Please suggest which Rest API or GraphQL will solve the problem. 

Reply 1 (1)

SebastianDiaz
Shopify Partner
1 0 0

You can use checkout "delivery customizations" for hiding/showing delivery methods https://shopify.dev/docs/apps/checkout/delivery-customizations/getting-started