Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

Shopify Functions Delivery Customization

Rafał92
Shopify Partner
5 0 1

In the store, I have two types of products: those using general shipping rates and subscription products. Problems arise in two scenarios.

  1. When the cart contains only subscription products, users are limited to the subscription shipping method at the checkout, with no option to choose any other shipping method. In this case, I would like to display general shipping rates so that users can choose a convenient shipping option.

  2. The second issue occurs when a user purchases one-time products (using general shipping rates) along with a subscription product (subscriptions rate). In the checkout, all shipping methods are displayed (2 methods from general shipping rates and one subscription shipping rate). In this situation, I would like to hide the shipping method intended for subscription products.

When using Shopify Functions Delivery Customization to hide the subscription shipping rate and attempting to order only such products, an error of inability to place the order occurs. However, when the cart is mixed, all shipping methods are available.

 

  1. Is it possible to always display the general shipping rate to users when they have only subscription products in their cart?

  2. Is it possible to hide the subscription shipping rate when products are mixed (subscription and one-time purchases)?

Thank you for your help!

Reply 1 (1)

Rafał92
Shopify Partner
5 0 1

Maybe MoveOperation is good option?