Shipping rules
Free shipping above an amount, a fixed price, a discount, a markup, extra days and hidden services, by region, cart, customer and channel.
Carriers quote the freight; shipping rules say what the store does with that quote. With them you offer, for example, free shipping above an amount to some states, a fixed price for a CEP range or a few more days for made-to-order products. Rules apply wherever freight is shown or charged: in the online store's cart and checkout, in the storefront API, at the point of sale, in quotes and in sales made in conversations. Setting up the carriers is in Shipping.
Where they are
In Settings → Store settings → Shipping, the Shipping rules card lists the rules in the order they run. There you create a rule (New rule), change the order with the arrows, turn each one on and off under Active, edit and delete. Below the list, Try the rules shows the effect before a customer sees it. Creating and editing takes the permission to change the store's settings.
How a rule works
A rule has a name (only the team sees it), conditions and an action. A blank condition applies to everything.
What the rule does (the action):
- Free shipping: on every service the rule reaches or, with Only on the cheapest service ticked, only on the cheapest of them. This is the usual case: the customer can still pick a faster service and pay for it.
- Fixed price: an amount instead of the quoted one.
- Discount (%) and Discount (R$): taken off the quoted amount, never below zero.
- Markup (%) and Markup (R$): added to the quoted amount.
- Extra days: adds days to the delivery time, without changing the price.
- Hide services: the services reached are not shown to the customer.
Destination: States (UF) and CEP ranges. With both filled in, either one matching is enough. The state comes from the CEP.
Cart:
- Subtotal from and Subtotal up to: the products' amount after discounts (coupon or negotiated discount) and before freight. Discounts that depend on the payment method, such as Pix's, are not taken off.
- Weight from and Weight up to, in kg: the weight of the quoted boxes, packaging included.
- Customer groups: applies to signed-in customers of one of the ticked groups. A visitor without an account is in no group. See Customers.
- Products in the cart: products, collections and categories. Some item in the cart is one of these needs one item; Every item in the cart is one of these needs the whole cart. The category is the product's own: ticking a category does not include its subcategories.
Services, channels and dates:
- Services: which freight options the rule reaches, by module (Central do Frete, Melhor Envio, Local delivery, Store pickup) and, if you want, by the service's or carrier's name, such as SEDEX or Jadlog. Without services, the rule reaches every carrier and local delivery, never store pickup. To change the pickup fee, pick Store pickup among the services. Pickup cannot be hidden.
- Channels: Online store, Point of sale, Quotes and Conversations. With no channel ticked, it applies everywhere.
- Starts at and Ends at: the rule only applies in that period.
Order matters
Rules run from top to bottom. Each service takes the first active rule that applies to it; the rules below no longer touch that service. A rule with Only on the cheapest service takes only the cheapest one the customer can pick, and does nothing when a rule above already changed that service; the other services stay open to the next rules. So put the more specific rules (a region, a group) above the more general ones.
Example: free shipping by region
To give free shipping above R$ 349,90 to SP, RJ and MG, and above R$ 499,90 to the rest of Brazil, create two rules, in this order:
- Free shipping Southeast: action Free shipping, with Only on the cheapest service ticked; States (UF) SP, RJ and MG; Subtotal from 349,90.
- Free shipping Brazil: action Free shipping, with Only on the cheapest service ticked; no state; Subtotal from 499,90.
A R$ 400,00 cart to São Paulo gets the cheapest service free through the first rule. The same cart to Bahia passes neither the first (the state) nor the second (the amount) and pays the quoted freight. At R$ 500,00, Bahia gets it too, through the second rule. The faster services keep the carrier's price, also in São Paulo above R$ 499,90: the second rule's cheapest service was already made free by the first.
To check, use Try the rules with a CEP from each region (for example 01310-100 and 40020-000), a product and the subtotal you want to try.
Try the rules
Enter the CEP, the Items (search the product, choose the variant and the quantity) and, if you want, the Subtotal (without it, the items' price counts), the Channel and the Customer group. Try quotes the items with the store's carriers and shows, for each service, the Quoted amount, what is Charged after the rules, the delivery time and the Rule that applied; a hidden service is struck through. Below, how much is left for free shipping. Nothing is saved.
What the customer sees
- In the cart and at checkout, each option shows its price after the rules. When a rule lowered the price, the default theme shows the carrier's amount struck through beside it.
- The side cart's free-shipping progress bar follows the rule that applies to the cart: before the customer enters a CEP, it counts only the rules without a destination (in the example, R$ 499,90); after, the one for their CEP (in the example, R$ 349,90 for SP). The side cart's own Frete grátis a partir de (R$) value, in the store editor, only applies to a store without a free-shipping rule; on its own, it only draws the bar and gives no free shipping.
- The price is checked again on the server at checkout, with the cart as it is: if a coupon took the cart out of the free-shipping range, or a rule changed, checkout stops and shows the new total before payment.
- The order keeps which rule set the freight, with the chosen freight.
Common questions
I created a rule and an open cart still shows the old price. Rules apply to quotes made from now on, and to open carts as soon as they change or go to payment. Ask the customer to calculate the freight again, or wait: at checkout the price is recalculated.
Free shipping does not show at the point of sale. Check the rule's Channels: without Point of sale ticked (with other channels ticked), it does not apply there. At the point of sale the freight can still be typed by hand.
The rule does not apply to a wholesale customer. Customer groups only recognizes signed-in customers. A visitor without an account is in no group.
Next steps
- Shipping: carriers, pickup and local delivery.
- Discounts and coupons: discounts on the products' amount.
- In-person sales: freight at the point of sale.