Shopify shipping rules by warehouse. Show a rate only when the whole cart ships from one location.
You name the rates. You group products by the warehouse that stocks them. At checkout, OfferGuard shows your special rate when every item in the cart can leave from one place, and hides it when the order would have to split. Qualifying orders can be routed to that warehouse and given a discount, automatically.
Hide or show named shipping rates based on what's in the cart
Pick the rate titles exactly as they appear in Settings, then Shipping and delivery. Matching is case-insensitive, so "Same-day Berlin" and "same day berlin" are the same rate.
Cart fits one warehouse
Every line is a product from a single rule's set. The gated rate stays visible next to your regular rates and the buyer can choose it.
Cart mixes warehouses
Products from two rules, or an item outside every rule, or a custom line item. The gated rate is hidden and only the regular rates remain.
One safety rule: if a shipment would be left with no rate at all, the gate leaves it alone. A mixed cart seeing the special rate is a smaller problem than a buyer who cannot check out.
Route qualifying orders to the right fulfillment location automatically
Each rule can carry a fulfillment location. When an order matches the rule, OfferGuard moves the fulfillment order there after Shopify finishes its own routing.
Move on rate
The order moves when the buyer chose one of your gated rates. On a split order, only the shipment on the gated rate is moved.
Move on products
The order moves whenever it contains only one rule's products, whichever rate the buyer picked.
Two triggers, one result
Shopify's routing-complete event fires first. Orders that Shopify skips are re-checked one minute and five minutes after creation.
Safe to repeat
A shipment already at the target location is skipped. Nothing is moved twice and nothing is moved that does not match a rule.
Discount a gated shipping rate when the buyer picks it
Set a fixed amount and a label. When the buyer selects one of the gated rates, the amount comes off the order subtotal and the label shows next to it at checkout. The discount follows the selection live, so switching back to a regular rate removes it. Shipping itself is never discounted; the gated rate is already priced by you.
1. Buyer selects the rate
An invisible checkout extension records the chosen delivery option.
2. Function checks the cart
The cart still has to belong to one rule's products, the same test the gate uses.
3. Discount applied
Fixed amount off the subtotal, with your label. No code to enter.
Stop split shipments before checkout, not after
The usual fix is to spot a two-warehouse order in admin and reshuffle it by hand. The gate settles it while the buyer is still choosing a rate.
Without the gate
- Express rate offered to every cart
- Mixed order lands at the default location
- Staff move fulfillment orders by hand
- Two parcels, two carrier bills, one refund request
With the gate
- Express rate shown only when one warehouse can ship it all
- Qualifying order routed to that warehouse
- Buyer rewarded for choosing the efficient rate
- Mixed carts see regular rates, no surprises later
Works with Shopify's native rates, no theme edits
The gate is a Shopify delivery customization Function. It runs server-side inside checkout, reads one configuration written by the OfferGuard admin, and hides rates by handle. Nothing is injected into your theme and there is no JavaScript to break. If the configuration is missing or turned off, the Function does nothing and checkout behaves exactly as before.
Set it up from the Shipping Gate tab: name the rates, build one rule per warehouse, pick a routing location, set the discount. The same identity engine that runs your offer rules is untouched by it.
Questions
Does this replace my Shopify shipping rates?
No. You keep creating rates in Settings, then Shipping and delivery. OfferGuard only decides whether a rate you name is shown or hidden at checkout, based on what is in the cart. Your regular rates are never touched.
What counts as a cart that qualifies?
Every line in the cart has to be a product from one rule's product set. One rule stands for one warehouse. A cart that mixes products from two rules, or adds anything outside a rule, does not qualify and only sees your regular rates.
Can a customer end up with no shipping option at all?
No. If a shipment group would be left with only gated rates, the gate leaves that group alone. The special rate is shown to a mixed cart rather than blocking checkout.
How does the order get moved to the right location?
After Shopify finishes its own order routing, OfferGuard checks whether the order matches a rule and, if you enabled routing on that rule, moves the fulfillment order to the location you chose. Orders that Shopify skips get re-checked one minute and five minutes after creation.
Which plan includes shipping rules?
Shipping rules are not gated behind a paid tier in the current build. They are available on every plan once the app is installed and the delivery customization is activated from the Shipping Gate tab.
Put your warehouses in charge of the rate list.
Install, name the rates, group the products. Nothing else changes.