NEWDiscoverShipGoal– turn cart progress into bigger baskets
All articles

Create your first shipping rule

Use ShipWith to create Shopify shipping rules that control how existing delivery options appear at checkout. A rule can hide, show, rename, move, reorder, or sort those options. It does not create shipping rates, change their prices, or offer shipping discounts.

Before you start

Decide which checkout information your rule needs. You do not pick a Function input yourself: ShipWith picks it from the rule's conditions. See Choose the right Function input type for your rule to learn which conditions can be combined in one rule.

New rules start as Off. An inactive rule can be saved, but it does not change checkout.

Create the rule

  1. Open /app/rules/new in the embedded ShipWith app.
  2. In Rule name, replace New shipping rule with a name that describes what the rule does.
  3. Under When the rule runs, choose one option:
    • Always applies the actions whenever Shopify evaluates the rule.
    • When set conditions are met shows the Conditions section. Select Add condition to open the condition picker, search for the condition you need, and select it. Conditions that cannot be used with the rule's existing conditions appear greyed out under Can't be combined with your existing conditions. Add the conditions that must match before the actions run. Conditions gate the rule: if they do not match, the rule does not change any delivery options. See Choose when a shipping rule applies: conditions and groups for help combining conditions.
  4. Under Actions, open Select action and choose what the rule should do. Complete every field shown for that action. Depending on the action, these fields can include Delivery method titles, Delivery method type, Delivery method name or handle, Position, or New title.
  5. Optional: select Add new action to add another action. Actions run in the order shown.
  6. Leave Status set to Off while you review the rule. When it is ready to affect checkout, change Status to Live.
  7. Select Save.

ShipWith cannot save the rule until you choose an action and complete all required fields for every action. If the rule is active, saving syncs it to Shopify with other active rules that use the same Function input. Inactive rules do not sync as checkout behavior and do not change checkout.

Test the rule at checkout

  1. Add products to the cart that should match the rule.
  2. Go to checkout and enter any customer or destination details needed by the rule's conditions.
  3. Confirm that the existing delivery options are hidden, shown, renamed, moved, reordered, or sorted as configured.
  4. Repeat the test with details that should not match and confirm that the rule does not change the delivery options.

Shopify can split one cart into multiple delivery groups. Each delivery group is evaluated on its own and has its own delivery options. If your test checkout has more than one delivery group, check the result in each group rather than expecting one group's result to apply to all of them.

For the complete testing procedure, see Test your shipping rules at checkout.