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.
Which conditions can be combined
You do not choose a Function input when you create the rule. Add your conditions, and ShipWith picks a Function input that supports all of them. If a condition you need is greyed out under Can't be combined with your existing conditions, or missing from the operator list, it cannot run together with the conditions already on the rule.
- Cart contains with product operators works with Standard input, Shipping input, and Attribute input. Standard input is enough when you only need common cart, customer, discount, or basic shipping-address conditions.
- Cart contains with collection operators works only with Shipping input and Attribute input. Choosing a collection operator moves the rule to one of them.
- A Shipping method condition works with Shipping input. That condition checks available method titles and limits which methods the actions can change.
- Cart or line item attributes, cart weight, and variant-title conditions work with Attribute input.
- A Variant metafield or Product metafield condition checks a metafield instead of picked products and moves the rule to Catalog input. Use it when the group has too many products or variants to pick one by one. See "Target shipping methods with product or variant metafields".
To see which input the rule uses, open the Advanced card on the rule page.
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.
- 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. To target only some variants of a product, expand the product in the picker and select just those variants. The rule then checks each cart line's exact variant, so other variants of the same product do not match.
- Under Actions, select Hide specific delivery method(s).
- In Delivery method titles, enter
expressand press Enter. - Set Status to Live, then select Save.
- Check that the rule page shows no This rule is not running at checkout banner before testing.
Recipe 2: Hide express shipping for selected collections
- Create a shipping rule.
- Under When the rule runs, select When set conditions are met.
- Add a Cart contains condition.
- Choose a collection operator. ShipWith moves the rule to Shipping input or Attribute input, because only those inputs support collection operators. If the collection operators are missing, another condition on the rule needs an input that does not support them.
- 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.
- Check that the rule page shows no This rule is not running at checkout banner 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.
All conditions in a rule, across every group, must run on one Function input. For example, Shipping country works with product operators on Standard input, but it cannot be combined with collection operators, because neither Shipping input nor Attribute input supports Shipping country. In that case the condition shows greyed out under Can't be combined with your existing conditions.
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 10 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, it shows no This rule is not running at checkout banner, 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.
