Create your first shipping rule

Open Stores > Shipping Conditions and select Add Rule. Keep the first test narrow so the result is easy to verify.

Shipping Conditions rule grid with three active rules in a clear priority order

Example: rename Flat Rate for wholesale customers

  1. Enter a clear internal name such as Wholesale flat-rate label.
  2. Leave Active enabled.
  3. Select the intended store view and wholesale customer group.
  4. Set a unique priority. Lower numbers run first.
  5. Leave the date range empty unless the rule is temporary.
  6. Leave Conditions empty for this first scope-only rule.
  7. Add an exact target for carrier flatrate and method flatrate.
  8. Add Rename Method Title with the customer-facing title.
  9. Save the rule and test checkout as a customer in that group.

Scope and conditions

Every rule needs at least one store view and customer group. Dates use the selected store's current date and include both endpoints.

Conditions use Magento's sales-rule builder. An empty condition tree matches every quote address in the selected scope. For a virtual quote, Magento uses the billing address; otherwise it uses the shipping address.

See Customer conditions for the additional customer fields.

Priority and stopping

Rules run in ascending priority. Give overlapping rules different priorities because equal values do not provide a reliable tie-breaker.

Stop Further Rules stops later rules for a shipping rate after the current rule has matched its conditions and target. It is evaluated separately for each rate. Use it when a later rule must not alter the same method.

Each shipping rate is checked against active rules in ascending priority. A rule changes the rate only when its scope, conditions, and target match. Stop Further Rules ends evaluation for that rate; otherwise the next rule is checked.

Test before broadening

Check the rule with a matching and non-matching customer, address and cart. Then add more methods, groups or conditions. Run Validate Shipping Conditions from the rule grid before go-live.

Magento checkout showing the renamed contract delivery method at EUR 12.50 for a wholesale customer in Germany