# Adding Dimensions to Products
Source: https://shipmagic-docs.speedysquirrelhq.com/adding-dimensions-to-products
Populate length, width, and height so volume-based packing and carrier rates work
Product dimensions drive volume-based packing and any condition using **Product Length**, **Width**, **Height**, or **Volume**. Shopify has no native dimension field, so ShipMagic stores them for you.
All dimensions are in **millimetres**.
## Where to enter them
Open the **Products** page in the app. Every product is listed with editable **Length**, **Breadth**, and **Height** fields. Enter values and save.
For a handful of products this is the fastest route. For a full catalogue, use the CSV flow below.
## Bulk upload by CSV
On the Products page, choose **Bulk upload dimensions**, then **Download CSV format**. This gives you a file with your products already listed.
The export is emailed to you rather than downloaded directly. It goes to the **Contact Email** set on the app's Settings page — change it there if the mail should go elsewhere.
Add length, breadth, and height in millimetres for each row. Leave rows blank if you don't have data for them yet.
Back on the Products page, open **Bulk upload dimensions** and drop the completed `.csv` into the upload area.
Export first, fill in the file you get back, and upload that. Building a CSV from scratch means matching product identifiers by hand, which is where mistakes creep in.
## What dimensions are used for
**Volume-based packing.** The **By items volume** distribution in the [packing algorithm](/shipping-rates/types-of-rates/carrier-rates/3-d-boxing-algorithm) cannot work without them.
**Carrier rate accuracy.** Carriers price on dimensional weight as well as actual weight. Wrong dimensions mean quotes that don't match your invoice.
**Rate conditions.** [Product Length / Width / Height / Volume](/cart) conditions let you route oversized items to a freight rate.
## Measure the shipped size
Enter the dimensions of the product **as it ships**, including its own packaging — not the bare item.
Dimensional weight is where carriers make their margin. A product measured without its retail box can be significantly under-quoted, and the difference lands on your invoice rather than the customer's.
## Products with no dimensions
A product with no dimensions contributes nothing to a volume calculation. On a **By items volume** rate this quietly understates parcel size, producing a rate that's too low rather than an error you'd notice.
If your catalogue is only partly measured, use **By items count** or **By weight** packing until the data is complete. They degrade more gracefully than volume packing does.
New products start with no dimensions, so make measuring part of adding a product.
## Related
Box setup and the four distribution methods.
Dimension-based rate conditions.
Routing oversized goods to their own rate.
The separate sync for tags, type, and title.
# Adding Translations for Shipping Rates
Source: https://shipmagic-docs.speedysquirrelhq.com/adding-translations-for-shipping-rates
Show rate names and descriptions in your customer's own language
If you sell into more than one language, an English shipping method name in an otherwise translated checkout stands out. ShipMagic lets you supply a translated name and description per rate, for around 35 languages.
## Adding a translation
Go to **Shipping Rates** and open the rule.
In the **Shipping zones** table, use the menu at the end of the rate's row.
The translation dialog opens.
For each language you support, set:
| Field | Notes |
| - | - |
| **Language** | Pick from the supported list |
| **Translated Rate Name** | What the customer sees instead of the rate name |
| **Translated Description** | The localised [description](/rate-descriptions) |
Save the dialog, then save the rule.
## Live carrier rates cannot be translated
The **Add Translations** option does not appear for live carrier rates. Their names come from the carrier at query time — USPS, FedEx, Shiprocket and the rest return their own service names, and ShipMagic has no fixed text to translate.
To localise a carrier rate's name, use a [Rename customization](/ai-tools/actions-hide-rename-sort) instead, combined with a **Cart Locale** condition so each language gets its own rename rule.
## Which translation is used
The translation matching the customer's checkout locale is shown. If there's no translation for their language, the original rate name and description are used.
This fallback means you can translate incrementally. Start with the languages that carry the most orders and add the rest over time — untranslated languages keep working, just in the original text.
## Dynamic dates still work
All the [date placeholders](/rate-descriptions#dynamic-dates) — `{{today}}`, `{{today+N}}`, `{{today+Nwd}}`, and `{{today+Nsd}}` — work inside translated descriptions exactly as they do in the original.
```text theme={null}
Translated Description (French): Livraison prévue le {{today+3wd}}
```
**The date itself is not translated.** It always renders in the same English format — `Tue, Apr 3rd` — regardless of the customer's language.
A French description will therefore read "Livraison prévue le Tue, Apr 3rd". If that mixed-language result is unacceptable for your market, write the translated description with a duration instead of a placeholder.
## Testing
1. Switch your storefront to the target language
2. Add products and proceed to checkout
3. Confirm the rate name and description appear translated
4. Use a fresh address each time, since rates are cached per address
You can also target rules by language directly — see the **Cart Locale** condition in [Cart Conditions](/cart-subtotal#cart-locale).
## Related
The text being translated, and dynamic dates.
The route for localising carrier rate names.
Matching rules on Cart Locale.
The full rate dialog reference.
# Actions (Hide / Rename / Sort)
Source: https://shipmagic-docs.speedysquirrelhq.com/ai-tools/actions-hide-rename-sort
What a customization rule does to your shipping methods once its conditions match
The **Type** you pick when creating a customization decides what happens to your shipping methods when the rule's conditions match. There are five.
## The five types
| Type | Effect |
| - | - |
| **Hide shipping rates** | Removes the listed methods from checkout. |
| **Show shipping rates** | Displays the listed methods. |
| **Only show specified shipping rates and hide rest** | Displays the listed methods and removes every other option. |
| **Reorder shipping rates** | Changes the position of the listed methods. |
| **Rename shipping rates** | Changes the label shown to the customer. |
## Naming the methods
Every type asks you to list which shipping methods it applies to, under **Action**. Add as many as you need with **Add another method**.
**Method names match partially.** Entering `Express` affects both "Express Shipping" and "Express Delivery". This is useful for catching a family of methods at once, but be careful — `Standard` would also match "Standard Overnight" if you have one.
## Hide vs. Only show
These two solve the same problem from opposite directions, and choosing well saves you a second rule.
* **Hide** is subtractive. You name what to remove; everything else stays.
* **Only show** is exclusive. You name what to keep; everything else goes.
## Show
**Show** displays the named methods without hiding anything else. It's mainly useful as the counterpart to a broad hide rule — one rule hides a method for everyone, another shows it back to a qualifying group.
## Rename
**Rename** changes only the customer-facing label. The underlying rate, its price, and its behaviour are untouched.
For each method you give the name to match and the new name to display.
## Reorder
**Reorder** changes which methods appear first. For each method you give the name to match and its new position.
Checkout defaults to ordering by price, which is not always what you want — the cheapest option is often the slowest, and putting it first can push customers toward a delivery experience they'll be unhappy with.
Reordering can also help you change the default shipping option. Shopify, by default, selects the first shipping option as the default one.
## Apply rule to
Every customization also has an **Apply rule to** setting:
* **All shipments** — the default; the rule applies to every shipment in the order.
* **Only the first shipment** — for subscription sellers, so the rule affects only the first shipment's shipping method.
## Related
Creating a customization from scratch.
Which conditions are available to your rule.
A worked regional example.
Common causes when a rule doesn't fire.
# Parameter Sets
Source: https://shipmagic-docs.speedysquirrelhq.com/ai-tools/different-parameter-sets-for-conditions
Three different condition palettes, and how to choose between them
Shipping Customizations offer **three parameter sets**. Each set exposes a different list of condition attributes, and a rule may use attributes from **only one set**.
You cannot mix sets within a single rule. If the two attributes you need live in different sets, you need two rules — or a different approach.
## Switching sets
On the customization editor, the **Conditions** card has a **Switch to parameter set 2 / 3** link in its top-right corner. Clicking it cycles through the sets.
Switching sets resets the conditions on the rule, because the attribute you had selected may not exist in the new set. Decide which set you need before building out a long condition list.
## What's in each set
### Set 1 — the default
| Group | Attributes |
| - | - |
| **Cart** | Cart Subtotal, Cart Quantity, Cart Weight |
| **Product** | Product Tag, Product Title, Product Type, Product Weight, Product Vendor, Variant Title, Line Item Property, Product Price, Product Collection |
| **Customer** | Customer Tag, Customer Logged In, Customer Company, Customer First Name |
| **Shipping** | Zipcode / Postcode, Country Code, Address Line 1, Address is a PO Box, Address is not a PO Box, Shipping Method Name, Shipping Rate |
| **Other** | Always, Number Of Vendors |
### Set 2 — SKUs, subscriptions, and customer metafields
| Group | Attributes |
| - | - |
| **Cart** | Cart Attribute |
| **Product** | SKU, Product Tag, Variant Metafield, Is subscription product |
| **Customer** | Customer Tag, Customer Metafield, Company Metafield, Customer First Name |
| **Shipping** | Province / State Code, Country Code, Address Line 1, Address is a PO Box, Address is not a PO Box |
Reach for set 2 when you need to match on **SKU**, on a **customer or company metafield**, on a **cart attribute**, or on whether the item is a **subscription**.
### Set 3 — product metafields and B2B locations
| Group | Attributes |
| - | - |
| **Cart** | Cart Subtotal, Cart Weight |
| **Product** | Product Metafield, Product Collection |
| **Customer** | Company Location Metafield, Customer First Name |
| **Shipping** | Zipcode / Postcode, Country Code |
| **Other** | Number Of Product Metafield Values |
Reach for set 3 when you need **Product Metafield** conditions or **B2B company location metafields**.
## Related
Creating a customization from scratch.
Cart attributes and which set holds them.
Product attributes across the three sets.
What a rule does once its conditions match.
# API Reference
Source: https://shipmagic-docs.speedysquirrelhq.com/api-reference
The ShipMagic API can be used to fetch rates from ShipMagic App and display them on custom pages like cart and product details pages.
\
Endpoint
```shellscript theme={null}
POST https://shipmagic.fly.dev/api/shipping-rate/get
```
Headers
```javascript theme={null}
x-api-key =
```
Payload
```json theme={null}
{
"rate": {
"origin": {
"country": "IN",
"postal_code": "444001",
"province": "MH",
"city": "Akola",
"address1": "150 Elgin St.",
"address2": ""
},
"destination": {
"country": "GB",
"postal_code": "G4 0DS",
"province": "SCT",
"city": "Glasgow",
"name": "Barney Stinson",
"address1": "24 Sussex Dr.",
"address2": ""
},
"items": [
{
"name": "Short Sleeve T-Shirt",
"sku": "T123",
"quantity": 1,
"grams": 100,
"price": 500,
"vendor": "Reebok",
"properties": null,
"product_id": 8134077955815,
"variant_id": 47520005882151
},
{
"name": "Cargo Pants",
"sku": "P432",
"quantity": 2,
"grams": 200,
"price": 700,
"vendor": "Adidas",
"properties": {
"color": "black",
"gift-item": "yes"
},
"product_id":8124778954811,
"variant_id": 49520505832142
}
]
},
"blend_type": "no_blending"
}
```
| Parameter | Description | Required |
| :- | :- | :- |
| country | Two letter country code following the ISO 3166-1 alpha-2 guidelines. You can find all the country codes [here](https://shopify.dev/docs/api/storefront/2024-04/enums/countrycode). | Yes |
| province | Two letter province codes following the ISO 3166 guidelines. You can find all the province codes [here](https://matrixify.app/documentation/shopify-address-countries-and-provinces/). | Yes |
| destination → name | First name + last name of the buyer. | Yes |
| blend\_type | Accepts either of the following values.
1. `no_blending`
2. `add_rates`
3. `highest_rate_only`
4. `lowest_rate_only` | Yes |
| postal\_code | Post-code / Zip-code / Pin-code. | No |
| city | City name. | No |
| address1 | Address Line 1. | No |
| address2 | Address Line 2. | No |
| items → name | Full name of the item (Product title + Variant name). | No |
| sku | SKU. | No |
| quantity | Quantity. | No |
| grams | Weight of item in grams. | No |
| price | Price of item in store’s default currency. | No |
| vendor | Vendor name. | No |
| properties | Key value pairs of line item properties. | No |
| product\_id | Shopify Product ID | No |
| variant\_id | Shopify Variant ID | No |
Return Data
```json theme={null}
{
"rates": [
{
"service_name": "Standard Shipping",
"service_code": "standard_shipping",
"currency": "INR",
"total_price": 600,
"description": "Delivery in 3-4 business days"
}
]
}
```
| Parameter | Description |
| :- | :- |
| service\_name | The name of the rate, which customers see at checkout. |
| service\_code | A unique code associated with the rate. |
| total\_price | The total price expressed in subunits. If the currency doesn't use subunits, then the value must be multiplied by 100. For example: `"total_price": 500` for 5.00 CAD, `"total_price": 100000` for 1000 JPY. |
| currency | The currency of the shipping rate. |
| description | A description of the rate, which customers see at checkout. |
Contact [aditya@speedysquirrelhq.com](mailto:aditya@speedysquirrelhq.com) for API Key and any questions that you may have.
# Australia Post
Source: https://shipmagic-docs.speedysquirrelhq.com/australia-post
Show live Australia Post rates at checkout using your own account
Connect your Australia Post account and ShipMagic will query real rates at checkout.
## Getting credentials
Australia Post issues an **API Key** through its [Developer Centre](https://developers.auspost.com.au/). You'll need a business account to request access.
## Setting up the rate
In your rule, click **Add rate** on the zone you want.
Choose **Australia Post** under the live carrier options.
Paste the key from the Developer Centre.
Set **Packaging box distribution** and define your boxes. See [the packing algorithm](/shipping-rates/types-of-rates/carrier-rates/3-d-boxing-algorithm).
**Default rate** is used if Australia Post doesn't respond.
## Domestic and international
Australia Post covers both domestic Australian parcels and international destinations. Which services return depends on the destination address and on what your account is enabled for.
If you ship both domestically and internationally, consider separate rules with [country conditions](/customer-location-and-address) so each region gets a rate configured for it, rather than one rule trying to cover everything.
## Weight and dimensions
Australia Post prices on both weight and cubic size. Parcels above certain dimensions attract cubing charges, so accurate [product dimensions](/adding-dimensions-to-products) matter as much as weight.
A large, light parcel is priced on its volume, not its weight. If you ship bulky lightweight goods and haven't entered dimensions, quotes will be well below what you're billed.
## Always set a Default rate
If Australia Post is unavailable and no default rate is set, the customer sees no shipping option and cannot complete checkout.
## Testing
1. Add products with accurate weights and dimensions
2. Check out to a real Australian address, using a fresh address each time
3. Compare the quote against Australia Post's own calculator for the same parcel
## Related
How items are distributed into parcels before quoting.
Dimension data that cubing charges depend on.
The other Australian carrier ShipMagic supports.
When a carrier rate fails to appear.
# Product Attributes
Source: https://shipmagic-docs.speedysquirrelhq.com/cart
Match shipping rate rules on product tags, type, SKU, weight, dimensions, and metafields
Product conditions are evaluated **per line item**. A rule with a product condition matches when the items in the cart satisfy it — so these are what you use to separate bulky goods from regular ones, or to price by weight.
Five of these attributes require [product syncing](/core-concepts/syncing-products) before they will work: **Product Tag**, **Product Type**, **Product Title**, **Product Barcode**, and **Product Compare-at Price**. Shopify does not send them to the app at checkout, so ShipMagic reads them from its own synced copy. Sync from **Settings → Products → Sync Now**.
## Available attributes
| Attribute | Operators | Notes |
| - | - | - |
| **Product Title** | Equals, Does Not Equal, Contains, Does Not Contain | Multiple values separated by `;` |
| **Variant Title** | Equals, Does Not Equal, Contains, Does Not Contain | Multiple values separated by `;` |
| **Product Tag** | Equals, Does Not Equal | Multiple values separated by `,` |
| **SKU** | Equals, Does Not Equal, Contains, Does Not Contain | Multiple values separated by `;` |
| **Product Barcode** | Equals, Does Not Equal, Contains, Does Not Contain | Multiple values separated by `;` |
| **Product Vendor** | Equals, Does Not Equal, Contains, Does Not Contain | Multiple values separated by `;` |
| **Product Price** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Store currency |
| **Product Compare-at Price** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Store currency |
| **Product Quantity** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Units of that line item |
| **Product Type** | Equals, Does Not Equal, Contains, Does Not Contain | Multiple values separated by `;` |
| **Product Weight** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Store weight unit |
| **Product Metafield** | Equals, Does Not Equal, Contains, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal, Is True, Is False | See [Metafields](#metafields) |
| **Variant Metafield** | The above, plus Is Empty and Is Not Empty | See [Metafields](#metafields) |
| **Line item property** | Equals, Does Not Equal, Contains, Does Not Contain | Multiple values separated by `;` |
| **Product Length / Width / Height** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Millimetres |
| **Product Volume** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | mm³ |
| **Shopify Product ID** | Equals, Does Not Equal | Multiple values separated by `;` |
| **Shopify Variant ID** | Equals, Does Not Equal | Multiple values separated by `;` |
## Separators: commas or semicolons?
This trips people up, because it isn't consistent — it follows what the data itself can contain. The exact separator for each parameter is shown on the app when you select the parameter.
* **Product Tag** takes **commas**: `bulky,oversized,freight`
* **Everything else** takes **semicolons**: `Blue Sofa;Red Sofa`
Titles and types can legitimately contain a comma ("Sofa, Large"), which is why they use semicolons. Tags cannot contain commas in Shopify, so commas are safe there.
## Metafields
For **Product Metafield**, enter the metafield key. For **Variant Metafield**, enter it as `Namespace.Key`.
Metafield conditions support type-aware operators — numeric comparisons for number fields, `Is True` / `Is False` for booleans, and `Is Empty` / `Is Not Empty` on variant metafields to test whether a value has been set at all.
Metafields can also be used to *set the price itself*, not just to match. See [Rates from Metafields](/rates-from-metafields).
## Dimensions
**Length**, **Width**, **Height**, and **Volume** are always in **millimetres** (volume in mm³), regardless of your store's display units. They come from the dimension data on the product — see [Adding Dimensions to Products](/adding-dimensions-to-products) for how to populate them.
## Per line item vs. per cart
A product condition asks about the items in the cart. If you need to ask whether the cart *contains* a matching product without requiring every product to match, use **Cart Contains** instead — see [Cart Conditions](/cart-subtotal#cart-contains).
## Examples
**Separate bulky products from the rest**
```text theme={null}
Rule 1 — Bulky
Condition 1: Product Tag <> Equals <> bulky
Rule 2 — Regular
Condition 1: Product Tag <> Does Not Equal <> bulky
```
**A freight rate for anything longer than 2 metres**
```text theme={null}
Condition 1: Product Length <> Greater Than <> 2000
```
**Match several vendors at once**
```text theme={null}
Condition 1: Product Vendor <> Equals <> Acme;Globex;Initech
```
## Related
Match on cart value, quantity, weight, and contents.
Populate length, width, and height on your products.
Which attributes need a sync, and how to run one.
Read the shipping price straight out of a metafield.
# Cart Conditions
Source: https://shipmagic-docs.speedysquirrelhq.com/cart-conditions
Match customization rules on cart subtotal, quantity, weight, and cart attributes
Cart conditions for customizations look at the order as a whole. They're how you gate a shipping method on order value or weight.
This page covers cart conditions for **Shipping Customizations**. For the rate equivalent — which has a larger attribute list — see [Cart Conditions](/cart-subtotal) under Shipping Rates.
## Available attributes
| Attribute | Parameter set | Operators |
| - | - | - |
| **Cart Subtotal** | 1, 3 | Equals, Not equals, Greater than, Less than, Greater than or equal, Less than or equal |
| **Cart Quantity** | 1 | Equals, Not equals, Greater than, Less than, Greater than or equal, Less than or equal |
| **Cart Weight** | 1, 3 | Equals, Not equals, Greater than, Less than, Greater than or equal, Less than or equal |
| **Cart Attribute** | 2 | Equals, Not equals, Contains, Does not contains, Is empty, Is not empty |
A rule may only use attributes from **one parameter set**. Cart Attribute lives in set 2, so it cannot be combined with Cart Quantity (set 1). See [Parameter Sets](/ai-tools/different-parameter-sets-for-conditions).
## Cart Attribute
Cart attributes are custom key/value pairs attached to the cart by your theme or a third-party app — gift options, delivery preferences, a chosen pickup location.
Because they're set by your storefront rather than by Shopify, what's available depends entirely on your theme. Check what your cart is actually sending before building a rule on it.
`Is empty` and `Is not empty` are useful here — they let you test whether the customer made a choice at all, without caring what they chose.
## Cart Subtotal
The most common cart condition, used for free-shipping eligibility:
```text theme={null}
Condition 1: Cart Subtotal <> Greater than or equal <> 100
```
Unlike the rates side, customizations expose a single **Cart Subtotal** rather than separate before-discount and after-discount values.
## Cart Weight
Weight is in your store's weight unit. Use it to withdraw options a carrier can't actually handle:
```text theme={null}
Type: Hide shipping rates
Condition 1: Cart Weight <> Greater than <> 30
Hide the following shipping methods: Express
```
## Examples
**Free shipping only above a threshold**
```text theme={null}
Type: Hide shipping rates
Condition 1: Cart Subtotal <> Less than <> 75
Hide the following shipping methods: Free Shipping
```
**No express option for very large orders**
```text theme={null}
Type: Hide shipping rates
Rule must match: Any condition
Condition 1: Cart Quantity <> Greater than <> 20
Condition 2: Cart Weight <> Greater than <> 30
Hide the following shipping methods: Express
```
## Related
Which attributes can be combined in one rule.
Match on tags, collections, SKUs, and metafields.
Match on tags, company, and login state.
What happens once conditions match.
# Cart Conditions
Source: https://shipmagic-docs.speedysquirrelhq.com/cart-subtotal
Match shipping rate rules on cart value, quantity, weight, volume, and contents
Cart conditions look at the order as a whole rather than at individual products. They're the most common way to build free-shipping thresholds and weight-based rules.
This page covers cart conditions for **Shipping Rates**. For the customization equivalent, see [Cart Conditions](/cart-conditions) under Shipping Customizations — the available attributes differ.
## Available attributes
| Attribute | Operators | Value |
| - | - | - |
| **Cart Quantity** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Number of items |
| **Cart Subtotal (total before discount)** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Amount in store currency |
| **Cart Total (total after discount)** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Amount in store currency |
| **Cart Weight** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Weight in your store's unit |
| **Cart Volume** | Equals, Does Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Volume in mm³ |
| **Cart Contains** | Depends on the sub-attribute you pick | See [Cart Contains](#cart-contains) |
| **Cart Does Not Contain** | Depends on the sub-attribute you pick | See [Cart Contains](#cart-contains) |
| **Cart Locale** | Equals, Does Not Equal, Contains, Does Not Contain | Shopify locale code |
## Subtotal before or after discount?
These two are easy to confuse, and picking the wrong one is a common source of surprise:
* **Cart Subtotal (total before discount)** — the cart value *ignoring* discount codes.
* **Cart Total (total after discount)** — what the customer actually pays for goods.
For a free-shipping threshold, decide deliberately which one you want. Using **Cart Subtotal** means a discount code can drop a customer below your threshold and they would still be eligible for free shipping.
## Cart Contains
**Cart Contains** and **Cart Does Not Contain** are different from the other attributes: instead of comparing one cart-level number, they ask whether *any product in the cart* matches a condition.
When you pick one, you then choose a product attribute to test against — Product Tag, Product Type, Product Metafield, and so on — and give it an operator and value, exactly as you would in a [product condition](/cart).
### Quantity and amount checks
**Cart Contains** adds one more control, letting you require a certain quantity or value of matching products rather than just their presence:
| Option | Meaning |
| - | - |
| **Cart contains at least one product** | Default. Any matching product satisfies the condition. |
| **Cart contains more than X products** | Matching products must total more than X units. |
| **Cart contains less than X products** | Matching products must total fewer than X units. |
| **Cart contains more than X amount** | Matching products must total more than X in value. |
| **Cart contains less than X amount** | Matching products must total less than X in value. |
**Cart Contains** is how you write "if the cart has any fragile item" without forcing the whole cart to be fragile. A plain [Product Tag](/cart) condition applies per line item; Cart Contains asks a question about the cart.
## Cart Locale
Matches the locale the customer is browsing in — useful for language-specific rates. Enter the Shopify locale code (`en`, `fr`, `de-DE`). You can enter several separated by semicolons.
## Examples
**Free shipping over \$100, before discounts are applied**
```text theme={null}
Rule must match: All conditions
Condition 1: Cart Subtotal (total before discount) <> Greater Than or Equal <> 100
```
**A surcharge when the cart is heavy**
```text theme={null}
Rule must match: All conditions
Condition 1: Cart Weight <> Greater Than <> 20
```
**A handling fee when the cart holds more than 3 fragile items**
```text theme={null}
Rule must match: All conditions
Condition 1: Cart Contains <> Product Tag <> Equals <> fragile
Quantity check: Cart contains more than X products, Quantity: 3
```
## Related
Match on tags, type, SKU, weight, dimensions, and metafields.
Match on customer tags and names.
Match on postcode, country, province, and warehouse.
Turn a cart value into a sliding scale of prices.
# Cloning Full Setup from One Store to Another
Source: https://shipmagic-docs.speedysquirrelhq.com/cloning-full-setup-from-one-store-to-another
Copy shipping rules, customizations, and settings between two stores
If you run several stores, or you've built a configuration on a development store you now want in production, cloning copies the whole setup across in one operation.
Cloning **overwrites the destination store's existing setup, and cannot be undone**. Everything in the modules you select is deleted and replaced with the source store's configuration.
## How it works
Cloning is a **pull**, run from the destination store. You take a secret from the source store, then use it in the destination to fetch and import the configuration.
Both stores need ShipMagic installed.
## Doing the clone
In the **source** store, open **Settings → Clone Setup** and copy the API secret.
In the **destination** store, go to the **Clone Store Setup** page.
Paste it into **Source Store Secret** and choose **Validate & Continue**. The app confirms the source store and shows what it contains.
Tick the modules you want:
| Module | Contents |
| - | - |
| **Shipping Rates** | All rules, with a count shown |
| **Customizations** | All customization rules, with a count shown |
| **Store Settings** | Blending and advanced blending configuration |
The two stores have different shipping zones, so you map each source zone to a destination zone. Any zone you don't need can be set to **Skip (don't map)**.
Read the overwrite warning, then run the import.
## Zone mapping matters
Zones are the part that doesn't transfer automatically — the destination store's zones have their own identities, and rates have to be attached to the right ones.
Sync the destination store's [shipping zones](/essentials/adding-modifying-shipping-zones) **before** cloning. If a zone hasn't been synced it won't be offered in the mapping step, and its rates will have nowhere to land.
Anything mapped to **Skip** is simply not imported.
## Imported customizations arrive inactive
Customizations are imported **inactive** and must be activated manually in the destination store.
This is deliberate — activating a customization registers it with Shopify, which has to happen in the destination store's own context. Until you activate them, they have no effect at checkout.
Go through the customization list after cloning and enable the ones you want live.
## What doesn't come across
Cloning covers rules, customizations, and blending settings. It does not bring:
* **Product data** — dimensions and synced product attributes belong to each store's own catalogue.
* **App mode toggles** — the destination store stays in whatever mode it was in, so a cloned setup doesn't go live unexpectedly.
## After cloning
1. Activate the imported customizations
2. Sync products if your rules use tags, type, title, barcode, or compare-at price
3. [Test](/core-concepts/testing-the-app) before enabling live mode
## Related
Copying a single rule within one store.
Sync zones before you clone.
Verify the imported setup before going live.
Enabling the cloned configuration.
# Billing
Source: https://shipmagic-docs.speedysquirrelhq.com/core-concepts/billing
Choosing the right premium plan based on your setup
## Understanding our different plans
ShipMagic offers 3 premium plans. The best plan for your store depends on which features you need.
#### Starter Plan
Best for stores using Shipping Customizations and Shipping Discounts. Choose the Starter Plan if you only need to:
* Use customizations in live mode
* Hide, rename, sort shipping rates
* Use [shipping discounts](/shipping-discounts/create-a-shipping-discount) in live mode
#### Pro Plan
Best for stores using Shipping Rates. Choose the Pro Plan if you need to:
* Use shipping rates in live mode
* Rates by zipcode, products, customer
* Live carrier rates
> Shipping Customizations and Shipping Discounts are included in this plan as well.
#### Pro+ Plan
Best for highly complex shipping requirements. Choose the Pro+ Plan if your shipping logic cannot be achieved using the standard rule engine.
With Pro+, we offer custom-coded shipping logic tailored to your business needs.
## How to cancel subscription?
If you wish to cancel your subscription, simply uninstall the app from store. Your subscription is canceled automatically. App removal is fully clean with no residual code left behind.
Your rules and settings are preserved. If you reinstall the app in the future, you can reactivate a plan and continue using your saved setup.
# Going Live
Source: https://shipmagic-docs.speedysquirrelhq.com/core-concepts/going-live
Apply the rules in the app to all live customers
Once you’ve tested your setup and are confident everything is working correctly, you’re ready to go live and start showing ShipMagic rates to your customers.
***
## Steps to Go Live
### 1. Subscribe to a Paid Plan
To activate ShipMagic for live customers, you need to subscribe to one of the available plans.
[Choose a plan](/core-concepts/billing) based on your usage:
* **Starter Plan** → For Shipping Customizations and Shipping Discounts
* **Pro Plan** → For Shipping Rates (includes customizations and discounts)
* **Pro+ Plan** → For advanced or custom-coded logic
***
### 2. Enable ShipMagic
1. Go to the **Settings** page in the app
2. Turn on the toggles for shipping rates / shipping customizations / shipping discounts
Once enabled, ShipMagic will start applying your rules at checkout for all customers.
***
## Before You Go Live (Checklist)
Make sure you’ve completed the following:
* ✅ Tested all key scenarios (products, cart values, locations)
* ✅ Synced product data (if required)
* ✅ Confirmed correct rates are showing in test mode
***
## What Happens After Going Live?
* Customers will see **ShipMagic-powered rates** at checkout
* Your configured rules will run in real time
* Test mode restrictions (like using “shipmagic” as first name) will no longer apply
***
## Removing Old Shopify Rates
If your existing Shopify shipping rates are showing alongside ShipMagic rates, you may want to remove them to avoid confusion at checkout.
### How to fix this
* Go to **Shopify Admin → Settings → Shipping and Delivery**
* Open your shipping profile
* Locate the existing (manual) shipping rates
* Delete the old rates
Once removed, only ShipMagic rates will be shown to your customers, ensuring a clean and accurate checkout experience.
***
## Need to Make Changes?
You can update your rules anytime. Changes are reflected instantly, so you can continuously optimize your shipping setup. Just make sure to use a new random address for testing to avoid seeing cached shipping rates.
***
# Rates vs Customizations
Source: https://shipmagic-docs.speedysquirrelhq.com/core-concepts/rates-vs-customizations
ShipMagic offers two ways to optimize your checkout delivery experience: Shipping Rates and Shipping Customizations. Each serves a different purpose.
## **Shipping Customizations**
**Best for:** Modifying the shipping rates you already have by hiding, sorting, or renaming them based on specific conditions.
#### Example Use Case
Hide **XYZ rate** when customers purchase products tagged **fragile**.
#### Key Benefits
* Works on **all Shopify plans** (CCS not required)
* Hide existing delivery options
* Reorder delivery methods at checkout
* Rename shipping methods at checkout
* Apply rules based on products, cart, customer, location, and more
#### Use Shipping Customizations when you:
* Already have shipping rates configured in Shopify natively
* Want to hide or show rates based on cart, product, or customer conditions
* Want to improve the checkout experience without changing how rates are calculated
* Need more control over which shipping options customers see
## Shipping Rates
**Best for:** Creating and displaying custom shipping rates from the app using logic that is not possible with Shopify natively.
#### Example Use Case
Charge shipping as **10% of the cart total**, capped at **\$100**.
#### Key Benefits
* Create fully custom shipping rates and display them at checkout
* Show live carrier rates from your own shipping account
* Build advanced rate calculation logic beyond Shopify’s native settings
* Calculate rates based on:
* Products
* Destination address
* Customer
* Warehouse location
* Cart value
* Weight
* Quantity
* And more
#### Requirements
Requires [**CCS (Carrier Calculated Shipping)**](/installation-guide#2-ensure-ccs-is-enabled-on-your-store) to be enabled on your Shopify store.
#### Use Shipping Rates when you:
* Want to create shipping rates not possible in Shopify natively
* Need dynamic pricing based on order, product or customer conditions
* Want to connect carrier accounts and show live rates at checkout
## Quick Rule of Thumb
* **Use Shipping Rates** when you need to **create or calculate shipping prices that Shopify cannot do natively** - such as percentage-based rates, advanced product rules, customer-specific pricing, carrier integrations, and more.
* **Use Shipping Customizations** when your shipping rates already exist and you only want to **hide, rename, or reorder the options shown at checkout** based on conditions.
* In simple terms,
* Shipping Rates = Changes what customers pay
* Shipping Customizations = Changes what customers see
# Settings
Source: https://shipmagic-docs.speedysquirrelhq.com/core-concepts/settings
A reference for every option on the app's Settings page
The **Settings** page holds the store-wide options that sit behind your rules. Several of them — syncing, app modes, blending — are referenced throughout the rest of these docs, so this is the reference for what each one does.
## App Modes
Three independent toggles control whether ShipMagic affects real customers.
| Toggle | Off (test mode) | On (live mode) |
| - | - | - |
| **Shipping Rates** | Rates only for checkouts with first name `shipmagic` | Rates for every customer |
| **Shipping Customizations** | Customizations only for `shipmagic` checkouts | Customizations for every customer |
| **Shipping Discounts** | [Discounts](/shipping-discounts/create-a-shipping-discount) only for `shipmagic` checkouts | Discounts for every customer |
These are **separate toggles**. Turning on rates does not turn on customizations or discounts. A half-live launch — rates showing but the hide rules that should accompany them still dormant — is a common and avoidable mistake.
Live mode requires a paid plan. See [Billing](/core-concepts/billing) and [Going Live](/core-concepts/going-live).
## Products
### Sync Now
Syncs your product catalogue into the app. Required for rules using **Product Tag, Product Type, Product Title, Product Barcode, or Product Compare-at Price** — Shopify doesn't send these at checkout, so ShipMagic reads its own copy.
Syncing runs in the background; you can leave the page.
### Auto Product Sync
Automatically syncs **newly created** products.
Auto sync covers new products only. If you **edit** an existing product's tags, type, or title, you must run a manual sync — auto sync will not pick the change up.
Full detail in [Syncing Products](/core-concepts/syncing-products).
## Shipping Zones
Syncing zones from Shopify has been retired. You now add and edit zones on the **Shipping Zones** page in the app, and the **Shipping Zones** section of Settings links to it. See [Adding / Modifying Shipping Zones](/essentials/adding-modifying-shipping-zones).
## Blending
### Basic
How rates **with the same name** combine: **Add rates**, **Show the highest rate only**, or **Show the lowest rate only**.
### Set limits while adding rates
Appears only when Basic blending is **Add rates**. Lets you cap or floor named shipping methods. See [Setting Maximum and Minimum Shipping Rates](/setting-maximum-and-minimum-shipping-rates).
### Advanced
How rates **with different names** combine, grouped by the tags on each rate. See [Rate Blending](/rate-blending).
## Contact Email
The address ShipMagic uses to reach you — including where the [product dimensions CSV export](/adding-dimensions-to-products) is sent. If that export isn't arriving, check this field first.
## Clone Setup
### Your Store API Secret
The secret other stores use to clone **from** this store. Share it only with stores you want to grant a copy of your configuration.
Anyone holding this secret can read this store's shipping configuration. Treat it as a credential.
### Clone Configuration
Imports rules, customizations, and settings **from** another store using its secret. This overwrites the current store's setup and cannot be undone — see [Cloning Full Setup from One Store to Another](/cloning-full-setup-from-one-store-to-another).
## Related
Which attributes need a sync.
Turning the app modes on.
Basic and advanced blending in detail.
What each mode changes.
# Syncing Products
Source: https://shipmagic-docs.speedysquirrelhq.com/core-concepts/syncing-products
When and why you need to sync products
## Why do you need to sync product data?
Some product attributes are not available in real time during shipping rate calculation at checkout.
If your shipping rules depend on these attributes, ShipMagic needs to store that product data in advance so it can be used when rates are calculated. That is why product syncing is required.
## When you need to sync product data?
You only need to sync product data when creating **Shipping Rate** rules based on any of the following product attributes:
* Product Tag
* Product Type
* Product Title
* Product Barcode
* Product Compare-at Price
Product syncing is **NOT required** for **Shipping Customizations**.
## How to sync product data?
1. Open the **Settings** page in the app
2. Click **“Sync Now”** under **Products**
3. Syncing will run in the background, and you can safely leave the page
## Automatic syncing of product data
You can enable **Auto Product Sync** from the Settings page to automatically sync newly created products.
**Important Notes:**
* Only **newly created products** are synced automatically
* If you update an existing product (for example tags, title, or type), you must run a **manual sync** again from the Settings page
## Bottomline
If your shipping rate rules use **Product Tag, Type, Title, Barcode, or Compare-at Price**, make sure your products are synced before testing or going live.
# Testing the App
Source: https://shipmagic-docs.speedysquirrelhq.com/core-concepts/testing-the-app
Test the app safely before going live for your customers.
Before going live, it’s important to test your shipping rules to ensure everything works as expected. ShipMagic makes it easy to preview your rates directly on your storefront.
## How to Test ShipMagic
1. Go to your online store
2. Add relevant products to the cart (based on the rules you’ve created)
3. Proceed to the checkout page
4. Enter the complete address to view the calculated shipping rates
5. If the app is in test mode, enter the first name as `shipmagic` in the address section on checkout page
You will now see the shipping rates generated by ShipMagic in real time.
***
## Using Test Mode (Recommended)
ShipMagic provides a **test mode** so you can safely test your setup without affecting real customers.
### To test in Test Mode:
* On the settings page of the app, ensure the App Mode toggles are disabled.
* You can put Shipping Rates and Shipping Customizations in test mode individually.
* At checkout, enter the first name as `shipmagic`
This will:
* Trigger ShipMagic rates only for your session
* Allow you to test different scenarios safely
* Ensure real customers continue to see your live shipping setup
***
## What to Test
Make sure to test all key scenarios:
* Different product types (e.g. bulky vs regular)
* Different cart values (below/above thresholds)
* Different locations or shipping zones
* Multiple products in a single cart
***
## Tips for Accurate Testing
* Always use a new random address for testing to avoid seeing cached shipping rates
* Double-check product tags and conditions used in your rules
* Ensure product data is synced (if required)
* Verify rule priorities if multiple rules exist
* Test edge cases (e.g. boundary values like \$100)
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup) if you’d like us to help.
***
## Ready to Go Live?
Once you’ve verified that the correct shipping rates are showing for all scenarios, you’re [ready to go live](/core-concepts/going-live) and start offering accurate, optimized shipping rates to your customers 🚀
# Country and Province Codes
Source: https://shipmagic-docs.speedysquirrelhq.com/country-and-province-codes
Searchable reference of the country and province codes ShipMagic conditions expect
The **Country Code** and **Province / State Code** conditions in the app match on their codes, not on full names. Entering `United States` will never match - you need `US`.
## Related
Postcode, country, and province conditions for shipping rates.
The equivalent for customizations.
Which set exposes Province / State Code.
Putting these codes to work.
# Customer Attributes
Source: https://shipmagic-docs.speedysquirrelhq.com/customer-attributes
Match shipping rate rules on customer tags and names
Customer conditions let you price shipping differently for particular groups of customers — wholesale accounts, loyalty tiers, or staff.
Customer data is only available when the customer is **logged in**. For a guest checkout Shopify sends no customer record, so these conditions will not match. Always have a rule that covers guests, or guests may see no rates at all.
## Available attributes
| Attribute | Operators | Notes |
| - | - | - |
| **Customer Tag** | Equals, Does Not Equal | Multiple values separated by `,` |
| **Customer First Name** | Equals, Does Not Equal, Contains, Does Not Contain | Single value |
| **Customer Last Name** | Equals, Does Not Equal, Contains, Does Not Contain | Single value |
Shipping **Customizations** offer a wider set of customer conditions, including Total Spend, Order Count, Company, and Customer Metafield. See [Customer Attributes](/customer-attributes-1) under Shipping Customizations.
## Customer Tag
Tag customers in Shopify Admin (or via your ERP / loyalty app), then match on the tag:
```text theme={null}
Condition 1: Customer Tag <> Equals <> wholesale
```
Multiple tags are separated by commas and match if **any** of them is present:
```text theme={null}
Condition 1: Customer Tag <> Equals <> wholesale,vip,staff
```
Tag matching is the most reliable customer condition because you control the tags. Prefer it over name matching, which depends on how the customer typed their name.
## First and Last Name
Available mainly for edge cases and testing. Name conditions match against the name on the customer record.
Do not build business logic on names — they are not unique and customers type them inconsistently. If you need to identify a group of people, tag them.
Note that the **first name `shipmagic`** is reserved for [test mode](/core-concepts/testing-the-app). While the app is in test mode it only returns rates for checkouts using that first name.
## Covering guests
Because customer conditions silently fail for guests, a rule set built only on customer tags will leave guest shoppers with nothing. The usual pattern is a pair of rules:
```text theme={null}
Rule 1 — Wholesale (Priority 10)
Condition 1: Customer Tag <> Equals <> wholesale
Rule 2 — Everyone else (Priority 20)
Condition 1: Customer Tag <> Does Not Equal <> wholesale
```
A guest fails rule 1 and passes rule 2, so they still get a rate.
## Examples
**Free shipping for wholesale customers**
```text theme={null}
Rule must match: All conditions
Condition 1: Customer Tag <> Equals <> wholesale
```
**Staff rate, combined with a cart condition**
```text theme={null}
Rule must match: All conditions
Condition 1: Customer Tag <> Equals <> staff
Condition 2: Cart Subtotal (total before discount) <> Greater Than <> 50
```
## Related
Match on cart value, quantity, weight, and contents.
Match on postcode, country, province, and warehouse.
The larger customer condition set available to customizations.
How test mode uses the first name field.
# Customer Attributes
Source: https://shipmagic-docs.speedysquirrelhq.com/customer-attributes-1
Match customization rules on customer tags, login state, company, and metafields
Customizations have a considerably richer set of customer conditions than shipping rates do — including B2B company data and customer metafields.
Customer data only exists for **logged-in** customers. For a guest checkout, ShipMagic sees no tags, zero total spend, and zero previous orders. A guest fails `Customer Tag Equals vip` and *passes* `Customer Total Order Count Less than 1` — check both when you test.
## Available attributes
| Attribute | Parameter set | Operators |
| - | - | - |
| **Customer Tag** | 1, 2 | Equals, Not equals |
| **Customer Logged In** | 1 | True, False |
| **Customer First Name** | 1, 2, 3 | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| **Customer Company** | 1 | Contains, Does not contains, Is empty, Is not empty |
| **Customer Total Spend** | 1 | Numeric comparisons |
| **Customer Total Order Count** | 1 | Numeric comparisons |
| **Customer Metafield** | 2 | Equals, Not equals, Contains, Does not contains, Is empty, Is not empty |
| **Company Metafield** | 2 | The above, plus Includes in list, Not includes in list |
| **Company Location Metafield** | 3 | The above, plus Includes in list, Not includes in list |
## Customer Logged In
The clean way to handle the guest problem. Rather than relying on a customer condition failing silently, test login state directly:
```text theme={null}
Type: Hide shipping rates
Condition 1: Customer Logged In <> False
Hide the following shipping methods: Member Delivery
```
If a rule depends on customer data, consider pairing it with a `Customer Logged In` rule so guests get a deliberate outcome rather than an accidental one.
## Customer Tag
Tag customers in Shopify Admin or from your loyalty or ERP system, then match:
```text theme={null}
Condition 1: Customer Tag <> Equals <> wholesale,vip
```
Multiple tags are comma-separated and match if **any** is present.
## B2B: Company, Company Metafield, Company Location Metafield
For Shopify B2B stores, these expose the company behind the order:
* **Customer Company** — the company name, with `Is empty` / `Is not empty` to distinguish B2B from retail orders.
* **Company Metafield** (set 2) — custom data on the company record, such as a negotiated shipping tier.
* **Company Location Metafield** (set 3) — custom data on the specific location being shipped to, useful when a company's sites have different arrangements.
`Customer Company Is not empty` is a compact test for "is this a B2B order", without needing to enumerate company names.
## Customer Total Spend and Order Count
Lifetime values from the customer record, for loyalty-based shipping:
```text theme={null}
Type: Show shipping rates
Condition 1: Customer Total Spend <> Greater than <> 1000
Show the following shipping methods: Priority Delivery
```
Both read `0` for guests, so a condition like `Customer Total Order Count Less than 1` matches every guest. If you meant "new registered customers", add a `Customer Logged In <> True` condition alongside it.
## Examples
**Free shipping for VIP customers**
```text theme={null}
Type: Only show specified shipping rates and hide rest
Condition 1: Customer Tag <> Equals <> vip
Show the following shipping methods: Free VIP Shipping
```
**B2B accounts get freight, retail doesn't**
```text theme={null}
Type: Hide shipping rates
Condition 1: Customer Company <> Is empty
Hide the following shipping methods: Freight
```
## Related
Which attributes can be combined in one rule.
Postcode, country, province, and PO Box checks.
The smaller set available to shipping rates.
What happens once conditions match.
# Customer Location and Address
Source: https://shipmagic-docs.speedysquirrelhq.com/customer-location-and-address
Match shipping rate rules on postcode, province, country, warehouse, and time
Location conditions are how you build regional pricing — remote-area surcharges, island rates, metro vs. rural, or restricting a rate to certain countries.
## Available attributes
| Attribute | Operators | Notes |
| - | - | - |
| **Zipcode / Postcode** | Equals, Does Not Equal | Wildcards and ranges supported — see below |
| **Province / State Code** | Equals, Does Not Equal | Two-letter Shopify province codes, separated by `,` |
| **Address Line 1** | Contains, Does Not Contain | Multiple values separated by `;` |
| **Country Code** | Equals, Does Not Equal | Two-letter ISO codes, separated by `;` |
| **Warehouse Zipcode / Postcode** | Equals, Does Not Equal | Same wildcard and range syntax |
| **Time of the Day** | Greater Than, Less Than, Greater Than or Equal, Less Than or Equal | Store timezone |
| **Day of the Week** | Equals, Does Not Equal | Full day names, separated by `,` |
## Postcode matching
The postcode fields accept three syntaxes, and you can mix them in one condition.
| Syntax | Example | Matches |
| - | - | - |
| Exact | `90210` | That postcode only |
| Wildcard | `AB14*` | Anything starting `AB14` |
| Range | `90209-90231` | Every postcode numerically within the range |
| Multiple | `AB14*,90210,3000-3999` | Any of the above, separated by commas |
Wildcards are the practical choice for UK, Canadian, and Dutch postcodes, where the first characters identify the area. Ranges suit numeric systems like US ZIP and Australian postcodes.
Ranges compare numerically. A range like `AB1-AB9` will not behave as you expect on alphanumeric postcodes — use wildcards there instead.
## Country and province codes
Both take the two-letter codes Shopify uses, not full names.
* **Country Code** — ISO 3166-1 alpha-2 (`US`, `GB`, `AU`, `IN`). Separate multiple with semicolons. [Full list](/country-and-province-codes).
* **Province / State Code** — two-letter province codes (`CA`, `NY`, `VIC`, `MH`). Separate multiple with commas. [Full list](/country-and-province-codes).
## Warehouse Zipcode
Matches the **origin** rather than the destination — the location the order would ship from. Use it when you have several warehouses and want rates to differ depending on which one fulfils the order.
## Time and day
**Time of the Day** and **Day of the Week** are evaluated in your **store's timezone**, not the customer's.
Day names are entered in full and separated by commas:
```text theme={null}
Condition 1: Day of the Week <> Equals <> Saturday,Sunday
```
Use these for cut-off logic — for example, hiding an express option after 2pm, or over the weekend when your warehouse is closed.
## Examples
**A remote-area surcharge for specific postcode ranges**
```text theme={null}
Rule must match: All conditions
Condition 1: Zipcode / Postcode <> Equals <> 4800-4899,6700-6799
```
**Restrict a rate to mainland UK by excluding island postcodes**
```text theme={null}
Rule must match: All conditions
Condition 1: Country Code <> Equals <> GB
Condition 2: Zipcode / Postcode <> Does Not Equal <> BT*,IM*,JE*,GY*,HS*,ZE*
```
**No weekend express delivery**
```text theme={null}
Rule must match: All conditions
Condition 1: Day of the Week <> Does Not Equal <> Saturday,Sunday
```
## Related
How zones interact with location conditions.
Match on cart value, quantity, weight, and contents.
Stop split orders charging shipping twice.
The customization approach to regional control.
# Customer Location and Address
Source: https://shipmagic-docs.speedysquirrelhq.com/customer-location-and-address-1
Match customization rules on postcode, country, province, address, and PO Boxes
Location conditions are the most common reason to build a customization — withdrawing options that a carrier can't serve, or that you don't want to offer in a particular region.
## Available attributes
| Attribute | Parameter set | Operators |
| - | - | - |
| **Zipcode / Postcode** | 1, 3 | Equals, Not equals |
| **Country Code** | 1, 2, 3 | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| **Province / State Code** | 2 | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| **Address Line 1** | 1, 2 | Contains, Does not contains |
| **Address is a PO Box** | 1, 2 | True, False |
| **Address is not a PO Box** | 1, 2 | True, False |
| **Shipping Method Name** | 1 | Contains, Does not contains |
| **Shipping Rate** | 1 | Numeric comparisons |
**Province / State Code is only in set 2.** If you need province matching alongside a postcode check (sets 1 and 3), those cannot share a rule — see [Parameter Sets](/ai-tools/different-parameter-sets-for-conditions).
## Postcode matching
Postcodes accept the same flexible syntax as the rates side:
| Syntax | Example | Matches |
| - | - | - |
| Exact | `444001` | That postcode only |
| Wildcard | `AB14*` | Anything starting `AB14` |
| Range | `444001-444099` | Everything numerically within the range |
| Multiple | `AB14*, 444001-444099` | Any of the above, comma-separated |
## PO Box detection
**Address is a PO Box** and **Address is not a PO Box** scan the address the customer entered for any mention of a PO Box.
Most couriers won't deliver to a PO Box, so this is how you withdraw courier options before the order is placed rather than discovering the problem in fulfilment.
```text theme={null}
Type: Hide shipping rates
Condition 1: Address is a PO Box <> True
Hide the following shipping methods: Courier
```
Detection is text-based — it looks for mentions of a PO Box in what the customer typed. An unusually worded address may slip through, so treat it as a strong filter rather than a guarantee.
## Shipping Method Name and Shipping Rate
These two are unusual: they match against **the shipping options themselves** rather than the customer.
* **Shipping Method Name** — matches part of a method's name. Lets you write rules about a family of methods.
* **Shipping Rate** — matches the method's **price**, numerically.
## Country and province codes
Two-letter Shopify codes, not full names.
* **Country Code** — ISO 3166-1 alpha-2 (`US`, `GB`, `AU`, `IN`). [Full list](/country-and-province-codes).
* **Province / State Code** — two-letter province codes (`CA`, `NY`, `VIC`, `MH`). [Full list](/country-and-province-codes).
## Examples
**No express to remote postcodes**
```text theme={null}
Type: Hide shipping rates
Condition 1: Zipcode / Postcode <> Equals <> 4800-4899, 6700-6799
Hide the following shipping methods: Express
```
**Domestic-only options hidden internationally**
```text theme={null}
Type: Hide shipping rates
Condition 1: Country Code <> Not equals <> GB
Hide the following shipping methods: Royal Mail
```
## Related
Which attributes can be combined in one rule.
A worked regional example.
The equivalent for shipping rates.
What happens once conditions match.
# Customs, Fees and Tariffs
Source: https://shipmagic-docs.speedysquirrelhq.com/customs-fees-and-tariffs
Add duties, customs charges and fees into your shipping rates
**Tariff rules** let you add custom charges into the ShipMagic rates, without touching the rules that calculate the shipping itself.
Tariff rules are configured on the app's **Settings** page, under **Customs, Fees & Tariffs**.
## Where tariffs run
Tariffs are the last step in the pricing pipeline:
```
Rate calculation -> Blending -> Tariffs
```
This ordering matters. Because tariffs run *after* blending, the charge lands on the rates the customer will actually be shown — including rates that several rules combined into one. You don't have to think about which rule produced a rate, only about the rate itself.
## Creating a rule
Go to **Settings** and scroll to **Customs, Fees & Tariffs**, just below Blending. Click **Add**.
Give it a name you'll recognise, such as `EU low-value import duty`. This is internal — customers never see it. Set **Status** to Enabled or Disabled.
Decide which cart items the charge is calculated on, and which destinations it applies to.
Choose an amount type, an amount, and — for fixed amounts — how often it is charged.
Apply it to every rate, or only to rates you name.
## Conditions
A tariff rule is built from conditions, the same way a shipping rule is. **Rule must match** decides whether an item has to satisfy **All conditions** or **Any condition**.
| Attribute | Matches on |
| - | - |
| **Product Tag** | Tags on the product |
| **Product Type** | The product's type |
| **Product Vendor** | The product's vendor |
| **Country Code** | Where the order is shipping to |
**Product Tag** and **Product Type** are read from your synced product data. If a product hasn't been synced, those conditions won't match it. See [Syncing Products](/core-concepts/syncing-products).
## The charge
### Amount type
| Type | What it calculates |
| - | - |
| **Fixed amount** | A flat sum, charged once per unit, line, category or order |
| **% of matched item value** | A percentage of the value of the items that matched the conditions |
| **% of shipping rate** | A percentage of the shipping rate the tariff is being added to |
Amounts are in your store's currency and are not converted.
### Charge basis
**Charge basis** appears only for **Fixed amount**. The two percentage types produce the same total however you slice them, so there is nothing to choose.
Take a cart of three lines — two of them tagged `electronics`, one tagged `apparel` — with a rule of **Product Tag equals** `electronics, apparel` and a fixed charge of €3:
| Cart line | Quantity | Tag |
| - | - | - |
| Wireless earbuds | 2 | `electronics` |
| Cotton t-shirt | 1 | `apparel` |
| USB cable | 3 | `electronics` |
| Charge basis | Charged | Total |
| - | - | - |
| **Per unit** | 6 times, once per item in the cart | €18 |
| **Per line item** | 3 times, once per matching cart line | €9 |
| **Per item category** | 2 times, once per tag | €6 |
| **Once per order** | 1 time | €3 |
## Which shipping rates it applies to
Apply the tariff to **All shipping rates**, or name the ones you want. A charge is only ever added if that rate is in the final list returned to checkout, so a rule naming a rate that didn't survive blending simply does nothing.
## Showing the charge to the customer
Shopify's rate API has no separate line for surcharges, so the tariff is added into the shipping rate's price. If you want the customer to know why, fill in **Add to rate description**. The token `{amount}` is replaced with the charge:
```
Includes {amount} import duty
```
That appears beneath the rate name at checkout, alongside any [rate description](/rate-descriptions) you've already set.
## Using several rules together
Every rule that matches is applied, and the charges add up. Percentages are always calculated against the rate's price **before** any tariff was added, so the order your rules happen to be listed in never changes the total.
## Example: the EU low-value import duty
From 1 July 2026 the EU applies a flat €3 customs duty per item on low-value e-commerce consignments. Here is one way to set that up:
| Field | Value |
| - | - |
| **Name** | EU low-value import duty |
| **Rule must match** | All conditions |
| **Condition** | Country Code · equals · `AT; BE; BG; HR; CY; CZ; DK; EE; FI; FR; DE; GR; HU; IE; IT; LV; LT; LU; MT; NL; PL; PT; RO; SK; SI; ES; SE` |
| **Amount type** | Fixed amount |
| **Amount** | 3 |
| **Charge basis** | Per item category |
| **Apply to** | All shipping rates |
| **Add to rate description** | Includes `{amount}` EU import duty |
## Related
What runs immediately before tariffs.
Required for tag and type conditions.
The text the tariff description is appended to.
The codes to use in a destination condition.
# Direct Freight Express
Source: https://shipmagic-docs.speedysquirrelhq.com/direct-freight-express
Show live Direct Freight Express rates, including pallet and skid freight
Direct Freight Express is an Australian freight carrier. The integration supports both parcel and pallet-scale consignments, which makes it the right choice for heavy or oversized goods that a parcel carrier won't take.
## Getting credentials
Direct Freight Express provides an **API Key** and your **Account Number** through your account manager or their customer portal.
## Setting up the rate
In your rule, click **Add rate** on the zone you want.
Choose it under the live carrier options.
Fill in **API Key** and **Account Number**.
Select the consignment type — including **Pallet** and **Skid** options for freight-scale orders.
Tick **Fuel Levy Charges** to add the fuel levy to the final delivery cost.
Set **Packaging box distribution** and define your boxes or pallets.
**Default rate** is used if Direct Freight Express doesn't respond.
## Fuel Levy Charges
Freight carriers bill a fuel levy on top of the base rate, and it moves with fuel prices.
Leave **Fuel Levy Charges** unticked and the quote your customer sees excludes a charge you will be billed for. On freight consignments the levy is a meaningful percentage, not a rounding error.
Tick it unless you have a deliberate reason to absorb the cost.
## Pallets and skids
Setting **Rate Type** to a pallet or skid option changes what ShipMagic quotes for — a pallet consignment rather than a set of cartons.
Pallet configuration asks for the pallet's **Length**, **Width**, and a **Max Pallet Height**. Items are distributed onto pallets up to that height.
If you sell both small parcels and pallet-scale goods, split them across two rules with a product condition — for example on [product weight or dimensions](/cart) — so each consignment type is quoted correctly.
## Always set a Default rate
If the carrier is unavailable and no default rate is set, the customer sees no shipping option and cannot complete checkout. This matters more on freight, where a failed quote can lose a high-value order.
## Testing
1. Add products with accurate weights and dimensions
2. Check out to a real Australian address, using a fresh address each time
3. Test both a small cart and one large enough to trigger pallet rating
4. Confirm the fuel levy is included if you enabled it
## Related
Box and pallet distribution methods.
Dimension data that freight quotes depend on.
The parcel-scale Australian option.
Routing oversized goods to a freight rate.
# Distance-Based Rates
Source: https://shipmagic-docs.speedysquirrelhq.com/distance-based-rates
Price shipping by how far the delivery address is from your warehouse
Distance rates price shipping on how far the customer is from your origin, measured in kilometres. They suit local delivery, furniture, and anything you deliver with your own vehicles.
This rate type needs a **Google Maps API key**. Distances are calculated through Google's mapping service rather than estimated from postcodes.
## Setting one up
Create one in the [Google Cloud Console](https://console.cloud.google.com/google/maps-apis) with the distance and geocoding services enabled. Google bills for usage, so review their pricing before going live.
In your rule, click **Add rate** and set **Calculation parameter** to **Distance**.
Paste it into **Google maps API key**.
Under **Origin Location**, give the **Country** and **Postcode** you deliver from.
**Distance calculation method (in kilometers)** decides how the distance is measured.
Distance behaves like any other numeric parameter — pick **Range**, **Incremental**, **Range + Incremental**, or **Range + Range**, and price the bands.
## Pricing by distance
Distance pairs naturally with the standard rate types:
**Range** gives you delivery bands — the usual shape for local delivery:
| Range Start | Range End | Price |
| - | - | - |
| 0 | 10 | 5.00 |
| 10.01 | 25 | 10.00 |
| 25.01 | 50 | 18.00 |
| 50.01 | *(empty)* | 30.00 |
**Incremental** charges per kilometre — a base price plus an amount for every km beyond a starting point. See [Incremental / Per Item Rates](/incremental-per-item-rates).
Leave the final band's **Range End** empty. Without it, a customer beyond your furthest band gets no rate at all — which on a distance rate means anyone unusually far away silently loses their shipping option.
## Restricting your delivery radius
A distance rate alone doesn't stop someone far away from ordering — it just prices them. To decline delivery beyond a radius, cap your bands at that distance and don't add an open-ended final band, so no rate is produced past it.
## Cost and reliability
Every rate query calls Google, which has two consequences worth planning for.
**Google bills per request.** A busy checkout generates a lot of them. Review Google's pricing and set a quota so an unexpected traffic spike doesn't produce an unexpected bill.
If Google is unavailable, the distance cannot be calculated. Test what your checkout does in that case before relying on distance rates as your only option.
## Testing
1. Check out to an address close to your origin and confirm the nearest band applies
2. Try one far away and confirm the correct band — or no rate, if that's intended
3. Test a boundary distance to confirm your bands don't overlap or leave a gap
4. Use a fresh address each time, since rates are cached per address
## Related
Building the distance bands.
Charging per kilometre.
Routing rules by warehouse origin.
Bounding a distance calculation.
# Adding / Modifying Shipping Zones
Source: https://shipmagic-docs.speedysquirrelhq.com/essentials/adding-modifying-shipping-zones
Create and edit the shipping zones ShipMagic uses to price your rates
A **zone** is a named group of countries, states, and provinces. Each rule has its own rates for every zone, and at checkout ShipMagic uses the zone that contains the customer's address.
You manage zones on the **Shipping Zones** page in the app.
## Where your first zones come from
When you install ShipMagic, it creates your first zones from your Shopify setup:
* **Stores using shipping profiles:** one zone for each shipping zone in your **General** profile.
* **Stores using market-driven shipping:** one zone for each active market, named after the market.
From then on, your zones belong to ShipMagic. Editing your Shopify shipping settings or markets doesn't change your ShipMagic zones, and editing ShipMagic zones doesn't change Shopify.
**Sync now has been retired.** ShipMagic used to copy your Shopify zones with a **Sync now** button in **Settings**. You now add and edit zones directly on the **Shipping Zones** page.
## Adding a zone
In the app, go to **Shipping Zones** and click **Add zone**.
Customers never see zone names. Use a name that's clear on your rules, like *Domestic* or *Europe*.
Search for a country and tick it to include the whole country. To include only some of its states or provinces, expand the country and tick the ones you want.
The new zone appears on all your rules, with no rates yet.
A new zone has no rates. Customers in it won't see ShipMagic rates until you open your rules and add rates for the zone.
## Each region is in one zone
A country, state, or province can belong to only one zone, so it's always clear which rates apply. When you choose regions:
* A country that's already in another zone is greyed out and labelled with that zone's name.
* Inside a country, states or provinces that are already in another zone are greyed out too.
To move a region to a different zone, remove it from its current zone first, then add it to the other one.
## Rest of world
Tick **Rest of world** to make a zone that covers every country and province that isn't in another zone. You can have one Rest of world zone.
## Editing and deleting zones
Open a zone from the **Shipping Zones** list to rename it or change its regions.
When you delete a zone, ShipMagic lists the rules that have rates for it before you confirm. After you delete it, those rates stop applying. Customers in its regions get your Rest of world rates if you have a Rest of world zone, and no ShipMagic rates if you don't.
## Markets without ShipMagic
If your store uses market-driven shipping, Shopify only asks ShipMagic for rates in markets where ShipMagic is added as a carrier-calculated shipping rate. If a market doesn't have it, the **Shipping Zones** page shows a warning listing that market. Click the market's name to open it in Shopify and add ShipMagic.
## If no zones appear
If a rule shows a warning instead of your zones, your store doesn't have any zones yet. Add one on the **Shipping Zones** page.
## Zones with no rates
A zone that has no rates shows a warning inside the rule:
> No rates. Customers in this zone won't see shipping rates from ShipMagic app.
This is worth taking seriously. A rule can match a customer's cart perfectly and still return nothing if their zone has no rate.
## Custom shipping profiles
On stores using shipping profiles, ShipMagic is added to the **General** profile automatically. To use it on a custom profile, add it there as a rate provider (see the [Installation Guide](/installation-guide#add-shipmagic-as-a-rate-provider-custom-profiles--zones)). If that profile ships to regions your ShipMagic zones don't cover, add those regions on the **Shipping Zones** page.
## Related
Adding ShipMagic as a rate provider.
Attaching rates to a zone.
Finer regional control than zones alone.
When a zone is configured but nothing appears.
# Cloning a rule
Source: https://shipmagic-docs.speedysquirrelhq.com/essentials/cloning-a-rule
Copy an existing rule's conditions and rates into a new one
Cloning copies the conditions and rates from an existing rule into a new one, so you can build a variant of a rule you already trust without rebuilding it by hand.
## How to clone
Every rule has a numeric ID. See [finding a rule ID](#finding-a-rule-id) below.
Go to **Shipping Rates** and click **Add Rule**.
Use the **Clone** action on the new rule page and enter the ID of the rule you want to copy.
The form is populated with the source rule's conditions and rates. Change what you need, then set a **name** and a **priority** of its own and save.
The clone arrives with the source rule's values, but **priority must be unique** — no two rules can share one. Give the clone its own priority before saving, or it won't save.
## Finding a rule ID
The rule ID is not shown on the rules list by default. Instead it's seen in the browser address bar.
## What gets copied
Cloning brings across the parts of a rule that are laborious to recreate — its conditions and the rates attached to each zone. You still set the new rule's own identity: its name, its priority, and its status.
To copy an entire setup between two stores, use [Cloning Full Setup from One Store to Another](/cloning-full-setup-from-one-store-to-another).
## Related
Move a whole configuration to another store.
Rule fields, priority, and exclusivity.
The multi-band rates that benefit most from cloning.
Keeping a growing rule set manageable.
# Exclusive Rules
Source: https://shipmagic-docs.speedysquirrelhq.com/exclusive-rules
Stop lower-priority rules from being evaluated once a rule matches
By default, every rule whose conditions match contributes its rates. **Exclusivity** changes that: an exclusive rule that matches stops evaluation there.
## Inclusive vs. Exclusive
Every rule has an **Exclusivity** setting with two choices:
| Setting | Behaviour |
| - | - |
| **Inclusive** (default) | Lower-priority rules are still evaluated and their rates added. |
| **Exclusive** | If this rule matches, all lower-priority rules are skipped. |
## Priority decides what "lower" means
Exclusivity is meaningless without [priority](/shipping-rates/basic-shipping-rate). Rules are evaluated in **ascending** order — 1 before 2 before 10 — and an exclusive match stops everything after it.
Rules with a **higher** priority number are the ones skipped. Anything with a lower number has already run.
## When to use it
**Overrides.** A rule for a special case that should replace normal pricing rather than add to it — hazardous goods that must ship freight, at a freight price, regardless of what else is in the cart.
**Free shipping promotions.** A promotional free-shipping rule that must not have a surcharge rule adding to it afterwards.
```text theme={null}
Rule 1 — Hazardous Good (Priority 10, Exclusive)
Condition 1: Cart Contains <> Product Tag <> Equals <> hazard
Rate: Specialzed Conatiner Shipping, Fixed rate, 100
Rule 2 — Standard pricing (Priority 20, Inclusive)
Condition 1: Cart Subtotal <> Greater Than <> 150
Rate: Standard Shipping, Fixed rate, 0
```
## Exclusivity vs. blending
These solve overlapping problems from different angles, and it's worth being clear which you want.
* [**Blending**](/rate-blending) lets every matching rule contribute, then decides how to combine the results — add them, or take the highest or lowest.
* **Exclusivity** stops the later rules producing anything at all.
If the answer is "the other rules shouldn't even run", use exclusivity. If it's "they should run, but I only want the cheapest", use lowest-rate blending. Exclusivity is the blunter and more predictable of the two.
## Testing
Exclusivity is invisible until rules overlap, so test the overlap deliberately.
1. Build a cart matching **only** the exclusive rule — confirm its rates appear
2. Build a cart matching the exclusive rule **and** a lower-priority rule — confirm only the exclusive rule's rates appear
3. Build a cart matching only the lower-priority rule — confirm it still works
## Related
The alternative to skipping rules outright.
Priority, and why each rule needs a unique one.
Keeping a growing rule set predictable.
When too many rules contribute.
# FAQs
Source: https://shipmagic-docs.speedysquirrelhq.com/faqs
Answers to the questions merchants ask most often about ShipMagic
## Getting started
**Shipping Rates** create and show new rates from the app, letting you build pricing that isn't possible in Shopify natively — percentage-based rates, rules by product or customer, live carrier rates.
**Shipping Customizations** work on the rates you already have in Shopify, conditionally hiding, renaming, or reordering them.
In short: rates change **what customers pay**, customizations change **what customers see**.
Full comparison in [Rates vs Customizations](/core-concepts/rates-vs-customizations).
You need **Carrier Calculated Shipping** only if you want to create **shipping rates** in the app. This is the official Shopify mechanism through which all shipping rate apps, including ShipMagic, are permitted to show rates at checkout.
If you only want to control the visibility or names of rates you already have in Shopify, you **do not need CCS** — [Shipping Customizations](/shipping-customizations/basic-shipping-customization) work on every Shopify plan.
To check whether you have it, open the **Shipping Rates** page in the app. If CCS isn't enabled you'll see an error; no error means it's active. See the [Installation Guide](/installation-guide#2-ensure-ccs-is-enabled-on-your-store).
We offer **free setup** of the app for your store. Our founders will personally help you get to the right configuration.
[Book a free onboarding call](https://cal.com/speedysquirrel/shipmagic-setup), or reach out on [live chat](https://tawk.to/chat/649858bd94cf5d49dc5fbec1/1h3phl9e5).
Get in touch on [live chat](https://tawk.to/chat/649858bd94cf5d49dc5fbec1/1h3phl9e5). We'll do our best to incorporate your use case into the app.
## Setup and testing
Only if your **shipping rate** rules use one of these product attributes:
* Product Tag
* Product Type
* Product Title
* Product Barcode
* Product Compare-at Price
Shopify doesn't send these to the app at checkout, so ShipMagic reads them from its own synced copy. Sync from **Settings → Products → Sync Now**.
Product syncing is **not** required for Shipping Customizations. See [Syncing Products](/core-concepts/syncing-products).
Yes. Leave the app in **test mode** — the toggles on **Settings → App Modes** switched off — and enter `shipmagic` as the **first name** at checkout. ShipMagic rates then appear only for your session, while real customers continue to see your existing Shopify rates.
Rates and customizations have **separate toggles**, so check both. See [Testing the App](/core-concepts/testing-the-app) and [Test mode vs live mode](/test-mode-vs-live-mode).
Shopify **caches shipping rates per address**. If you retest with an address you've already used, you'll see the previous quote regardless of what you changed.
Use a genuinely new address each time — vary the street number and postcode, not just the flat number.
If a fresh address still shows the old behaviour, work through [Made changes but still seeing old rates](/made-changes-in-the-rule-but-still-seeing-the-old-rates).
The usual causes, in rough order of likelihood: CCS isn't enabled; the app is in test mode and you didn't use the `shipmagic` first name; ShipMagic isn't a rate provider on that shipping profile (or, with market-driven shipping, isn't added in that market); the address isn't in any of your ShipMagic zones; or the rule's conditions don't match your test cart.
Work through [Shipping Rates Not Showing On Checkout Page](/shipping-rates-not-showing-on-checkout-page), which covers all nine causes with a check and fix for each.
## Billing
* **Starter** — Shipping Customizations only. Hide, rename, and reorder existing rates.
* **Pro** — Shipping Rates, including rates by zipcode, product, and customer, plus live carrier rates. Customizations are included.
* **Pro+** — custom-coded shipping logic for requirements the standard rule engine can't express.
You only need a paid plan to run in **live mode**; testing is free. See [Billing](/core-concepts/billing).
Uninstall the app from your store and the subscription is cancelled automatically. Removal is clean, with no residual code left in your theme.
Your rules and settings are preserved. If you reinstall later, you can reactivate a plan and continue with your saved setup.
## Common shipping problems
When an order is fulfilled from more than one location, Shopify can charge shipping for each — and Shopify itself offers no way to prevent it.
We've developed a solution that works well for flat rate shipping. Reach out on [live chat](https://tawk.to/chat/649858bd94cf5d49dc5fbec1/1h3phl9e5) and we'll help you set it up.
Most often your original Shopify rates are still in place alongside ShipMagic's. Delete the manual rates you no longer want from **Settings → Shipping and Delivery**.
Other causes include several rules matching one cart, overlapping ranged-rate bands, and live carriers returning many services at once. See [Multiple Shipping Rates Showing On Checkout Page](/multiple-shipping-rates-showing-on-checkout-page).
Yes. ShipMagic connects directly to USPS, FedEx, Australia Post, ShipStation, Shiprocket, Stallion Express, and Direct Freight Express using your own account, so rates reflect your negotiated pricing.
Always set a **Default rate** on a carrier rate — if the carrier doesn't respond and no default is set, the customer sees no shipping option at all. Start with [the packing algorithm](/shipping-rates/types-of-rates/carrier-rates/3-d-boxing-algorithm), which determines what gets quoted.
## Still have a question?
# FedEx
Source: https://shipmagic-docs.speedysquirrelhq.com/fed-ex
Show live FedEx rates at checkout using your own account
Connect your FedEx account and ShipMagic will query real FedEx rates at checkout, priced against your negotiated contract.
## Getting credentials
FedEx issues API credentials through the [FedEx Developer Portal](https://developer.fedex.com/). Create a project and copy the **API Key**, **Secret Key**, and your FedEx **Account Number**.
The account number matters. FedEx prices against the contract attached to it, so the rates your customers see reflect your negotiated pricing rather than list rates.
## Setting up the rate
In your rule, click **Add rate** on the zone you want.
Choose **Fedex** under the live carrier options.
Fill in **API Key**, **Secret Key**, and **Account Number**.
Tick **Hide estimated delivery dates** to suppress the delivery dates FedEx returns.
Set **Packaging box distribution** and define your boxes. See [the packing algorithm](/shipping-rates/types-of-rates/carrier-rates/3-d-boxing-algorithm).
**Discount (Optional)** reduces every returned rate by a percentage. **Default rate (Optional)** is used if FedEx doesn't respond.
## Estimated delivery dates
FedEx calculates delivery estimates itself and returns them with each rate. ShipMagic passes them through to checkout.
**Hide estimated delivery dates** turns this off. Consider it if:
* Your dispatch time means FedEx's estimate is misleading — it measures transit, not the day you actually hand the parcel over.
* You'd rather set expectations yourself with a [rate description](/rate-descriptions), which supports dynamic dates like `{{today+3}}`.
A FedEx estimate assumes same-day handover. If you dispatch next working day, every date shown at checkout is a day optimistic — and customers hold you to it.
## The Discount field
**Discount (Optional)** applies a percentage reduction to every rate FedEx returns, after the quote comes back. Use it to subsidise shipping or pass on part of a contract advantage.
## Handling Fees
FedEx rates have a **Handling Fees** section with two fields, which can be used together:
| Field | Effect |
| - | - |
| **Percentage** | Adds a percentage of the returned rate |
| **Flat amount** | Adds a fixed amount in your store currency |
Both are applied on top of the rate FedEx returns, so this is where you recover packaging, labour, or insurance costs the carrier's quote doesn't include.
Handling fees are specific to the FedEx integration — no other carrier offers them. To add a surcharge elsewhere, create a separate rule with a fixed rate and let [blending](/rate-blending) add the two together.
A flat handling fee is easier for customers to accept, and easier for you to reason about, than an inflated shipping rate. A percentage fee compounds with FedEx's own pricing and grows faster than you expect on large consignments.
**Order matters when you combine these.** The discount is applied to the carrier's rate first, and the handling fee is then calculated on the already-discounted price.
So a 10% discount plus a 10% percentage handling fee does **not** cancel out — a \$100 rate becomes \$90, then \$99. If you want the two to offset exactly, the handling fee has to be slightly larger than the discount.
When both handling fee fields are set, the percentage is applied first and the flat amount is added afterwards.
## Always set a Default rate
The default rate is optional in the form but important in practice. If FedEx is slow or unavailable and no default is set, the customer sees no shipping option and cannot check out.
## Testing
1. Add products with accurate weights and dimensions
2. Check out to a real, complete address
3. Compare the quote against what FedEx bills you for the same parcel
Use a fresh address each time — Shopify caches rates per address.
If quotes come back consistently low, suspect dimensions before suspecting the integration. FedEx prices on dimensional weight, and [missing product dimensions](/adding-dimensions-to-products) understate parcel size.
## Related
How items are distributed into parcels before quoting.
Dimension data that carrier quotes depend on.
Set delivery expectations in your own words.
When a carrier rate fails to appear.
# How to Find the ID of a Product Collection
Source: https://shipmagic-docs.speedysquirrelhq.com/finding-collection-and-rule-ids
Look up the numeric ID Shopify assigns to a collection
The **Product Collection** condition matches on a collection's numeric **ID**, not its name. Every collection in Shopify has a unique number, and you can read it straight from the URL.
## Finding the ID
Go to **Products → Collections** and click the collection you want.
The URL looks like this:
```text theme={null}
https://admin.shopify.com/store/your-store/collections/123456789
```
The trailing number — `123456789` — is the collection ID.
## Related
The Product Collection condition and the rest of the customization attributes.
Which condition set exposes Product Collection.
The other codes ShipMagic conditions expect.
Finding a rule ID, and copying a rule.
# Incremental / Per Item Rates
Source: https://shipmagic-docs.speedysquirrelhq.com/incremental-per-item-rates
Charge a base price plus an additional amount for every unit
An **Incremental** rate charges a base price, then adds more for every N units beyond a starting point. It's the natural shape for "\$5 for the first item, \$2 for each additional one".
## Setting one up
Set **Calculation parameter** to **Number of items**, **Total weight of items**, or **Total price of items** — whatever the increment should be measured in.
Four fields appear.
| Field | Meaning |
| - | - |
| **Base price** | The starting charge, applied once. |
| **Incremental price** | Added for each step beyond the start. |
| **Per each** | The size of one step. |
| **Start from** | Where incrementing begins. Leave empty for the default. |
## How the fields combine
The rate is:
```text theme={null}
Base price + (Incremental price × steps beyond "Start from")
```
where a step is **Per each** units.
With Base price `5`, Incremental price `2`, Per each `1`:
| Items in cart | Price |
| - | - |
| 1 | 5.00 |
| 2 | 7.00 |
| 3 | 9.00 |
| 5 | 13.00 |
Setting **Per each** to `2` would instead add \$2 for every *two* extra items.
## Weight-based increments
The same structure works for weight. With **Total weight of items** as the calculation parameter, Base price `10`, Incremental price `1.50`, Per each `1`, and Start from `5`, a 5kg parcel costs \$10 and each kilo above 5 adds \$1.50.
**Per each** is expressed in your store's weight unit, shown as a suffix on the field.
## Incremental vs. Ranged
Both produce a rising price, but they behave differently between steps:
* **Incremental** is smooth and unbounded — it keeps climbing with no ceiling.
* [**Ranged**](/ranged-rates) is a lookup table — one flat price per band.
Choose Incremental when cost genuinely tracks quantity. Choose Ranged when you have negotiated carrier prices for specific brackets.
An incremental rate has no upper limit by default. On a very large order it can produce a surprising number — set a ceiling with [Setting Maximum and Minimum Shipping Rates](/setting-maximum-and-minimum-shipping-rates).
## Range + Incremental
To apply an incremental charge only inside a particular band, use the **Range + Incremental** rate type. You give a Range Start and Range End first, then the base and incremental fields. Outside the band, the rate does not apply.
## Examples
**\$5 first item, \$2 each additional**
```text theme={null}
Rate name: Standard Shipping
Calculation parameter: Number of items
Rate Type: Incremental
Base price: 5
Incremental price: 2
Per each: 1
Start from: 1
```
**Free up to 3 items, then \$1.50 each**
```text theme={null}
Calculation parameter: Number of items
Rate Type: Incremental
Base price: 0
Incremental price: 1.50
Per each: 1
Start from: 3
```
## Related
Flat price per band instead of a smooth climb.
The per-product use case, start to finish.
Cap an incremental rate.
The full rate dialog reference.
# Introduction
Source: https://shipmagic-docs.speedysquirrelhq.com/index
Welcome to ShipMagic - the complete solution for all your Shopify shipping rate needs.
## What is ShipMagic?
ShipMagic is a powerful shipping rate calculator for Shopify that lets you create flexible, rule-based shipping logic to deliver accurate and personalized rates at checkout. This helps you:
* Stop losing money on shipping
* Boost your checkout conversion rate
## Key Features
Create shipping rates based on products, cart value, quantity, tags, and other 25+ parameters.
Show tailored shipping rates using customer tags, metafields, behaviour, etc.
Display accurate, real-time shipping rates using your account with leading carriers.
Use advanced 3D bin packing to fit items efficiently and compute precise shipping costs.
Use our API to display shipping rates on custom pages like cart, product details, etc.
## Need help?
Reach out to us with questions, feedback or feature requests using any of the following means:
# Installation Guide
Source: https://shipmagic-docs.speedysquirrelhq.com/installation-guide
Follow the steps below to install and connect ShipMagic with your Shopify store.
## Steps To Install The App
Install ShipMagic from [Shopify App Store](https://apps.shopify.com/shipping-calculator-shipmagic?referrer=mintlify-installation-guide).
Navigate to Settings → Shipping and Delivery → General Profile.
If ShipMagic appears as a shipping rate provider in your zones, the app is set up and connected correctly.
If you don’t see ShipMagic App listed in your shipping zones, check the following:
**1. Verify you are checking in the General Shipping Profile**
* By default, ShipMagic connects to the General shipping profile.
* If you’re using a custom profile, you’ll need to connect the app manually. Follow the setup steps [here](#add-shipmagic-as-a-rate-provider-custom-profiles-&-zones) in order to to do.
**2. Ensure CCS is enabled on your store**
* Carrier Calculated Shipping (CCS) is a [Shopify feature](https://help.shopify.com/en/manual/fulfillment/setup/shipping-rates/third-party-carrier-calculated-shipping) that allows third-party apps like ShipMagic to display shipping rates at checkout.
* This is mandatory and is required for all third party shipping rate apps.
* You can contact [Shopify customer support](https://help.shopify.com/en#/contact) in order to enable CCS for your store.
Tip: If you're unsure whether CCS is enabled, go to the Shipping Rates page in the app.
If CCS is not enabled, you’ll see an error message. If no error is shown, CCS is active on your store.
Shipping Customizations are installed automatically and do not require any manual verification.
They are enabled by default and work seamlessly across all stores.
## Stores Using Market-Driven Shipping
If your store has moved to Shopify's market-driven shipping, shipping options are set on each **market** rather than in shipping profiles. Add ShipMagic to each market you want it in as a carrier-calculated shipping rate, choosing **ShipMagic App**.
After installing, open the **Shipping Zones** page in the app. If ShipMagic isn't added in some of your markets, the page lists them. Click a market's name to open it in Shopify.
## Add ShipMagic as a Rate Provider (Custom Profiles & Zones)
You need to have [CCS enabled](#2-ensure-ccs-is-enabled-on-your-store) on your store to perform this operation.
# Made changes in the rule but still seeing the old rates
Source: https://shipmagic-docs.speedysquirrelhq.com/made-changes-in-the-rule-but-still-seeing-the-old-rates
Why an edited rule appears not to have changed anything, and how to test properly
You edited a rule, saved it, went back to checkout — and nothing changed. Almost always, this is caching rather than a broken rule.
## Shopify caches rates per address
When Shopify has quoted shipping for an address, it reuses that quote for subsequent checkouts to the same address rather than asking the app again.
Your rule change is live. You're just not being shown a fresh calculation.
This is the single most common source of "my change didn't work" reports. Before investigating anything else, retest with an address you have never used before.
## Other things that look like caching
If a genuinely fresh address still shows the old behaviour, work through these.
### The rule didn't save
The rule form's **Save** button stays disabled until the rule has a name, a priority, and at least one condition. It's possible to make an edit, be unable to save, and navigate away.
**Check:** reopen the rule and confirm your change is actually there.
### Products need re-syncing
If your change involved **Product Tag, Type, Title, Barcode, or Compare-at Price**, and you also changed those values in Shopify, the app is still using its old synced copy.
**Fix:** **Settings → Products → Sync Now**. Note that [auto-sync covers only newly created products](/core-concepts/syncing-products) — edits to existing products need a manual sync.
### You changed zones in Shopify
ShipMagic zones don't follow your Shopify shipping zones or markets. If you changed zones or markets in Shopify, make the same change on the **Shipping Zones** page in the app.
### A customization is overriding the result
Your rate may be calculating correctly and then being hidden or renamed downstream.
**Check:** temporarily deactivate your customizations and retest. See [Shipping Customizations Not Working](/shipping-customizations-not-working).
## Still stuck?
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup), or reach out on [live chat](https://tawk.to/chat/649858bd94cf5d49dc5fbec1/1h3phl9e5).
## Related
A full testing walkthrough.
When a manual sync is required.
When no rate appears at all.
Which mode you're testing in.
# Multiple Shipping Rates Showing On Checkout Page
Source: https://shipmagic-docs.speedysquirrelhq.com/multiple-shipping-rates-showing-on-checkout-page
Reduce a cluttered checkout down to the options you meant to offer
Too many shipping options is a conversion problem, not just an aesthetic one. Here's where the extras usually come from.
## 1. Old Shopify rates alongside ShipMagic rates
The most common cause. Your manual Shopify rates don't disappear when ShipMagic starts returning its own — both are offered.
**Check:** **Shopify Admin → Settings → Shipping and Delivery**, and look at the manual rates in your profile.
**Fix:** delete the manual rates you no longer want. See [Going Live](/core-concepts/going-live#removing-old-shopify-rates).
## 2. Several rules matching the same cart
Every matching rule contributes its rates. Three rules matching one cart produce three sets.
**Fix, depending on what you want:**
* **They should combine into one price** — give the rates the **same name** and set basic blending to **Add rates**. See [Rate Blending](/rate-blending).
* **Only one should apply** — mark the winning rule [Exclusive](/exclusive-rules) so lower-priority rules are skipped.
* **They're genuinely alternatives** — set blending to **lowest** or **highest** so only one shows.
## 3. Ranged rate bands overlapping
If two [ranged rates](/ranged-rates) cover the same value, a cart in the overlap matches both.
**Check:** your band boundaries. Bands `0–100` and `100–200` overlap at exactly 100.
**Fix:** start each band just above the previous one — `0–100`, then `100.01–200`.
## 4. A carrier returning many services
Live carrier rates can return a long list — Shiprocket in particular queries many courier partners, and ShipStation exposes every carrier in your account.
**Fix:**
* Use **Lowest rate only** or **Highest rate only** on the carrier rate.
* Select fewer services in the carrier's configuration.
* Hide the extras with a [customization](/ai-tools/actions-hide-rename-sort).
## 5. A multi-location order charging twice
An order fulfilled from two locations can produce shipping for each.
**Fix:** see [Prevent double shipping charges](/avoid-doubling-of-shipping-charges-due-to-multiple-locations).
## Reducing the list deliberately
Once the duplicates are gone, decide how many options you actually want to offer.
Two or three is the practical sweet spot — typically a standard option, a faster one, and free shipping if you offer it. Beyond that, extra choices tend to cause hesitation rather than satisfaction.
To trim without changing your rate logic, use **Only show specified shipping rates and hide rest** in a customization. It settles the outcome in one rule and keeps working as new methods appear.
## Still stuck?
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup), or reach out on [live chat](https://tawk.to/chat/649858bd94cf5d49dc5fbec1/1h3phl9e5).
## Related
Combining several matching rates into one.
Stopping lower-priority rules contributing.
Removing your old Shopify rates.
Hiding the options you don't want shown.
# Percentage of Cart Subtotal
Source: https://shipmagic-docs.speedysquirrelhq.com/percentage-of-cart-subtotal
Charge shipping as a percentage of the order value
Percentage rates scale shipping with the value of the order. They suit high-value or insured goods, where cost tracks price rather than weight or size.
## Setting one up
Inside your rule, click **Add rate** on the shipping zone you want.
Set **Calculation parameter** to **Percentage of total price**.
Enter the number only — `10` means 10%, not 0.1.
Tick **Round up to nearest integer** if you want whole-currency prices. With it on, a calculated \$2.67 becomes \$3.
Percentage rates do **not** ask for a Rate Type — there are no ranges or increments to configure. The price is simply the percentage applied to the cart.
## What the percentage applies to
The percentage is taken from the **total price of the items the rule matched**, not necessarily the whole cart.
This matters when a rule targets a subset of products. If a rule matches only items tagged `fragile`, a 10% rate charges 10% of the fragile items' value — not 10% of the entire order.
This is what makes percentage rates work well with product conditions: you can charge 10% on artwork and a flat fee on everything else, in two separate rules, and each rate only sees its own products.
## Capping the result
A pure percentage has no ceiling, which on a large order can produce an unreasonable shipping charge. Use [Setting Maximum and Minimum Shipping Rates](/setting-maximum-and-minimum-shipping-rates) to bound it.
A percentage rate with no maximum is one of the more common causes of complaints about shipping cost at checkout. If you use percentage rates, set a cap.
## Examples
**10% of order value, capped**
```text theme={null}
Rate name: Insured Shipping
Calculation parameter: Percentage of total price
Percentage: 10
Round up to nearest integer: on
```
Then set a maximum on the rule so it never exceeds your ceiling.
**Percentage on artwork only, flat rate on the rest**
```text theme={null}
Rule 1 — Artwork (Priority 10)
Condition 1: Product Type <> Equals <> Artwork
Rate: Percentage of total price, 8%
Rule 2 — Everything else (Priority 20)
Condition 1: Product Type <> Does Not Equal <> Artwork
Rate: Fixed rate, 6.95
```
## Related
Put a floor and ceiling on any calculated rate.
Price bands instead of a smooth percentage.
Choose whether to measure before or after discounts.
Combine a percentage rate with others.
# Product Attributes
Source: https://shipmagic-docs.speedysquirrelhq.com/product-attributes
Match customization rules on product tags, collections, SKUs, metafields, and subscriptions
Product conditions ask whether the items in the cart meet a test. They're how you withdraw a shipping method for goods that can't travel that way — fragile items, hazardous goods, oversized furniture.
Unlike shipping rates, customizations **do not require product syncing**. Shopify sends product data to customizations at checkout directly.
## Available attributes
| Attribute | Parameter set | Operators |
| - | - | - |
| **Product Tag** | 1, 2 | Equals, Not equals |
| **Product Title** | 1 | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| **Product Type** | 1 | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| **Product Vendor** | 1 | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| **Variant Title** | 1 | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| **Product Weight** | 1 | Numeric comparisons |
| **Product Price** | 1 | Numeric comparisons, Is empty, Is not empty |
| **Product Collection** | 1, 3 | Equals, Not equals |
| **Line Item Property** | 1 | Equals, Not equals, Contains, Does not contains, Is empty, Is not empty |
| **SKU** | 2 | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| **Variant Metafield** | 2 | Equals, Not equals, Contains, Does not contains |
| **Is subscription product** | 2 | True, False |
| **Product Metafield** | 3 | Equals, Not equals, Contains, Does not contains, Is empty, Is not empty, Includes in list, Not includes in list |
| **Number Of Product Metafield Values** | 3 | Numeric comparisons |
Attributes from different sets cannot be combined in one rule. SKU (set 2) and Product Metafield (set 3) will never appear in the same dropdown. See [Parameter Sets](/ai-tools/different-parameter-sets-for-conditions).
## Product Collection
Collections are matched by **ID**, not by name. Enter comma-separated IDs.
See [Finding Collection IDs](/finding-collection-and-rule-ids) for how to look one up.
Collections are often the most maintainable way to drive shipping rules. Merchandisers already curate them, and a product joining the collection automatically picks up the shipping behaviour — no tag to remember.
## How the cart is evaluated
For each product condition you also choose how much of the cart must satisfy it:
| Option | Meaning |
| - | - |
| **All products meet the condition** | Every line item must match. |
| **At least one product meets the condition** | Any single line item matching is enough. |
| **Cart has exactly specified quantity** | Matching items total exactly N units. |
| **Cart has more than specified quantity** | Matching items total more than N units. |
| **Cart has not more than specified quantity** | Matching items total no more than N units. |
| **Cart has more than specified total price** | Matching items exceed N in value. |
| **Cart has not more than total price** | Matching items do not exceed N in value. |
This choice is what makes product conditions precise. "Hide express if **any** item is fragile" and "hide express if **all** items are fragile" are very different rules — pick deliberately.
## Includes in list
The `Includes in list` and `Not includes in list` operators test membership against a list of values, rather than a single comparison. Use them when you have a set of SKUs or titles to match and don't want a condition per value.
## Number Of Product Metafield Values
Counts how many **distinct values** of a given product metafield appear across the cart.
Products with no value for the metafield are not counted.
This is the tool for mixed-cart problems — for example, hiding a consolidated shipping option when the cart draws from more than one warehouse or supplier.
## Examples
**No express delivery for fragile items**
```text theme={null}
Type: Hide shipping rates
Condition 1: Product Tag <> Equals <> fragile
At least one product meets the condition.
Hide the following shipping methods: Express
```
**Freight only for a furniture collection**
```text theme={null}
Type: Only show specified shipping rates and hide rest
Condition 1: Product Collection <> Equals <> 123456789
At least one product meets the condition.
Show the following shipping methods: Freight Delivery
```
**Subscriptions ship one way only**
```text theme={null}
Type: Only show specified shipping rates and hide rest
Condition 1: Is subscription product <> True
Show the following shipping methods: Subscription Delivery
Apply rule to: Only the first shipment
```
## Related
Which attributes can be combined in one rule.
Match on subtotal, quantity, and weight.
What happens once conditions match.
A worked example for oversized goods.
# Quickstart
Source: https://shipmagic-docs.speedysquirrelhq.com/quickstart
Get up and running quickly by creating your first rule in 5 minutes
This guide covers the basic setup steps to help you get started with ShipMagic. For detailed instructions on each feature, refer to the [Shipping Rates](/shipping-rates/basic-shipping-rate) and [Shipping Customization](/shipping-customizations/basic-shipping-customization) sections.
Not sure whether to use Shipping Rates or Shipping Customizations? Follow [this](/core-concepts/rates-vs-customizations) guide to choose the right option for your needs.
## Shipping Rates
In this guide, we’ll set up a basic shipping configuration with two types of products: regular and bulky.
| Products | Shipping Rate |
| - | - |
| Products with tag "bulky" | 10% of the product cost |
| Products without tag "bulky" | - Flat \$5 below \$100 worth of regular products
- Free shipping above \$100 worth of regular products
|
Install and open ShipMagic in your Shopify admin.
From the left navigation panel, open the **Shipping Rates** page.\
We’ll create two rules here:
* One for **bulky products**
* One for **regular products**
Click on "Add Rule" and create a rule with following condition:
```text theme={null}
Name: Bulky Products
Priority: 1
Rule must match: All conditions
Condition 1: Product Tag <> Equals <> bulky
```
In your desired shipping zone, click on "Add rate" and add a rate with following details:
```text theme={null}
Name: Standard Shipping
Calculaion Parameter: Percentage of total price
Percentage: 10
```
Click "Done" and then "Save" the rule.
Click on "Add Rule" to create another. Add following condition:
```text theme={null}
Name: Regular Products
Priority: 1
Rule must match: All conditions
Condition 1: Product Tag <> Not Equals <> bulky
```
In your desired shipping zone, click on "Add rate" and add the first rate below \$100:
```text theme={null}
Name: Standard Shipping
Calculaion Parameter: Total price of items
Type: Range
Range Start: 0
Range End: 100
Price: 5
```
Click on "Add Rate" again to add the second rate above \$100.
```text theme={null}
Name: Standard Shipping
Calculaion Parameter: Total price of items
Type: Range
Range Start: 100.01
Range End: LEAVE EMPTY
Price: 0
```
Click "Done" and then "Save" the rule.
[Some product data](/core-concepts/syncing-products) isn’t available at checkout during runtime, so syncing product data during rule set up is required. Product tag is one such parameter.
* Go to **Settings** page in the app
* Click **“Sync Now”** under **Products**
Sync will run in the background, you can leave the page.
1. Go to your Shopify storefront
2. Add a product tagged **“bulky”** to the cart
3. Proceed to checkout
4. Enter the complete address. First name should be **“shipmagic”** if app is in [test mode](https://shipmagic-docs.speedysquirrelhq.com/core-concepts/testing-the-app).
You should now see the shipping rates calculated by ShipMagic based on the rules we configured above.
## Shipping Customizations
In this guide, we’ll set up a basic shipping customization to show free shipping to customers who have a tag "prime" and paid shipping options to others.
Install and open ShipMagic in your Shopify admin.
Navigate to Store settings → Shipping and Delivery → General. Add the following rates in the desired shipping zone.
Now, let's create customizations in the app to show "Free Prime Shipping" to only "prime" customers and Standard Shipping options to regular customers.
From the left navigation panel, open the **Shipping Customizations** page.\
We’ll create two customizations here:
* One for **"prime" customers**
* One for **regular customers**
Click on "Create Customization" and add rule with following details:
```text theme={null}
Type: Only show specified shipping rates and hide rest
Name: Prime customers rule
Condition 1: Customer Tag <> Equals <> prime
Show the following shipping methods: Free Prime Shipping
```
Click "Done" and then "Save" the rule.
Click on "Create Customization" and add another rule with following details:
```text theme={null}
Type: Hide shipping rates
Name: Regular customers rule
Condition 1: Customer Tag <> Not Equals <> prime
Hide the following shipping methods: Free Prime Shipping
```
1. Go to your Shopify storefront
2. Login using a customer with tag "prime"
3. Add products to cart and proceed to checkout
4. Enter the complete address. First name should be **“shipmagic”** if app is in [test mode](https://shipmagic-docs.speedysquirrelhq.com/core-concepts/testing-the-app).
You should now see only the "Free Prime Shipping" option based on the rules we configured above.
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup)\*\*\*\* if you’d like us to help.
# Ranged Rates
Source: https://shipmagic-docs.speedysquirrelhq.com/ranged-rates
Charge a different price for each band of weight, value, or quantity
A **Range** rate charges one price for a band of values. Stack several of them and you get a price table — the classic "0–5kg costs \$8, 5–10kg costs \$12" structure.
## Setting one up
Set **Calculation parameter** to whatever the bands should be measured against — **Total weight of items**, **Total price of items**, or **Number of items**.
Three fields appear: Range Start, Range End, and Price.
**Range Start** is required. **Range End** can be left empty, which means "and above".
Click **Add rate** again and create the next band, using the **same rate name** each time.
Using the same **rate name** across bands is what makes this work. The customer sees one shipping option; ShipMagic returns only the band that matches their cart. Different names would show them several options at once.
## Covering the whole scale
Bands must not overlap, and should not leave gaps. If a cart falls into no band, that rate produces nothing.
A complete weight table looks like this:
| Range Start | Range End | Price |
| - | - | - |
| 0 | 5 | 8.00 |
| 5.01 | 10 | 12.00 |
| 10.01 | 20 | 18.00 |
| 20.01 | *(empty)* | 25.00 |
Mind the boundary. If one band ends at `5` and the next starts at `5`, a cart weighing exactly 5 is ambiguous. Start the next band just above — `5.01`
The final band with an empty **Range End** is important: without it, a cart heavier than your largest band gets no rate at all.
## Range + Incremental
When a band should have a base price *plus* a per-unit charge inside it, set **Rate Type** to **Range + Incremental**. You give the band (Range Start / End), then a base price, an incremental price, and a "per each" step.
Use it for tables like "5–10kg is \$12 plus \$1.50 for every kg over 5".
## Range + Range
**Range + Range** matches on **two parameters at once**. You set a band on the rate's main calculation parameter, then choose a second parameter and give it its own band and price.
Use it for tables that vary along two axes — for example weight *and* order value, where heavy-but-cheap and heavy-but-expensive orders should price differently.
Range + Range is the most intricate rate type in the app. If you find yourself needing three or more axes, that is usually a sign to split the logic across several rules with [priorities](/shipping-rates/basic-shipping-rate) instead.
## Examples
**Free shipping above a threshold**
```text theme={null}
Rate 1 — Standard Shipping
Calculation parameter: Total price of items
Rate Type: Range | Start: 0 | End: 100 | Price: 5
Rate 2 — Standard Shipping
Calculation parameter: Total price of items
Rate Type: Range | Start: 100.01 | End: (empty) | Price: 0
```
**Price by number of items**
```text theme={null}
Rate Type: Range | Start: 1 | End: 3 | Price: 4.95
Rate Type: Range | Start: 4 | End: 10 | Price: 7.95
Rate Type: Range | Start: 11 | End: (empty) | Price: 12.95
```
## Related
A base price plus a charge per unit.
Scale with order value instead of bands.
Bound the result of any calculation.
The full rate dialog reference.
# Rate Blending
Source: https://shipmagic-docs.speedysquirrelhq.com/rate-blending
Decide what happens when several rules each produce a rate
When more than one rule matches a cart, you can end up with several rates. **Blending** decides what the customer actually sees — one combined price, the cheapest, or the highest.
Blending is configured on the app's **Settings** page and applies store-wide.
## Basic blending
**Basic** blending controls how rates that share the **same name** combine.
| Option | Result |
| - | - |
| **Add rates** | The rates are summed into one. |
| **Show the highest rate only** | Only the highest is shown. |
| **Show the lowest rate only** | Only the cheapest is shown. |
This only applies to rates with **matching names**. Two rates called "Standard Shipping" blend; a "Standard Shipping" and an "Express Shipping" do not — they appear as separate options.
### Add rates
The right choice when different rules cover different parts of the cart and each contributes its share of the cost. A rule charging \$5 for regular items and another charging \$15 for a bulky item produce a single \$20 "Standard Shipping".
### Highest / Lowest
Use these when your rules represent **alternative** ways of pricing the same shipment rather than parts of one cost. Lowest is customer-friendly; highest protects margin when one rule reflects a genuine cost you can't absorb.
## Maximum and minimum limits
When basic blending is set to **Add rates**, an extra control appears: **Set limits while adding rates**.
Toggle it on and you can cap or floor named shipping methods. For each entry give the **method name**, and a **Maximum**, a **Minimum**, or both.
These limits are only available with **Add rates**. Switch basic blending to highest or lowest and the limits no longer apply — the app won't save them.
See [Setting Maximum and Minimum Shipping Rates](/setting-maximum-and-minimum-shipping-rates) for the detail.
## Advanced blending (by tag)
**Advanced** blending handles rates with **different names**, grouping them by tag.
Every rate you create has a **Tags** field, taking comma-separated values. Advanced blending rules act on those tags.
In the rate dialog, add one or more tags — for example `ground`.
On the Settings page, under **Advanced**, add a blending rule.
| Field | Meaning |
| - | - |
| **Blend type** | Add, Lowest, or Highest |
| **Tags** | Which tagged rates this rule collects, comma-separated |
| **Maximum** / **Minimum** | Optional bounds on the result |
| **Rate name** | What the customer sees for the blended result |
| **Description** | Optional text beneath the name |
Because the source rates have different names, you must supply a **Rate name** for the blended result — the app has no name to inherit.
## Which to use
**Basic** is the store-wide default and handles most cases. Give rates that should combine the same name and let basic blending do the work.
**Advanced** is for when rates must keep distinct names for other reasons, but should still be presented as one option during conflicts.
If your rates already share a name, you don't need advanced blending. Reach for it only when renaming isn't an option.
## Testing blending
Blending only shows itself when several rules match at once, so test with carts that deliberately trigger more than one.
1. Build a cart matching a single rule and note the rate
2. Build one matching two rules and check the result is what blending should produce
3. If using Add rates with limits, test a cart large enough to hit the cap
## Related
Bounding the result of Add rates.
Stop lower-priority rules contributing at all.
When checkout shows more options than expected.
Rule priority and how rates are produced.
# Rate Descriptions
Source: https://shipmagic-docs.speedysquirrelhq.com/rate-descriptions
Add supporting text and dynamic delivery dates beneath a shipping rate
Every rate has an optional **Description**, shown beneath the rate name at checkout. It's where you set delivery expectations — and it supports dynamic dates, so the text stays accurate without anyone editing it.
## Adding a description
The **Description** field sits directly under **Rate name** in the rate dialog. Anything you type appears at checkout beneath the method name.
```text theme={null}
Rate name: Standard Shipping
Description: Delivery in 3-5 business days
```
## Dynamic dates
Rather than a vague duration, you can show real dates. There are three placeholder forms, differing in **which days they count**:
| Placeholder | Counts | Skips |
| - | - | - |
| `{{today+N}}` | Calendar days | Nothing |
| `{{today+Nwd}}` | Weekdays | Saturday and Sunday |
| `{{today+Nsd}}` | Six-day week | Sunday only |
`N` is any number, so `{{today+1}}`, `{{today+7wd}}`, and `{{today+14sd}}` all work. `{{today}}` on its own renders today's date.
### Choosing the right form
Match the placeholder to the days you actually dispatch:
* **`wd`** — you work Monday to Friday. The right default for most stores.
* **`sd`** — you also dispatch on Saturdays.
* **plain `+N`** — genuinely every day including Sundays, or a short offset where the distinction doesn't matter.
### How the date is rendered
All three render in the same fixed format — abbreviated weekday, abbreviated month, and the day with an ordinal suffix:
```text theme={null}
Tue, Apr 3rd
```
Dates are calculated in your **store's timezone**.
### Examples
```text theme={null}
Description: Order today, delivered by {{today+5wd}}
```
```text theme={null}
Description: Arrives between {{today+2wd}} and {{today+4wd}}
```
A concrete date outperforms a duration. "Arrives by Tue, Apr 3rd" is something a customer can check against their own calendar; "3–5 business days" makes them do the arithmetic — and they will assume the worst end of the range.
## Building in your handling time
The offset counts from **today**, not from dispatch. If you pick and pack the next working day, add that day yourself.
**None of the three forms know about public holidays.** Over a long weekend or a seasonal shutdown, every quoted date runs optimistic — `wd` will happily count a bank holiday Monday as a working day.
## Descriptions vs. carrier estimates
Carriers like FedEx and Shiprocket return their own delivery estimates, which ShipMagic passes through to checkout.
Those estimates measure **transit time from collection**, not from when the customer ordered — so they're optimistic whenever you don't dispatch same day.
If carrier estimates consistently promise more than you deliver, switch on **Hide estimated delivery dates** on the carrier rate and write your own description with a realistic offset instead.
## Translating descriptions
Descriptions can be translated per language along with the rate name. See [Adding Translations for Shipping Rates](/adding-translations-for-shipping-rates).
Dynamic date placeholders work inside translated descriptions too — the date format follows the customer's locale.
## What to write
**Say when it arrives.** The single most useful thing a description can do.
**Name the carrier if it helps.** "Delivered by Royal Mail" reassures where the brand is trusted.
**Explain an unusual rate.** If a surcharge applies to bulky items, saying so pre-empts a support ticket.
**Keep it short.** Checkout is not the place for a paragraph — one line is the target.
## Related
Localise rate names and descriptions.
Change the method name itself via a customization.
Suppressing carrier delivery estimates.
The full rate dialog reference.
# Rates from Metafields
Source: https://shipmagic-docs.speedysquirrelhq.com/rates-from-metafields
Store a shipping price on each product or variant and have ShipMagic read it
Metafields let you drive shipping from data stored on your products rather than from rules alone. There are two distinct ways to do it, and choosing the right one matters — they behave completely differently.
## The two approaches
| Approach | Parameters | What the metafield value is |
| - | - | - |
| **Direct** | Product Metafield, Variant Metafield | **The shipping price itself** |
| **Summed** | Sum Of Product Metafield, Sum Of Variant Metafield | **An input** measured against a range or incremental table |
| | | |
## Direct: the metafield holds the price
Use **Product Metafield** or **Variant Metafield** when each product carries its own shipping cost and you want that number charged as-is.
In **Settings → Custom data**, add a numeric metafield on Product or Variant and fill it in across your catalogue.
Set **Calculation parameter** to **Product Metafield** or **Variant Metafield**.
* **Product Metafield** — enter the **Key**.
* **Variant Metafield** — enter it as **`Namespace.Key`**.
Tick **Increase rate per item** if the stored value is a per-unit price that should scale with how many the customer bought. Leave it off for a flat charge per product regardless of quantity.
Used whenever a product or variant has no value in the metafield.
### Always set a Default rate
If a product has no value in the metafield and no default rate is set, that product contributes nothing. The customer may see no shipping option at all.
Every new product starts with an empty metafield, so the default rate is what protects you between a product going live and someone filling in its shipping cost.
## Summed: the metafield feeds a rate table
Use **Sum Of Product Metafield** or **Sum Of Variant Metafield** when the metafield holds a *quantity* rather than a price — a shipping score, a volume figure, a handling weight — and you want to price on tiers of that total.
ShipMagic adds the metafield value across every item in the cart, then evaluates that total against a rate table exactly as it would for cart weight or item count.
Set **Calculation parameter** to **Sum Of Product Metafield** or **Sum Of Variant Metafield**.
**Key** for product metafields, **`Namespace.Key`** for variant metafields.
**Range**, **Incremental**, **Range + Incremental**, or **Range + Range** — the same four types available to weight and quantity.
Fill in the bands or increments. See [Ranged Rates](/ranged-rates) and [Incremental / Per Item Rates](/incremental-per-item-rates).
### Cover the whole scale
Because the summed value drives a table, the same rules apply as any [ranged rate](/ranged-rates): bands must not overlap, and the final band should have an empty **Range End** so an unusually large cart still gets a price.
Products with no metafield value contribute zero. A cart made entirely of unconfigured products sums to `0` — make sure your first band starts at `0` and produces a sensible price, or such a cart may get no rate.
## Keeping the data current
Metafield values are read live at checkout, so edits in Shopify take effect immediately.
This is different from [product syncing](/core-concepts/syncing-products), which applies to tags, type, title, barcode, and compare-at price used in **conditions**. Metafield rate values need no sync.
## Examples
**Each variant carries its own shipping cost** (direct)
```text theme={null}
Rate name: Standard Shipping
Calculation parameter: Variant Metafield
Namespace and key: shipping.cost
Increase rate per item: on
Default rate: 9.95
```
**Products carry a volume, priced in bands** (summed)
```text theme={null}
Rate name: Standard Shipping
Calculation parameter: Sum Of Product Metafield
Key: shipping_volume
Rate Type: Range
Range Start: 0 | Range End: 10 | Price: 5.00
Range Start: 11 | Range End: 25 | Price: 9.00
Range Start: 26 | Range End: (empty) | Price: 15.00
```
## Related
Building the bands a Sum Of rate needs.
The other rate type available to Sum Of.
Using metafields in conditions rather than as rates.
Bounding the result.
# Scheduling Rule Changes
Source: https://shipmagic-docs.speedysquirrelhq.com/scheduling-rule-changes
Activate or deactivate a rule automatically at a future date and time
Rather than remembering to switch a rule on at midnight, you can schedule it. Both **shipping rules** and **shipping customizations** support scheduled activation and deactivation.
This is how you run holiday pricing, a promotional free-shipping window, or a temporary surcharge without being at your desk when it starts and ends.
## Adding a schedule
Schedules attach to a saved rule. On a brand-new rule you'll see *"Save this rule first to add schedules"* until you do.
It sits in the sidebar of the rule or customization editor.
Choose an **Action** — **Activate** or **Deactivate** — then set the **Date** and **Time** (hour, minute, AM/PM).
The schedule appears in the list with a badge showing whether it will activate or deactivate.
## Timezone
Schedules run in your **store's timezone**, which is displayed at the bottom of the schedule dialog.
Minutes are available in half-hour steps, so times land on the hour or half hour.
## Limits
Each rule or customisations ccan hold up to 3 pending schedules. If you reach the limit, cancel an exising schedule before adding another.
The limit counts *pending* schedules, so ones that have already run free up space.
## Verifying a schedule
A schedule only proves itself when it fires, which is usually the worst moment to discover a problem.
1. Test the rule now, by activating it manually and checking rates at checkout
2. Deactivate it again
3. Add the schedule
## Related
Rule status, priority, and exclusivity.
Build a seasonal variant from an existing rule.
Make a promotional rule override the rest.
Verify before the schedule fires.
# Setting Maximum and Minimum Shipping Rates
Source: https://shipmagic-docs.speedysquirrelhq.com/setting-maximum-and-minimum-shipping-rates
Put a ceiling and a floor on calculated shipping rates
Calculated rates — percentages, incremental rates, summed metafields, blended totals — have no natural ceiling. Maximum and minimum limits bound the result so a large or unusual cart can't produce an absurd shipping price.
## Where to find it
Limits live on the app's **Settings** page, under **Blending → Basic**.
The control only appears when basic blending is set to **Add rates**. With **Show the highest rate only** or **Show the lowest rate only** selected, the option is hidden and limits do not apply.
If you can't find the setting, this is why.
## Setting limits
On the Settings page, under **Blending → Basic**.
A table appears.
Give the **method name** and a **Maximum**, a **Minimum**, or both. Add more entries with **Add**.
Each entry needs a method name and at least one of maximum or minimum — an incomplete row prevents the settings saving.
## Why a maximum matters
A percentage rate on a large order, or an incremental rate on a bulk purchase, can produce a shipping charge far above what the shipment actually costs you.
## Why a minimum matters
A minimum protects against the opposite failure — a rate calculating to near zero because of a small order, a discount, or a product with missing data.
Common reasons a rate comes out too low:
* A percentage rate on a very small cart
* A metafield rate where products have no value set and the default rate is low
* Add-rates blending where only one small contributing rule matched
## Method names must match
Limits are applied per shipping method name, matched against the rate name shown at checkout.
If the method name in your limit doesn't match the rate name exactly, the limit silently does nothing. Copy the name from the rate rather than typing it from memory, and re-check after any rate rename.
## Testing
Limits only reveal themselves at the extremes, which are exactly the carts you're least likely to try by accident.
1. Build a cart large enough to exceed your maximum — confirm the capped figure
2. Build a minimal cart — confirm the floor engages
3. Confirm the method name matches by checking a normal cart still prices as before
## Related
Why limits are tied to Add rates.
The rate type that most needs a cap.
The other unbounded rate type.
Where a floor protects against missing data.
# Ship Station
Source: https://shipmagic-docs.speedysquirrelhq.com/ship-station
Show rates from every carrier connected to your ShipStation account
ShipStation is an aggregator rather than a carrier. Connecting it exposes **all the carriers already configured in your ShipStation account** through a single integration — useful when you ship with several carriers and would rather manage them in one place.
## Getting credentials
In ShipStation, go to **Account Settings → API Settings** and generate an **API Key** and **API Secret**.
## Setting up the rate
In your rule, click **Add rate** on the zone you want.
Choose **ShipStation** under the live carrier options.
Both are required before you can fetch carriers.
Use the fetch action to pull the list of carriers connected to your ShipStation account. ShipMagic queries ShipStation directly, so the list reflects your live configuration.
Tick the carriers whose rates should appear at checkout. Leave the rest unticked.
Set **Packaging box distribution** and define your boxes. See [the packing algorithm](/shipping-rates/types-of-rates/carrier-rates/3-d-boxing-algorithm).
If the carrier list comes back empty, the credentials are usually wrong or the API key lacks permission. Confirm the key works in ShipStation before troubleshooting further.
## Choosing carriers deliberately
Because ShipStation can return rates from many carriers at once, an unfiltered setup can put a long list of options in front of the customer — several of which may be near-identical in price.
Too many shipping options measurably hurts conversion. Select the two or three carriers you actually want to offer rather than everything your account supports.
If you do want breadth, consider a [customization](/ai-tools/actions-hide-rename-sort) to hide the noisier options, or use rate blending to show only the cheapest.
## ShipStation vs. a direct integration
If you ship with one carrier that ShipMagic supports directly — USPS, FedEx, Australia Post, Shiprocket, Stallion Express, Direct Freight Express — the direct integration is usually the better choice. Fewer moving parts, and one less service that can be slow or down.
ShipStation earns its place when you use several carriers, or a carrier ShipMagic doesn't integrate with directly.
## Testing
1. Add products with accurate weights and dimensions
2. Check out to a real address, using a fresh one each time
3. Confirm the carriers appearing are the ones you selected, and no others
## Related
How items are distributed into parcels before quoting.
Show only the cheapest of several returned rates.
Hide or rename the options that come back.
When checkout shows more options than you expected.
# Shipping Customizations Not Working
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-customizations-not-working
Work through the causes of a hide, show, rename, or reorder rule not taking effect
Customizations don't need CCS and don't need product syncing, which rules out two common classes of problem. What's left is usually conditions, method names, or mode.
## 1. Is the customization active?
**Check:** open the customization and confirm **Status** is *Active*.
## 2. Are you in test mode without the test name?
In test mode, customizations only apply when the checkout's **first name is `shipmagic`**.
**Check:** **Settings → App Modes** — the Shipping Customizations toggle.
**Fix:** use `shipmagic` as the first name when testing, or [go live](/core-concepts/going-live). Note the toggles are independent — rates can be live while customizations are still in test mode.
## 3. Does the method name match?
This is the most common cause of a rule that looks right but does nothing.
Method names match **partially**, but they must match *something*. `Epxress` matches nothing; `Express` matches "Express Shipping".
**Check:** compare the name in your rule against the name shown at checkout, character for character.
**Fix:** copy the name from checkout rather than typing it from memory.
## 4. Do the conditions match?
**Check each one:**
* Is **All conditions** set where you meant **Any condition**?
* For **customer** conditions — is the customer logged in? A guest has no tags, zero spend, and zero orders.
* For **Product Collection** — did you enter the collection **ID** rather than its name?
* For product conditions — is the cart-evaluation mode right? *All products meet the condition* and *At least one product meets the condition* behave very differently.
## 5. Are two customizations fighting?
All customization rules apply together. One rule hiding a method and another showing it can produce results that look random until you trace the order.
**Check:** list every customization that could match your test cart and reason through them together.
## 6. Is the method there to act on?
A hide rule can only hide something that exists. If the underlying rate isn't being generated in the first place, the customization has nothing to do.
**Check:** temporarily deactivate the customization and confirm the method appears at all. If it doesn't, the problem is on the rates side — see [Shipping Rates Not Showing](/shipping-rates-not-showing-on-checkout-page).
## Still stuck?
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup), or reach out on [live chat](https://tawk.to/chat/649858bd94cf5d49dc5fbec1/1h3phl9e5).
## Related
How each rule type behaves.
Which attributes can share a rule.
Independent toggles for rates and customizations.
When the underlying rate is the problem.
# Create a Basic Shipping Customization
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-customizations/basic-shipping-customization
Hide, show, rename, or reorder the shipping methods your customers see at checkout
A **shipping customization** changes the delivery options a customer sees at checkout, based on conditions you set. It doesn't calculate prices — it acts on the rates you already have.
Shipping Customizations change **what customers see**. To calculate a price Shopify can't work out natively, use [Shipping Rates](/shipping-rates/basic-shipping-rate) instead. Not sure which you need? See [Rates vs Customizations](/core-concepts/rates-vs-customizations).
## Before you start
Customizations act on rates that already exist, so set those up first in **Shopify Admin → Settings → Shipping and Delivery**. They can be manual Shopify rates, ShipMagic rates, or both.
Two things that make customizations easier than rates:
* They work on **all Shopify plans** — CCS is not required.
* They **don't need product syncing**. Shopify sends product data to customizations at checkout directly.
## Create the customization
From the left navigation panel in the app, open **Shipping Customizations**.
The type decides what the rule does when it matches:
| Type | Effect |
| - | - |
| **Hide shipping rates** | Hides the methods you list. |
| **Show shipping rates** | Shows the methods you list. |
| **Only show specified shipping rates and hide rest** | Shows the methods you list and hides everything else. |
| **Reorder shipping rates** | Changes the order methods appear in. |
| **Rename shipping rates** | Changes the label the customer sees. |
See [Actions (Hide / Rename / Sort)](/ai-tools/actions-hide-rename-sort) for the details of each.
For example `Hide free shipping for heavy items`. This name is internal and is never shown to customers.
Choose whether the rule must match **All conditions** or **Any condition**, then add conditions. Customizations can match on cart, product, customer, address, and shipping-method attributes — including some that aren't available to shipping rates, such as **Product Collection**, **Shopify Market**, **Customer Company**, **Is subscription product**, and **Address is a PO Box**.
See [Cart Conditions](/cart-conditions), [Product Attributes](/product-attributes), [Customer Attributes](/customer-attributes-1), and [Customer Location and Address](/customer-location-and-address-1).
The attributes are split across **three parameter sets**, and a rule may only use attributes from one of them. If the attribute you need isn't in the dropdown, switch sets using the link at the top-right of the Conditions card. See [Parameter Sets](/ai-tools/different-parameter-sets-for-conditions).
Under **Action**, enter the name of each method the rule should affect. Click **Add another method** for more than one.
**Partial names match.** Entering `Express` matches both "Express Shipping" and "Express Delivery". Use this to catch several methods at once — but keep it specific enough that it doesn't catch methods you meant to leave alone.
For **Rename**, you also give the new name. For **Reorder**, you also give the new position.
* **All shipments** (default) — the rule applies to every shipment in the order.
* **Only the first shipment** — for subscription sellers who want the rule to affect only the first shipment's shipping method.
Leave **Status** as *Active*, then **Save**.
## A worked example
Show a "Free Prime Shipping" method only to customers tagged `prime`. This takes two customizations — one to show it to members, one to hide it from everyone else.
In **Settings → Shipping and Delivery**, add a rate named `Free Prime Shipping` to your zone.
```text theme={null}
Type: Only show specified shipping rates and hide rest
Name: Prime customers rule
Condition 1: Customer Tag <> Equals <> prime
Show the following shipping methods: Free Prime Shipping
```
```text theme={null}
Type: Hide shipping rates
Name: Regular customers rule
Condition 1: Customer Tag <> Not equals <> prime
Hide the following shipping methods: Free Prime Shipping
```
## Test your customization
1. Open your storefront and log in as a customer who matches your conditions
2. Add matching products to the cart and proceed to checkout
3. Enter a complete address
4. In test mode, enter `shipmagic` as the **first name**
Full details in [Testing the App](/core-concepts/testing-the-app). When it looks right, follow [Going Live](/core-concepts/going-live).
## Next steps
How hide, show, rename, and reorder each behave.
The three condition palettes, and which attributes can be combined.
A common use case, start to finish.
The usual causes and how to fix them.
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup) if you'd like us to help.
# Create a Shipping Discount
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-discounts/create-a-shipping-discount
Offer free or cheaper shipping, automatically or with a discount code
A **shipping discount** lowers the price of shipping rates at checkout when the order matches your conditions. ShipMagic creates it as a regular Shopify discount, so it appears on your Shopify **Discounts** page and on the customer's checkout and order like any other discount.
Shipping discounts change **what customers pay** for rates that already exist. To calculate a new rate, use [Shipping Rates](/shipping-rates/basic-shipping-rate). To hide, rename, or reorder rates, use [Shipping Customizations](/shipping-customizations/basic-shipping-customization).
## What you can do
* Give **free shipping**, a **percentage off**, a **fixed amount off**, or **cap shipping** at a set price
* Apply it **automatically** or only when the customer enters a **discount code**
* Limit it with conditions on the cart, products, customer tags, and shipping address — see [Discount Conditions](/shipping-discounts/discount-conditions)
* Target **all rates**, only **rates with a certain name**, or only the **cheapest rate**
* Schedule it with start and end dates, and limit how often a code can be used
## Before you start
A discount reduces the price of rates that already exist, so set those up first. They can be manual Shopify rates, ShipMagic rates, or live carrier rates.
Like customizations, shipping discounts work on **all Shopify plans** and **don't need product syncing**. Shopify sends product data to the discount at checkout directly.
ShipMagic also needs the **Manage discounts** permission, because it creates the discounts in Shopify. The first time you open **Shipping Discounts**, click **Grant access** on the banner and approve the request.
## Create the discount
From the left navigation panel in the app, open **Shipping Discounts**.
| Method | Effect |
| - | - |
| **Automatic discount** | Applies at checkout whenever the conditions match. |
| **Discount code** | Applies only when the customer enters the code at checkout. Type your own code or click **Generate** for a random one. |
Shopify doesn't allow changing the method of an existing discount. To switch, create a new discount.
For example `Free shipping over $75`. Unlike a customization's name, this title is **shown to customers** at checkout next to the discount. It also appears in your Shopify admin.
| Value | Effect on each targeted rate |
| - | - |
| **Percentage off shipping** | Takes a percentage off, up to 100%. |
| **Fixed amount off shipping** | Takes a fixed amount off. A rate never goes below 0, so 10 off a 6 rate makes it free. |
| **Free shipping** | Makes the rate free. |
| **Set shipping price to** | Caps the rate at the price you enter. Rates above it are reduced to it. Cheaper rates stay as they are. |
Amounts are in your store currency. When a customer checks out in another currency, the amount is converted automatically.
With no conditions, the discount applies to every order. Click **Add condition** to limit it, then choose whether the order must match **All conditions** or **Any condition**.
You can match on cart subtotal, quantity, and weight; product tag, collection, vendor, title, and price; customer tag; and country or province. See [Discount Conditions](/shipping-discounts/discount-conditions) for every attribute and operator.
Under **Applies to**:
| Option | Discounts |
| - | - |
| **All shipping rates** | Every rate shown at checkout. |
| **Only rates whose name contains** | Rates whose name contains any of the names you list. Click **Add rate name** for more than one. |
| **Only the cheapest shipping rate** | The single cheapest rate. |
**Partial names match, and matching is case-sensitive.** `Express` matches "Express Shipping" and "UPS Express", but `express` matches neither. Copy the name from checkout rather than typing it from memory.
Rates that are already free, such as local pickup, are never discounted. They're also skipped when finding the cheapest rate, so **Only the cheapest shipping rate** always picks the cheapest rate the customer would pay for.
The cards on the right of the form:
* **Status** — *Enabled* or *Disabled*. Leave it *Enabled* for the discount to apply.
* **Usage limits** (discount codes only) — limit the total number of times the code can be used, and/or limit it to one use per customer.
* **Combinations** — whether this discount can be combined with **Product discounts** and **Order discounts**.
* **Active dates** — when the discount starts, and optionally when it ends. Dates are in your store's timezone, shown under the fields.
See [Managing Shipping Discounts](/shipping-discounts/managing-shipping-discounts) for how each of these behaves.
Click **Save**. ShipMagic creates the discount in Shopify, and it takes effect at checkout straight away.
## Worked examples
**Free standard shipping over 75**
```text theme={null}
Method: Automatic discount
Title: Free shipping over $75
Value: Free shipping
Condition 1: Cart Subtotal <> Greater than or equal <> 75
Applies to: Only rates whose name contains: Standard
```
**Half-price express shipping for VIP customers**
```text theme={null}
Method: Automatic discount
Title: VIP express shipping
Value: Percentage off shipping <> 50
Condition 1: Customer Tag <> Equals <> vip
Applies to: Only rates whose name contains: Express
```
**A code that caps shipping at 5 on furniture**
```text theme={null}
Method: Discount code <> SHIP5
Title: $5 shipping on furniture
Value: Set shipping price to <> 5
Condition 1: Product Collection <> Equals <> 123456789
At least one product meets the condition.
Applies to: All shipping rates
Usage limits: Limit to one use per customer
```
## Test your discount
Shipping discounts have their own test mode, separate from rates and customizations.
1. Leave the **Shipping Discounts** toggle off in **Settings → App Modes**
2. Open your storefront and add products that match your conditions
3. At checkout, enter a complete address with `shipmagic` as the **first name**
4. For a discount code, enter the code in the discount field
5. Check that the targeted rates show the discounted price
When it looks right, turn on the **Shipping Discounts** toggle to apply discounts for every customer. Live mode needs the Starter plan or above — see [Going Live](/core-concepts/going-live).
## Next steps
Every attribute and operator, and how the cart is evaluated.
Statuses, disabling, deleting, and the Shopify Discounts page.
The usual causes and how to fix them.
Turning the app modes on.
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup) if you'd like us to help.
# Discount Conditions
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-discounts/discount-conditions
Limit shipping discounts by cart, product, customer, and shipping address
Conditions decide which orders get a shipping discount. A discount with **no conditions** applies to every order.
Once you add a condition, choose whether the order must match **All conditions** or **Any condition**.
Shipping discounts have a single list of attributes. There are no [parameter sets](/ai-tools/different-parameter-sets-for-conditions) like in customizations, so any of the attributes below can be combined in one discount.
## Available attributes
| Group | Attribute | Operators |
| - | - | - |
| Cart | **Cart Subtotal** | Numeric comparisons |
| Cart | **Cart Quantity** | Numeric comparisons |
| Cart | **Cart Weight** | Numeric comparisons |
| Product | **Product Tag** | Equals, Not equals |
| Product | **Product Collection** | Equals, Not equals |
| Product | **Product Vendor** | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| Product | **Product Title** | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| Product | **Product Price** | Numeric comparisons, Is empty, Is not empty |
| Customer | **Customer Tag** | Equals, Not equals |
| Shipping address | **Country Code** | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| Shipping address | **Province / State Code** | Equals, Not equals, Contains, Does not contains, Includes in list, Not includes in list |
| Other | **Always** | True |
Numeric comparisons are Equals, Not equals, Greater than, Less than, Greater than or equal, and Less than or equal.
**Product Tag**, **Customer Tag**, and **Product Collection** can each be used in **only one condition** per discount. To match several tags or collections, list them in that one condition, separated by commas.
## Cart conditions
* **Cart Subtotal** — the order value, in your store currency. When a customer checks out in another currency, it's converted before the comparison, so `75` always means 75 in your store currency.
* **Cart Quantity** — the total number of items in the cart.
* **Cart Weight** — the total weight, in your store's weight unit.
Product weights aren't converted between units. If some products have their weight entered in a different unit from your store's, Cart Weight will be off for carts that contain them.
## Product conditions
* **Product Tag** — enter one or more tags, separated by commas. *Equals* matches a product that has **any** of the tags. *Not equals* matches a product that has **none** of them.
* **Product Collection** — enter collection **IDs**, not names, separated by commas. See [How to Find the ID of a Product Collection](/finding-collection-and-rule-ids).
* **Product Vendor** and **Product Title** — text matches are case-sensitive. For *Includes in list*, separate values with semicolons: `Acme;Globex`.
* **Product Price** — the price of one unit of the product, in your store currency.
### How the cart is evaluated
For each product condition you also choose how much of the cart must satisfy it:
| Option | Meaning |
| - | - |
| **At least one product meets the condition** | Any single product matching is enough. |
| **All products meet the condition** | Every product in the cart must match. |
| **Cart has exactly specified quantity** | Matching products total exactly N units. |
| **Cart has more than specified quantity** | Matching products total more than N units. |
| **Cart has not more than specified quantity** | Matching products total N units or fewer. |
| **Cart has more than specified total price** | Matching products are worth N or more in total (price × quantity). |
| **Cart has not more than total price** | Matching products are worth less than N in total. |
The total-price options let you base a discount on how much the customer spends **on certain products**, not on the whole cart. For example: free shipping when the customer spends 100 or more on items tagged `bundle`.
## Customer conditions
**Customer Tag** — enter one or more tags, separated by commas. *Equals* matches a customer who has **any** of the tags.
Customer tags are only known when the customer is **logged in**. A guest has no tags, so *Equals* never matches a guest and *Not equals* always does.
## Shipping address conditions
* **Country Code** — two-letter codes such as `US`, `GB`, or `AU`.
* **Province / State Code** — Shopify's province codes, such as `CA` or `ON`.
For *Includes in list*, separate codes with semicolons: `CA;NV;OR`. See [Country and Province Codes](/country-and-province-codes) for the full list.
## Always
**Always** matches every order. You rarely need it, because a discount with no conditions already applies to every order.
## Examples
**Free shipping on West Coast orders over 50**
```text theme={null}
Rule must match: All conditions
Condition 1: Country Code <> Equals <> US
Condition 2: Province / State Code <> Includes in list <> CA;OR;WA
Condition 3: Cart Subtotal <> Greater than or equal <> 50
```
**10 off shipping when the cart has 3 or more items from a collection**
```text theme={null}
Condition 1: Product Collection <> Equals <> 123456789
Cart has more than specified quantity: 2
```
**Free shipping for wholesale or VIP customers, unless the order is very heavy**
```text theme={null}
Rule must match: All conditions
Condition 1: Customer Tag <> Equals <> wholesale, vip
Condition 2: Cart Weight <> Less than <> 30
```
## Related
The full setup, step by step.
Codes for the address conditions.
Look up the ID of a collection.
When conditions look right but nothing happens.
# Managing Shipping Discounts
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-discounts/managing-shipping-discounts
Statuses, editing, disabling, deleting, and how discounts work alongside Shopify
The **Shipping Discounts** page lists every discount ShipMagic manages. For each one it shows the title and code (or *Automatic*), its status, the discount value and which rates it applies to, and how many conditions it has.
## Statuses
The status comes from Shopify, so it reflects what's actually live at checkout.
| Status | Meaning |
| - | - |
| **Active** | The discount is applying at checkout. |
| **Scheduled** | The start date is in the future. |
| **Expired** | The end date has passed. |
| **Disabled** | You set **Status** to *Disabled*. |
| **Missing in Shopify** | ShipMagic has the discount but Shopify doesn't. Open it and click **Save** to create it again. |
| **Unknown** | ShipMagic doesn't have the **Manage discounts** permission. Click **Grant access** on the banner. |
While **Shipping Discounts** is in test mode, an *Active* discount only applies to checkouts with `shipmagic` as the first name. See [Test mode and going live](#test-mode-and-going-live).
## Editing a discount
Click a discount to open it. You can change everything except the method (automatic or code), which Shopify doesn't allow. Click **Save** and the change applies at checkout straight away.
## Disabling a discount
To pause a discount without losing it, set **Status** to *Disabled* and click **Save**.
* The discount stops applying at checkout
* Shopify lists it as *Expired* on its Discounts page, while ShipMagic shows *Disabled*
* A discount code keeps its usage history
* Your start and end dates are kept, and come back when you set it to *Enabled* again
Shopify limits how many automatic discounts can be active at once. A disabled discount doesn't count toward that limit, so disable seasonal discounts instead of deleting them.
## Deleting discounts
Select one or more discounts in the list and click **Delete discounts**. This deletes them from ShipMagic **and** from Shopify. Discount codes stop working immediately.
Deleting can't be undone, and a deleted code loses its usage history. If you might need the discount again, disable it instead.
## In your Shopify admin
ShipMagic discounts appear in **Shopify Admin → Discounts** alongside your other discounts. Clicking one there opens it in ShipMagic, which is where you edit it.
If a ShipMagic discount is deleted from the Shopify Discounts page, or the app is reinstalled, ShipMagic marks it *Missing in Shopify*. Open it and click **Save** to create it again, or delete it in ShipMagic.
## Combining with other discounts
* **Only one shipping discount applies per order.** If several qualify, Shopify gives the customer the one with the biggest saving. This includes shipping discounts you created in Shopify itself.
* **Product and order discounts** can apply alongside a shipping discount when the **Combinations** card allows it. The other discount must also allow combining with shipping discounts.
## Working with rates and customizations
Shipping discounts work on any rate at checkout — manual Shopify rates, ShipMagic rates, and live carrier rates.
They run **after** shipping customizations:
* A rate hidden by a customization isn't shown, so it isn't discounted
* A rate renamed by a customization is matched by its **new** name in **Only rates whose name contains**
## Permissions
ShipMagic creates shipping discounts as Shopify discounts, so it needs the **Manage discounts** permission. It asks for it the first time you open **Shipping Discounts**.
If the permission is missing, a banner appears with a **Grant access** button. You can't save discounts until it's granted.
## Test mode and going live
Shipping discounts have their own toggle in **Settings → App Modes**, separate from Shipping Rates and Shipping Customizations.
| Toggle | Who gets the discounts |
| - | - |
| **Off** (test mode) | Only checkouts with `shipmagic` as the first name in the shipping address |
| **On** (live mode) | Every customer whose order matches |
In test mode, real customers checking out see no shipping discount, even if they enter the code.
Live mode needs the **Starter plan or above**. See [Billing](/core-concepts/billing) and [Going Live](/core-concepts/going-live).
## Related
The full setup, step by step.
Every attribute and operator.
The usual causes and how to fix them.
What each mode changes.
# Shipping Discount Not Applying
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-discounts/shipping-discount-not-applying
Work through the causes of a shipping discount not showing at checkout
Shipping discounts don't need CCS or product syncing, which rules out two common classes of problem. What's left is usually status, mode, conditions, or rate names.
## 1. Is the discount active?
**Check:** the status badge on the **Shipping Discounts** page.
| Status | Fix |
| - | - |
| *Disabled* | Open the discount, set **Status** to *Enabled*, and save. |
| *Scheduled* | The start date is in the future. Check **Active dates** — they're in your store's timezone. |
| *Expired* | The end date has passed. Move it, or untick **Set end date**. |
| *Missing in Shopify* | Open the discount and click **Save** to create it again. |
| *Unknown* | Click **Grant access** on the banner to give ShipMagic the **Manage discounts** permission. |
## 2. Are you in test mode without the test name?
In test mode, shipping discounts only apply when the checkout's **first name is `shipmagic`**.
**Check:** **Settings → App Modes** — the Shipping Discounts toggle.
**Fix:** use `shipmagic` as the first name when testing, or [go live](/core-concepts/going-live). The toggles are independent — rates and customizations can be live while discounts are still in test mode.
## 3. Do the conditions match?
**Check each one:**
* Is **All conditions** set where you meant **Any condition**?
* For **Customer Tag** — is the customer logged in? A guest has no tags.
* For **Product Collection** — did you enter the collection **ID** rather than its name?
* For product conditions — is the cart-evaluation mode right? *All products meet the condition* and *At least one product meets the condition* behave very differently.
* For **Product Vendor** and **Product Title** — text matching is case-sensitive.
* For amounts — they're in your **store currency**, even when the customer pays in another currency.
See [Discount Conditions](/shipping-discounts/discount-conditions).
## 4. Does the rate name match?
With **Only rates whose name contains**, the name must appear in the rate's name exactly, **including capitalization**. `express` doesn't match "Express Shipping".
**Check:** compare the name in your discount against the name shown at checkout, character for character.
**Fix:** copy the name from checkout. If a [shipping customization](/shipping-customizations/basic-shipping-customization) renames the rate, use the **new** name — discounts run after customizations.
## 5. Is the rate already free?
Rates that cost nothing, such as local pickup or an existing free shipping rate, are never discounted. With **Only the cheapest shipping rate**, the discount goes to the cheapest rate the customer would pay for.
## 6. Is another shipping discount winning?
Shopify applies **one shipping discount per order**. If several qualify, the customer gets the biggest saving, and the others don't show.
**Check:** **Shopify Admin → Discounts** for other active shipping discounts — from ShipMagic, from Shopify itself, or from other apps — that also match your test cart.
## 7. Does it combine with the other discounts on the order?
If the order also has a product or order discount, both discounts must allow combining with each other.
**Check:** the **Combinations** card on your shipping discount, and the combination settings of the other discount in Shopify.
## 8. Has the code reached its usage limit?
For discount codes, check the **Usage limits** card. A code limited to one use per customer won't apply to a customer who has already used it.
## Still stuck?
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup), or reach out on [live chat](https://tawk.to/chat/649858bd94cf5d49dc5fbec1/1h3phl9e5).
## Related
Every attribute and operator.
Statuses, combinations, and permissions.
Independent toggles for rates, customizations, and discounts.
When a customization hides or renames the rate.
# Shipping Rates Not Showing On Checkout Page
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-rates-not-showing-on-checkout-page
Work through the causes of ShipMagic rates failing to appear at checkout
Work down this list in order — the causes are roughly ordered by how often they turn out to be the problem.
## 1. Is CCS enabled?
Carrier Calculated Shipping is mandatory for any third-party app to return rates. Without it, ShipMagic is never even asked.
**Check:** open the **Shipping Rates** page in the app. If CCS is not enabled you'll see an error message there. No error means CCS is active.
**Fix:** [contact Shopify support](https://help.shopify.com/en#/contact) to have CCS enabled. See the [Installation Guide](/installation-guide#2-ensure-ccs-is-enabled-on-your-store).
## 2. Are you in test mode without the test name?
If the app is in test mode, it only returns rates for checkouts where the **first name is `shipmagic`**. Everyone else sees your normal Shopify rates.
**Check:** **Settings → App Modes**. If the Shipping Rates toggle is off, you're in test mode.
**Fix:** either enter `shipmagic` as the first name when testing, or [go live](/core-concepts/going-live). See [Test mode vs live mode](/test-mode-vs-live-mode).
## 3. Is ShipMagic a rate provider on that profile?
ShipMagic is added to the **General** profile automatically. Custom shipping profiles need it added manually.
**Check:** **Shopify Admin → Settings → Shipping and Delivery**. Open the profile covering the products in your test cart and confirm ShipMagic appears as a rate provider in the relevant zone.
**Fix:** follow [adding ShipMagic to custom profiles](/installation-guide#add-shipmagic-as-a-rate-provider-custom-profiles--zones).
If your store uses market-driven shipping, check the customer's **market** instead. ShipMagic must be added there as a carrier-calculated shipping rate. The **Shipping Zones** page in the app warns you about any market where it's missing.
## 4. Is the address in a zone, and does the zone have rates?
**Check:** open the **Shipping Zones** page in the app and confirm the customer's country, state, or province is in a zone, or that you have a Rest of world zone. Then open your rule. If a zone shows *"No rates. Customers in this zone won't see shipping rates from ShipMagic app"*, that zone has nothing to return.
**Fix:** add the region to a zone on the **Shipping Zones** page, then add a rate for that zone in your rule. See [Adding / Modifying Shipping Zones](/essentials/adding-modifying-shipping-zones).
## 5. Do the conditions actually match your test cart?
A rule that doesn't match produces nothing.
**Check each condition against your cart:**
* Is the rule **Active**?
* For **Product Tag, Type, Title, Barcode, or Compare-at Price** conditions — have you [synced products](/core-concepts/syncing-products) since last editing them?
* For **customer** conditions — are you logged in? Guests have no tags and zero spend.
* Is **All conditions** set where you meant **Any condition**?
* For **ranged rates**, does your cart fall inside a band? A cart above your largest band with no open-ended final band gets nothing.
Isolate the problem by temporarily creating a rule with a single always-true-ish condition and a fixed rate. If that appears, the issue is your conditions. If it doesn't, the issue is higher up this list.
## 6. Are you seeing a cached rate?
Shopify caches shipping rates per address. Re-testing with the same address shows the old result no matter what you changed.
**Fix:** use a fresh, random address for every test. See [Made changes but still seeing old rates](/made-changes-in-the-rule-but-still-seeing-the-old-rates).
## 7. Did a live carrier fail to respond?
If a rate uses a live carrier and the carrier doesn't respond, that rate produces nothing unless a **Default rate** is set.
**Check:** credentials are current, and a default rate is set on the carrier rate.
**Fix:** set a **Default rate** on every live carrier rate. See the carrier's page — [USPS](/usps), [FedEx](/fed-ex), [Australia Post](/australia-post), [ShipStation](/ship-station), [Shiprocket](/shiprocket), [Stallion Express](/stallion-express), [Direct Freight Express](/direct-freight-express).
## 8. Is an exclusive rule suppressing everything?
An [exclusive](/exclusive-rules) rule that matches skips all lower-priority rules. An exclusive rule with broad conditions at a low priority number can silence your whole rule set.
**Check:** look for exclusive rules with a low priority number and permissive conditions.
## 9. Is a customization hiding the rate?
A shipping rate can be generated correctly and then hidden by a customization.
**Check:** review your customizations for a **Hide** or **Only show** rule matching your test conditions. See [Shipping Customizations Not Working](/shipping-customizations-not-working).
## Still stuck?
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup), or reach out on [live chat](https://tawk.to/chat/649858bd94cf5d49dc5fbec1/1h3phl9e5).
## Related
Which mode you're in and what it changes.
Address caching and how to defeat it.
The opposite problem.
How to test properly.
# Create a Basic Shipping Rate
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-rates/basic-shipping-rate
Build your first rule-based shipping rate and show it at checkout
A **shipping rate** in ShipMagic is a price the app calculates and returns to Shopify at checkout. You group rates inside a **rule** — the rule decides *when* the rates apply, and each rate decides *how much* to charge.
Shipping Rates change **what customers pay**. If you only want to hide, rename, or reorder rates you already have in Shopify, use [Shipping Customizations](/shipping-customizations/basic-shipping-customization) instead.
## Before you start
Carrier Calculated Shipping is required for any third-party app to return rates at checkout. See the [Installation Guide](/installation-guide#2-ensure-ccs-is-enabled-on-your-store) if you're not sure whether it's on.
It's added to the General profile automatically. For custom profiles, [add it manually](/installation-guide#add-shipmagic-as-a-rate-provider-custom-profiles--zones).
Open **Settings** in the app and sync zones. Until you do, the rule editor shows a warning instead of your zones and you won't be able to add rates.
## Create the rule
From the left navigation panel in the app, open **Shipping Rates**, then click **Add Rule**.
Use something you'll recognise later — for example `Heavy products rule`. This name is internal and is never shown to customers.
Rules are evaluated in **ascending order of priority**, so priority `1` is checked before priority `2`.
**No two rules can share the same priority.** The app will not let you save a second rule with a priority that's already taken, so give each rule its own number.
Leaving gaps (10, 20, 30) makes it easy to slot new rules in later without renumbering everything.
Choose whether the rule must match **All conditions** or **Any condition**, then add one or more conditions. Each condition is an attribute, an operator, and a value:
```text theme={null}
Product Tag <> Equals <> bulky
```
You can build conditions from more than 25 attributes across four groups:
| Group | Examples |
| - | - |
| **Product** | Title, Tag, SKU, Barcode, Vendor, Price, Compare-at Price, Quantity, Type, Weight, Metafield, Line item property, Length / Width / Height / Volume |
| **Cart** | Cart Quantity, Cart Subtotal, Cart Total after discount, Cart Weight, Cart Volume, Cart Contains, Cart Locale |
| **Shipping** | Zipcode / Postcode, Province / State Code, Address Line 1, Country Code, Time of Day, Day of the Week, Warehouse Zipcode |
| **Customer** | Customer Tag, First Name, Last Name |
See [Cart Conditions](/cart-subtotal), [Product Attributes](/cart), [Customer Attributes](/customer-attributes), and [Customer Location and Address](/customer-location-and-address) for the full reference.
Several attributes accept multiple values in one condition. Tags are separated by **commas**, while titles, SKUs and types are separated by **semicolons**. Postcodes support wildcards (`AB14*`) and ranges (`90209-90231`). Specific details for every parameter is shown in the app after you choose the parameter.
Conditions on **Product Tag, Product Type, Product Title, Product Barcode, or Product Compare-at Price** need your products [synced](/core-concepts/syncing-products) first. Shopify doesn't send these to the app at checkout, so ShipMagic reads them from its own copy.
Scroll to **Shipping zones**. Each synced zone is listed separately — click **Add rate** on the zone you want.
A zone with no rates shows a warning, and customers in that zone will see no ShipMagic rates at all.
The rate dialog is covered in [the next section](#adding-a-rate).
**Status** controls whether the rule runs at all. **Exclusivity** controls what happens after it matches:
* **Inclusive** (default) — lower-priority rules are still evaluated, and their rates are added too.
* **Exclusive** — if this rule matches, every lower-priority rule is skipped. See [Exclusive Rules](/exclusive-rules).
**Save** stays disabled until the rule has a name, a priority, and at least one condition.
## Adding a rate
Every rate starts with two fields:
| Field | Notes |
| - | - |
| **Rate name** | Required. This is what the customer sees at checkout. |
| **Description** | Optional, shown under the rate name at checkout. Supports `{{today+3}}`, `{{today+3wd}}` (weekdays), and `{{today+3sd}}` (skipping Sundays) to insert delivery dates dynamically — see [Rate Descriptions](/rate-descriptions). |
Then pick a **Calculation parameter**, which decides how the price is worked out.
### Calculation parameters
| Parameter | What it does |
| - | - |
| **Fixed rate** | One flat price, no calculation. |
| **Number of items** | Price based on how many items are in the cart. |
| **Total price of items** | Price based on cart value. |
| **Total weight of items** | Price based on cart weight. |
| **Percentage of total price** | Charge a percentage of the cart value. See [Percentage of Cart Subtotal](/percentage-of-cart-subtotal). |
| **Product / Variant Metafield** | Use a metafield value as the price itself. See [Rates from Metafields](/rates-from-metafields). |
| **Sum of Product / Variant Metafield** | Total a metafield across the cart and price that total in bands. |
| **Distance** | Price based on distance between warehouse and destination. |
| **Live carrier rate** | Fetch a real rate from USPS, FedEx, Australia Post, ShipStation, Shiprocket, Stallion Express, or Direct Freight Express. |
Not every parameter asks for a **Rate Type**. Three of them set the price directly:
* **Fixed rate** just asks for a price.
* **Percentage of total price** asks for a percentage, with an optional *Round up to nearest integer* checkbox.
* **Product Metafield** and **Variant Metafield** take the price from the metafield, with a default rate for products that have no value.
Everything else — including the **Sum of** metafield parameters — asks for a **Rate Type** and a table of bands.
### Rate types
| Rate type | Fields | Use it for |
| - | - | - |
| **Range** | Range Start, Range End, Price | One price for a band of values. Leave Range End empty for "and above". |
| **Incremental** | Base price, Incremental price, Per each, Start from | A base price plus a top-up for every N units. See [Incremental / Per Item Rates](/incremental-per-item-rates). |
| **Range + Incremental** | Range Start / End, then base + incremental | An incremental rate that only applies inside a band. |
| **Range + Range** | Range Start / End, a second parameter, then its own range and price | Two parameters at once — for example weight *and* cart value. |
To cover a whole scale, add several **Range** rates with the same rate name and adjoining bands — `0–100`, `100.01–200`, `200.01` and up. Shopify shows the customer whichever one matches their cart. See [Ranged Rates](/ranged-rates).
## A worked example
Charge \$5 below \$100 and free shipping at \$100 or more:
```text theme={null}
Name: Regular products
Priority: 10
Rule must match: All conditions
Condition 1: Product Tag <> Does Not Equal <> bulky
```
```text theme={null}
Rate name: Standard Shipping
Calculation parameter: Total price of items
Rate Type: Range
Range Start: 0
Range End: 100
Price: 5
```
```text theme={null}
Rate name: Standard Shipping
Calculation parameter: Total price of items
Rate Type: Range
Range Start: 100.01
Range End: (leave empty)
Price: 0
```
Click **Done** on the rate dialog, then **Save** on the rule.
## Test your rate
Rules take effect immediately, so test before you go live.
1. Open your storefront and add matching products to the cart
2. Proceed to checkout and enter a complete address
3. In test mode, enter `shipmagic` as the **first name**
Use a fresh, random address each time. Shopify caches shipping rates per address, so reusing one is the most common reason a change appears not to have worked.
Full details in [Testing the App](/core-concepts/testing-the-app). When everything looks right, follow [Going Live](/core-concepts/going-live).
## Next steps
Every attribute and operator you can build conditions from.
Connect your own carrier account and show real-time rates.
Control how multiple matching rules combine.
Add, or take the highest or lowest of, several matching rates.
**Need help?**
Our founders will personally help with the optimal setup for your brand. [**Book a free onboarding call**](https://cal.com/speedysquirrel/shipmagic-setup) if you'd like us to help.
# How to Setup Packing Algorithm for your Products
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-rates/types-of-rates/carrier-rates/3-d-boxing-algorithm
Configure boxes and packing distribution so carrier rates reflect real parcels
When ShipMagic asks a carrier for a rate, the carrier needs to know what it's quoting for. The packing algorithm decides how your cart's items are distributed into parcels before that question is asked.
Get this right and live rates match what you're actually charged. Get it wrong and every quote is off.
## Packaging box distribution
Every live carrier rate has a **Packaging box distribution** setting with four options:
| Option | How items are packed |
| - | - |
| **None - Use product dimensions** | Each product is quoted using its own dimensions. No boxes involved. |
| **By items count** | Items are packed into your boxes up to a maximum number of items per box. |
| **By items volume** | Items are packed by volume using a 3D bin-packing algorithm. |
All options except **None** need you to define at least one box. **By items volume** additionally needs accurate **product dimensions** — see [Adding Dimensions to Products](/adding-dimensions-to-products). Without them the algorithm has nothing to pack.
## Defining boxes
Once you pick a distribution method other than **None**, a box table appears. Each box takes:
| Field | Meaning |
| - | - |
| **Max limit** | For *By items count*: how many items fit in this box. For *By weight*: the weight ceiling. |
| **Length / Width / Height** | The box's internal dimensions, in millimetres. |
| **Weight** | The weight of the **empty box**, added to the parcel's total. |
Add as many box types as you use with **Add another box**.
Include the empty box weight. It's easy to leave at zero, but a heavy carton on a light order can shift the parcel into the next weight bracket and make every quote too low.
## How the 3D algorithm works
**By items volume** is the most sophisticated option. It uses 3D bin packing: each item is treated as a rectangular solid with a width, height, depth, and weight, and the algorithm fills your boxes by volume, tracking remaining space and accumulated weight as it goes.
When one box is full it opens another of the same or the next suitable type, until every item is placed. ShipMagic then asks the carrier for a rate on the resulting set of parcels.
The algorithm packs by **volume**, not by simulating physical orientation. It won't detect that a long item cannot fit diagonally into a box whose volume is technically sufficient. For awkward-shaped goods, define a box that genuinely fits them and use **By items count**.
## Choosing a method
**None - Use product dimensions** suits stores where each product ships in its own packaging — furniture, appliances, anything already boxed by the manufacturer.
**By items count** is the simplest to reason about and the easiest to keep accurate. If you ship a fairly uniform catalogue in one or two carton sizes, start here.
**By weight** suits dense goods where weight, not space, is the binding constraint.
**By items volume** is the most accurate for mixed carts of varied sizes, and the most demanding — every product needs correct dimensions.
Start with **By items count** and move to **By items volume** once your dimension data is complete and trustworthy. An accurate simple model beats an inaccurate sophisticated one.
## Pallets
For freight-scale orders, ShipMagic also supports pallet configuration — see the pallet fields on carriers that support them, such as Direct Freight Express.
## Verifying your setup
Live carrier rates are hard to eyeball. Test with real carts:
1. Add a cart you know the true shipping cost for
2. Check the rate at checkout against what the carrier actually charges you
3. Try a cart that should need two boxes, and confirm the rate rises appropriately
Always set a **Default rate** on live carrier rates. If the carrier doesn't respond, that fallback is the only thing standing between your customer and a checkout with no shipping options.
## Related
Populate length, width, and height across your catalogue.
Connect a USPS account.
Connect a FedEx account.
When a carrier rate fails to appear.
# ups
Source: https://shipmagic-docs.speedysquirrelhq.com/shipping-rates/types-of-rates/carrier-rates/ups
# Shiprocket
Source: https://shipmagic-docs.speedysquirrelhq.com/shiprocket
Show live Shiprocket rates at checkout for Indian shipping
Shiprocket is an Indian shipping aggregator. Connecting it exposes the courier partners in your Shiprocket account through a single integration.
Shiprocket serves **Indian domestic shipping**. Rates are returned for destinations within India.
## Credentials
Shiprocket authenticates with your **Email ID** and **Password** — the same credentials you use to sign in to the Shiprocket dashboard, rather than a separate API key.
Because this is your account login, treat it carefully. If you change your Shiprocket password, update it here too or rate queries will start failing silently and customers will fall back to your default rate.
## Setting up the rate
In your rule, click **Add rate** on the zone you want.
Choose **Shiprocket** under the live carrier options.
Your Shiprocket account credentials.
Tick **Hide estimated delivery dates** to suppress the estimates Shiprocket returns.
Choose **All rates**, **Highest rate only**, or **Lowest rate only**.
Set **Packaging box distribution** and define your boxes. See [the packing algorithm](/shipping-rates/types-of-rates/carrier-rates/3-d-boxing-algorithm).
**Default rate** is used if Shiprocket doesn't respond.
## Selecting which rates to show
Shiprocket typically returns quotes from **many courier partners at once**. Showing all of them puts a long, confusing list in front of the customer.
| Option | Best for |
| - | - |
| **Lowest rate only** | Most stores. One clear price, the cheapest available. |
| **Highest rate only** | Rare — usually when the priciest partner is also the most reliable. |
| **All rates** | Letting customers choose their courier, at the cost of a busier checkout. |
**Lowest rate only** is the sensible default. Customers rarely have a view on which Indian courier partner should carry their parcel, and a shorter list converts better.
## Pincode serviceability
Shiprocket returns rates based on whether the destination pincode is serviceable by its partners. An unserviceable pincode returns nothing — which is exactly when your **Default rate** matters.
Without a default rate, a customer in a pincode no partner serves sees no shipping option at all. Set one, even if it's a conservative figure you'd rather not charge.
## Testing
1. Add products with accurate weights and dimensions
2. Check out to a real Indian address, using a fresh address each time
3. Test a metro pincode and a remote one — they price very differently
4. Confirm the fallback behaves as you expect for an unserviceable pincode
## Related
How items are distributed into parcels before quoting.
Pincode wildcards and ranges for regional rules.
Combining carrier rates with your own.
When a carrier rate fails to appear.
# Stallion Express
Source: https://shipmagic-docs.speedysquirrelhq.com/stallion-express
Show live Stallion Express rates at checkout for Canadian shipping
Stallion Express is a Canadian shipping service, widely used for cross-border shipping into the US. The integration supports package types, signature, and insurance options.
## Getting credentials
Generate an **API Key** from your Stallion Express dashboard under API settings.
## Setting up the rate
In your rule, click **Add rate** on the zone you want.
Choose it under the live carrier options.
Paste the key from your Stallion dashboard.
Select the packaging format — including **Pallet** for freight-scale consignments.
Configure how cart items are distributed into parcels. See [the packing algorithm](/shipping-rates/types-of-rates/carrier-rates/3-d-boxing-algorithm).
Tick **Signature required** and **Insured** as needed. Both affect the quoted price.
**Discount (Optional)** reduces every returned rate by a percentage. **Default rate (Optional)** is used if Stallion doesn't respond.
## Signature and insurance
These two options change the price Stallion quotes, so set them to match how you actually ship.
* **Signature required** — proof of delivery. Adds cost, reduces disputes.
* **Insured** — declared-value coverage. Adds cost, protects high-value goods.
If only some of your catalogue warrants signature or insurance, don't enable them globally. Create a second rule with a [product condition](/cart) — for example on price or a `high-value` tag — and enable the options only on that rule's rate.
Enabling these on every rate means every customer pays for coverage most orders don't need, which shows up as an uncompetitive shipping price at checkout.
## Cross-border shipping
Stallion is commonly used to ship from Canada into the United States. Which services return depends on the destination and your account configuration.
If you ship both domestically within Canada and across the border, consider separate rules with [country conditions](/customer-location-and-address) so each is configured appropriately.
## Always set a Default rate
If Stallion is unavailable and no default rate is set, the customer sees no shipping option and cannot complete checkout.
## Testing
1. Add products with accurate weights and dimensions
2. Check out to a real address, using a fresh address each time
3. Test both a Canadian and a US destination if you ship to both
4. Confirm the price reflects your signature and insurance settings
## Related
How items are distributed into parcels before quoting.
Dimension data that carrier quotes depend on.
Splitting domestic and cross-border rules.
When a carrier rate fails to appear.
# Test mode vs live mode
Source: https://shipmagic-docs.speedysquirrelhq.com/test-mode-vs-live-mode
What each mode does, and how to tell which one you're in
ShipMagic runs in one of two modes, controlled from **Settings → App Modes**. Understanding which you're in explains most "it works for me but not for customers" confusion — and its reverse.
## The two modes
| | Test mode | Live mode |
| - | - | - |
| **Toggle** | Off | On |
| **Who sees ShipMagic rates** | Only checkouts with first name `shipmagic` | Every customer |
| **Everyone else sees** | Your normal Shopify rates | ShipMagic rates |
| **Requires a paid plan** | No | Yes |
## Independent toggles
**Shipping Rates, Shipping Customizations, and Shipping Discounts have separate toggles.** One can be live while another is still in test mode.
Check all three before assuming you're fully live.
## Testing in test mode
With the toggle off, enter **`shipmagic`** as the **first name** in the checkout address. ShipMagic then returns rates for that session only.
Anyone else checking out is unaffected and sees your existing Shopify rates — which is the point: you can build and test against a live store without risk.
The name goes in the **first name** field of the shipping address, not the last name and not the account name.
## Going live
Live mode needs a paid plan. See [Billing](/core-concepts/billing) for which plan covers what — Starter for customizations and discounts, Pro for rates.
Once the toggle is on:
* Every customer gets ShipMagic rates
* The `shipmagic` first-name requirement no longer applies
* Your rules run in real time on real orders
Full checklist in [Going Live](/core-concepts/going-live).
## Which mode am I in?
**Settings → App Modes** is the direct answer. Two practical symptoms:
* **Rates appear for you but not for customers** — you're in test mode and using the test name without realising.
* **Rates appear for everyone unexpectedly** — you're live. Turn the toggle off to pull back.
Rules take effect immediately in both modes. Editing a rule while live changes what customers see straight away — there's no separate publish step.
## Common mistakes
**Testing with the same address twice.** Shopify caches rates per address, so the second test shows the first result. Use a fresh address each time.
**Forgetting to turn on toggles.** See the warning above.
**Assuming test mode blocks orders.** It doesn't. Real customers continue checking out normally on your existing Shopify rates.
## Related
A full testing walkthrough.
The pre-launch checklist.
Which plan live mode requires.
Address caching during testing.
# USPS
Source: https://shipmagic-docs.speedysquirrelhq.com/usps
Show live USPS rates at checkout using your own account
Connect your USPS account and ShipMagic will query real USPS rates at checkout and show them to the customer.
**USPS authentication has changed.** USPS has moved from its older API to OAuth-based credentials. You need a **Client ID** and **Client Secret** from the USPS Developer Portal — an older USPS username and password will not work.
## Getting credentials
USPS issues API credentials through the [USPS Developer Portal](https://developer.usps.com/). Register your business, create an application, and copy the **Client ID** and **Client Secret** it generates.
## Setting up the rate
In your rule, click **Add rate** on the zone you want.
Choose **USPS** under the live carrier options.
Paste the **Client ID** and **Client Secret**.
Select which USPS price schedule your account is on. This must match your actual USPS contract, or quotes will be wrong.
Pick the USPS services to offer — Priority Mail, Ground Advantage, Priority Mail Express, and the various Flat Rate envelopes and boxes.
You can also choose to show **All rates**, the **Highest rate only**, or the **Lowest rate only**.
Set **Packaging box distribution** and define your boxes. See [the packing algorithm](/shipping-rates/types-of-rates/carrier-rates/3-d-boxing-algorithm).
**Discount (Optional)** reduces every returned rate by a percentage. **Default rate** is used if USPS doesn't respond.
## Flat Rate services
USPS Flat Rate envelopes and boxes price by container rather than by weight, which makes them attractive for dense items. ShipMagic lists them individually so you can offer only the ones you actually stock.
Only enable Flat Rate options you keep in your packing area. Quoting a Priority Mail Medium Flat Rate Box you don't have leads to a repack at a different price.
## The Discount field
**Discount (Optional)** applies a flat percentage reduction to every rate USPS returns.
Use it to pass on a commercial-pricing advantage, or to absorb part of the shipping cost as a promotion. It does not reflect any actual USPS discount — it's applied by ShipMagic after the quote comes back.
## Always set a Default rate
If USPS is slow or unavailable and no default rate is set, the customer sees **no shipping option at all** and cannot complete checkout.
Set a default rate that is safe to charge when the live quote is unavailable.
## Testing
Live rates depend on a real origin and destination, so test with complete, realistic addresses.
1. Add products to the cart with accurate weights and dimensions
2. Check out to a real US address
3. Compare the quoted rate against what USPS charges you for the same parcel
Use a fresh address each time — Shopify caches rates per address, and a cached quote will mask your changes.
## Related
How items are distributed into parcels before quoting.
Dimension data that carrier quotes depend on.
Combining carrier rates with your own.
When a carrier rate fails to appear.