Free Shipping Rules

Alfo - Functions gives free shipping and other shipping discounts when the cart, the customer or the country meets your conditions. This guide builds four rules step by step: free shipping over an order amount, free Express shipping over an order amount, free shipping for some countries, and free shipping for VIP customers. Each rule uses only conditions and settings that the Alfo discount editor offers.

For every condition, target and value of the discount function, see Conditional Discount.

What You Can Do

A shipping discount comes from a rule group that has Apply discount to shipping ticked. Its conditions decide when the discount applies, and its Shipping discount panel decides which delivery options get it and how much:

Field in the Shipping discount panelWhat it sets
Which delivery optionsThe delivery options that get the discount. See the next table.
Name matching, Delivery option namesWith By delivery option name: how the names match, and the names, separated by commas.
Max shipping priceOptional. The discount applies only when the shipping cost is at or below this amount.
Shipping discount valueDiscount type: Percentage off, Fixed amount off or Fixed price (set to), with its value and the Discount message (shown at checkout). Percentage off with the value 100 makes the shipping free.
Max discount amountShows with Fixed amount off. Optional. The amount off is capped at this amount.

Which delivery options has five choices:

Which delivery optionsSelects
All delivery groupsEvery delivery group of the cart. Shopify puts the items that can be shipped together in one delivery group.
First delivery groupOnly the first delivery group of the cart.
Cheapest optionThe one delivery option with the lowest cost. Options that cost 0 are not chosen.
Most expensive optionThe one delivery option with the highest cost. Options that cost 0 are not chosen.
By delivery option nameThe options whose name matches your list. Exactly matches compares the whole name. Contains finds your text in the name. All except (excludes) selects every option whose whole name is not in your list. The match ignores the case of the letters.

If a delivery rule renames an option, add the new name to Delivery option names and keep the old name: the discount reads the new name only in the carts where the rename rule applies. See Rename or Reorder a Delivery Option.

In an Alfo rule group, a customer tag, the cart subtotal and the market country can all be conditions of one rule, and the shipping panel can choose the delivery options by name or by cost.

Before You Start

Works on the Basic plan and higher. Checkout upsells and some payment options need Shopify Plus.

The recipes use the Conditional discount function, which works on every Alfo plan, Starter and above.

To create a discount:

  1. In Shopify admin, go to Discounts and click Create discount.
  2. In the Select discount type dialog, choose Conditional discount function from the Alfo app.
  3. Make it an automatic discount and enter its title. Shopify applies an automatic discount in the cart and at checkout when its conditions are met.
  4. In the Alfo editor on the same page, under Discount types, tick Shipping discount. Then untick Product discount and Order discount. At least one type stays ticked.
  5. Leave Rule matching strategy at Apply first matching rule only.
  6. Click Add rule group. Replace the name “New Rule” with the Rule name of the recipe.
  7. For each condition of the recipe, click Add condition. A new condition starts with the condition type Cart subtotal, the operator greater than and an empty value. Change them to the values of the recipe. With two or more conditions, the heading Conditions (Match) shows a select: keep ALL conditions (AND), so that every condition must match.
  8. Under Shipping discount, tick Apply discount to shipping. Which delivery options starts at All delivery groups. Set it and the fields under Shipping discount value as the recipe shows. The value field starts empty.
  9. Click Save.

With only Shipping discount ticked, the rule group shows no product or order target. A rule group with no condition gives its shipping discount on every cart.

The editor does not save an enabled rule group without a name or a shipping discount value, or with a number condition that has no value. A percentage can be at most 100.

Free Shipping on Orders of 50 or More

This rule makes shipping free when the cart subtotal is 50 or more in your store currency.

FieldValue
Rule nameFree shipping from $50
Condition 1Condition type Cart subtotal, Operator greater than or equal to, Value 50
Apply discount to shippingTicked
Which delivery optionsAll delivery groups
Discount typePercentage off
Percentage (%)100
Discount message (shown at checkout)Free shipping

greater than or equal to includes 50 itself. Enter the amount in your store currency. Checkout converts it to the buyer’s currency.

To check the rule, open a checkout with a cart subtotal of 50 or more: the shipping is free. With a subtotal below 50, the shipping keeps its cost.

To make only the lowest-cost delivery option free, such as standard shipping, choose Cheapest option instead. A more expensive option, such as Express, then keeps its cost. Cheapest option does not choose an option that already costs 0, so with a free rate in your shipping settings it picks the next option. In that case, choose By delivery option name and enter the name of the option.

Free Express Shipping from 150

This rule makes the Express option free when the cart subtotal is 150 or more. It does not change the other delivery options.

FieldValue
Rule nameFree Express shipping from $150
Condition 1Condition type Cart subtotal, Operator greater than or equal to, Value 150
Apply discount to shippingTicked
Which delivery optionsBy delivery option name
Name matchingExactly matches
Delivery option namesExpress
Discount typePercentage off
Percentage (%)100
Discount message (shown at checkout)Free Express shipping
Shipping discount panel with Apply discount to shipping ticked, By delivery option name, Exactly matches, Express, and Percentage off 100
The Shipping discount panel: By delivery option name, Exactly matches, Express, Percentage off 100. Here the message field is still empty: enter the message of the recipe.

Enter the name of the option as buyers see it at checkout. Exactly matches compares the whole name and ignores the case of the letters: Express matches “Express” and “express”, but not “Express Shipping”. To match a longer name that holds the text, choose Contains. To enter more than one name, separate the names with commas.

To check the rule, open a checkout with a cart subtotal of 150 or more: Express shows its cost crossed out and “FREE”. With a subtotal below 150, Express keeps its cost.

Shipping methods at checkout: Standard FREE, and Express with $15.00 crossed out and FREE
Express shows $15.00 crossed out and FREE. Standard is free from the shipping rates of this test store, not from the rule.

Free Shipping for Some Countries

This rule makes shipping free for buyers in the United States and Canada when the cart subtotal is 50 or more.

FieldValue
Rule nameFree shipping from $50 in the US and Canada
Conditions (Match)ALL conditions (AND)
Condition 1Condition type Market, Operator is any of, Country codes US, CA
Condition 2Condition type Cart subtotal, Operator greater than or equal to, Value 50
Apply discount to shippingTicked
Which delivery optionsAll delivery groups
Discount typePercentage off
Percentage (%)100
Discount message (shown at checkout)Free shipping

Market compares your codes with the buyer’s country code that Shopify gives the discount at checkout (localization.country.isoCode). Shopify describes this country as the country for which the store is customized. Enter two-letter ISO codes in capital letters, separated by commas, for example US, CA, GB. Write GB, not UK. Alfo does not save an enabled rule group with a code that is not a country code.

To give free shipping in every country except some, choose is none of and list those countries.

To check the rule, start a checkout with a subtotal of 50 or more and a country that is on your list, for example the United States: the shipping is free. Then change the country to one that is not on your list in the same checkout: the shipping keeps its cost.

Free Shipping for VIP Customers

This rule makes shipping free for customers with the tag VIP, on every order.

FieldValue
Rule nameFree shipping for VIP customers
Condition 1Condition type Customer tag, Operator has any of, Tags (comma-separated) VIP
Apply discount to shippingTicked
Which delivery optionsAll delivery groups
Discount typePercentage off
Percentage (%)100
Discount message (shown at checkout)Free shipping for VIP customers

Enter the tag as it appears on the customer in Shopify admin. A guest checkout has no customer, so no tag matches.

To check the rule, log in to a customer account that has the tag VIP and open checkout: the shipping is free. As a guest, the shipping keeps its cost.

For order and product discounts for tagged customers, see VIP and Wholesale Discounts by Customer Tag.

Shipping and Other Discounts in One Discount

One Alfo discount can give an order or product discount and a shipping discount. Tick each discount type that its rule groups use, for example Order discount and Shipping discount.

Alfo picks the shipping discount and the product or order discount separately. A rule group that gives only a shipping discount does not stop a rule group that gives an order discount, also with Apply first matching rule only. With that strategy, after the first rule group in the list that matches and gives a shipping discount, no later rule group gives one.

In a rule group that has a product or order target and Apply discount to shipping ticked, an empty shipping value uses the main discount value. For example, a rule group with 15% off the order and an empty shipping value also gives 15% off the shipping. To make the shipping free in that rule group, enter its own shipping value.

For a shipping discount that grows with the cart subtotal, use tiers in a Volume & Tiered discount, on the Pro plan and above. See Tiered Shipping Discount Example.

Limits

LimitDetail
Alfo plansThe Conditional discount function works on every Alfo plan. Starter allows up to 10 rule groups in each discount, Pro 20 and Enterprise 40.
Automatic discountsShopify allows at most 25 active automatic discounts per store, app-based discounts included.
ConditionsA shipping discount checks only the 9 customer and cart conditions: Customer tag, Customer order count, Customer total spent, Customer is authenticated, Cart subtotal, Cart total quantity, Cart line count, Cart attribute and Market. Product conditions, such as Product tag or Collection, do not limit it. A rule group with only product conditions gives its shipping discount on every cart.
AddressThe discount editor has no condition for the delivery address: not for its country, state, province, city or postal code. Market checks only the buyer’s country code (see above).
Cheapest and most expensiveOptions that cost 0 are not chosen.
Max shipping priceWith All delivery groups or First delivery group, a delivery group gets the discount when its lowest-cost option is at or below the amount. With the other choices, each option is compared with the amount.
CombinationsShopify: a discount from an app that includes more than one discount saving “can combine only with other discounts that allow combinations with all of the included discount classes”.
StorefrontAlfo adds no free shipping progress bar to your theme. Alfo has one theme block, the Bundle Builder.

Next Steps