Product-Specific Rules
Apply fees only when certain products are in cart.
How It Works
Instead of charging every order, you can:
- Apply fees to specific products only
- Set different fees per product
- Exclude products from fees
Setup
- Go to Settings → Rules
- Create a rule with your fee type and amount, and leave Set as default rule unticked (default rules can't be bound)
- Go to Settings → Products
- Click Bind Product (or Bind your first product if nothing is bound yet)
- Select the products this rule applies to, then pick the rule in Charge Rule
- Click Bind Product to save
Example: Fragile Items
Scenario: Glassware needs special packaging.
- Create rule "Fragile Handling" with a fixed $3.00 fee
- Bind to: All glassware products (use bulk binding to do them in one go)
- Widget text (the Widget Title in Settings → Cart Widget): "Add protective packaging". The widget title is shared by every fee in your store, so pick wording that also fits your other rules.
If you have no default rule, the fee only appears when glassware is in the cart. If you do have one, glassware uses Fragile Handling and everything else keeps the default (as long as the default rule has Apply fee to entire cart (once) unticked).
Example: Variable Gift Wrap
Scenario: Different products have different wrap costs.
A binding only picks a rule. It doesn't carry its own amount. So different amounts need separate rules:
Create three rules: "Gift Wrap Small" ($2.99), "Gift Wrap Medium" ($4.99) and "Gift Wrap Large" ($7.99)
Bind each group of products to its own rule:
- Small items: "Gift Wrap Small"
- Medium items: "Gift Wrap Medium"
- Large items: "Gift Wrap Large"
If the cost depends on price instead, one rule in Price ranges mode can do it without any binding per size.
Narrowing a default rule
A rule marked Set as default rule can't be bound, but you can narrow it. In the rule form, tick Use product exclusion to skip chosen products, or leave it unticked and pick Included Products so the rule only applies to those. An Included Products list only works while Apply fee to entire cart (once) is unticked. With that box ticked, every product you haven't excluded counts toward the cart total.
When a rule has an include or exclude list, a Charge only the selected sizes checkbox appears. When you pick a product you can also choose which sizes (variants) to include. Tick the box to apply the rule only to the sizes you picked. Leave it unticked and the rule applies to every size of a picked product.
Unsaved changes
On the Rules and Products pages, Shopify's Save and Discard bar appears at the top when you have unsaved changes. If you try to leave with unsaved changes, you'll be asked to confirm. Errors show as a red message at the top of the form and stay until you close them.
Tips
- Use product rules to keep fees contextual
- Customers respond better to relevant fees
- Test with various cart combinations
Going deeper
For the full binding workflow with screenshots (including why a rule marked Set as default rule cannot be bound to products), see Product-Specific Fees.