Hide express shipping for specific products or collections
Use ShipWith to hide a Shopify shipping method by product or collection. This rule hides an existing express delivery option when the cart contains selected products or products from selected collections. It does not remove the rate from Shopify or change its price, and it hides a matching option only when the rule's conditions apply.
Choose a Function input
Choose the Function input when you create the rule. It is locked after the rule is saved.
- Standard input supports product selection under Cart contains, but it does not support collection selection. Choose it for the product recipe when you only need common cart, customer, discount, or basic shipping-address conditions.
- Shipping input supports both product and collection selection. Choose it when you also need a Shipping method condition. That condition checks available method titles and limits which methods the actions can change.
- Attribute input supports both product and collection selection. Choose it when you also need cart or line item attributes, cart weight, or variant-title conditions.
You do not need a Shipping method condition just to hide Express Shipping. The Hide specific delivery method(s) action has its own delivery-method target.
Recipe 1: Hide express shipping for selected products
- Create a shipping rule.
- Choose Standard input, Shipping input, or Attribute input. Use the guidance above to choose the input that provides any other conditions you need.
- Under When the rule runs, select When set conditions are met.
- Add a Cart contains condition.
- Choose a product operator:
- at least one selected product matches when any cart line is one of the products you select.
- only selected product(s) matches only when every cart line is one of the products you select. A mixed cart containing another product does not match.
- none of these product(s) matches when no cart line is one of the products you select.
- Select Select products, choose one or more products, and confirm the selection.
- Under Actions, select Hide specific delivery method(s).
- In Delivery method titles, enter
expressand press Enter. - Set Status to Live, then select Save.
- Under Shopify sync, wait for Status to become Synced before testing.
Recipe 2: Hide express shipping for selected collections
- Create a shipping rule.
- Choose Shipping input or Attribute input. Standard input does not make collection operators available.
- Under When the rule runs, select When set conditions are met.
- Add a Cart contains condition.
- Choose a collection operator:
- at least one product from collection(s) matches when any cart line belongs to any selected collection.
- only products from collection(s) matches only when every cart line belongs to at least one selected collection. A mixed cart containing a product outside the selected collections does not match.
- no products from collection(s) matches when no cart line belongs to any selected collection.
- Select Select collections, choose one or more collections, and confirm the selection.
- Under Actions, select Hide specific delivery method(s).
- In Delivery method titles, enter
expressand press Enter. - Set Status to Live, then select Save.
- Under Shopify sync, wait for Status to become Synced before testing.
Match the express method safely
Values in Delivery method titles match any part of a delivery option's title or handle, without regard to capitalization. For example, express can match Express Shipping, DHL Express, or a handle that contains express.
Use a more specific value if your checkout has another method whose title or handle also contains express. ShipWith can hide only delivery options that Shopify supplies to that delivery group.
See Match shipping methods by name or handle for the full target-matching behavior.
Add more conditions
Conditions in the same group use AND. Add a condition with Add condition (AND) when every condition must match. For example, put Cart contains and Shipping country in one group to hide express shipping only when both the product rule and country rule match.
Condition groups use OR. Select Add group (OR) when either complete group should make the rule run. For example, one group can select oversized products and another can select a restricted collection. Matching either group is enough.
A rule can have up to 4 groups, with up to 4 conditions in each group. An empty group does not match.
Test matching and nonmatching checkouts
Shopify can split a checkout into multiple delivery groups. ShipWith evaluates the rule for each group, while Cart contains checks the cart's lines. Inspect every delivery group in each test.
- Create a matching cart. For at least one operators, include a selected product or a product from a selected collection. For only operators, make sure every cart line matches.
- Continue to the checkout step that shows delivery options. In every delivery group, confirm that methods whose title or handle contains your target are hidden and that nonmatching methods remain available.
- Create a nonmatching cart. Remove the selected product, use products outside the selected collections, or add an outside product when testing an only operator.
- Return to the delivery-options step. In every delivery group, confirm that the targeted express method remains available when Shopify supplies it.
- If possible, test a checkout with more than one delivery group and with different methods in each group. Confirm that ShipWith hides a matching express option in each group but leaves methods with nonmatching titles and handles unchanged.
If the result is unexpected, confirm that the rule is Live, its sync status is Synced, the selected products or collections still match the cart, and the value in Delivery method titles matches the option title or handle supplied by Shopify.
