on-internet
← Community

How to hide delivery method "SHIPPING" when "pickup-only" products are in the cart?

Stack Overflow ·

I have created an app for Shopify designed to enforce in-store pickup for specific products. However, the "shipping" option remains visible to customers. If a user switches to the shipping method while the cart contains items that are restricted to in-store pickup, an error message is displayed. These products are identified by the tag "pickup-only." I would like the shipping option to be completely removed from the checkout whenever such products are present in the cart. The code I am currently using to disable the shipping methods is provided below: GraphQL: query CartDeliveryOptionsTransfor

Comments

Sign in or sign up to comment and upvote.

No comments yet.