How to set Shopify shipping rates from gift wrap and line item properties

Updated · SMART Shipping Rates & Rules (E-TRADE PARTNER)

Cart line item properties, such as gift wrap, engraving, made-to-order notes, or quiz outputs, can change what shipping should cost or which methods should appear. SMART Shipping Rates & Rules can calculate a surcharge when a line item property exists or matches a value, and can hide Express through Delivery customizations. Calculated rates need Shopify Carrier Service. Delivery customizations do not.

SMART Shipping Rates does this with zones, calculated rates, and delivery customizations.

Try it free
On this page
  1. When line item properties should change shipping
  2. What Shopify can and cannot do natively
  3. Setup steps in SMART Shipping Rates & Rules
  4. Worked example: gift wrap surcharge, no Express
  5. Tips for property-based shipping
  6. How to choose the simplest rule
  7. Frequently asked questions

Product pages often collect extras that never become a Shopify product, tag, or metafield. Gift wrap, engraving text, a made-to-order date, or a quiz result is stored on the cart line as a property. Native shipping zones do not read those properties, so wrapped or customized items can still get Express, or they never pick up the extra handling cost.

This guide is about cart line properties on each line item. It is not product metafields, and it is not cart attributes (the order-level note fields some themes and apps use). Login state does not matter here: the property is on the line, whether the buyer is a guest or a customer account.

When line item properties should change shipping

  • Gift wrap needs extra packing time and a handling surcharge.
  • Engraving or made-to-order items should not use Express.
  • A custom quiz writes a property such as _source that should trigger a special rate.
  • Only some lines in a mixed cart have the property, so the rule must say whether any, all, or none of the products must match.

What Shopify can and cannot do natively

Shopify shipping profiles and zone rates can split products, weight, and destination. They cannot look at a Gift wrap property, an Engraving value, or a hidden _source key on the cart line. If checkout should add a calculated surcharge or hide a method when that property is present, you need a rule that reads the line.

NeedNative ShopifySMART
Charge extra when gift wrap is selectedProfiles and zone rates ignore line propertiesShipping rates with Line item property
Hide Express when a property existsMethod lists are the same for the zoneDelivery customizations
Show one price for base delivery plus a wrap surchargeCheckout may show separate rate linesCombined rates
Test a cart that includes the propertyPlace a real checkout each timeCheckout simulator for calculated rates, then confirm hide rules in real checkout

Setup steps in SMART Shipping Rates & Rules

  1. Confirm the exact property name in a real cart (for example Gift wrap, Engraving, or _source). Hidden theme properties keep the leading underscore.
  2. Decide whether you need a new calculated price, a method change, or both.
  3. For a surcharge, open Shipping rates and add a rate to the zone. If the Carrier Calculated Shipping banner shows, your store can't use app-calculated rates yet, and saving a new zone fails until CCS is on.
  4. Add a Line item property condition. Property name matching is case-insensitive. Use exists or doesn't exist when any value should count, or a string match such as is any when the value matters.
  5. Set product scope to Any product in cart, All products in cart, or None of products in cart so mixed carts behave the way you pack them.
  6. To hide Express when the property exists, open Delivery customizations and add the condition Line property: enter the property key, choose exists, and set Applies to to any product in the cart.
  7. Tag the wrap surcharge and the base rate, and blend them in Shipping rates > Combined rates if they should appear as one checkout price.
  8. On Shipping rates, click Test checkout, add the products, open Line item properties on a line to add the same property, and click Run simulation. Then confirm hide rules in a real Shopify checkout.

Common mistake: matching the wrong kind of extra field

Line item properties live on the cart line. Product metafields and cart attributes are different data. A Gift wrap metafield or a cart-level attribute will not match a Line item property condition. Copy the property name from the cart, keep any leading underscore, and do not rely on Checkout simulator alone for hide rules.

Worked example: gift wrap surcharge, no Express

A jewelry store lets shoppers add gift wrap on the product page. The theme saves Gift wrap as a line item property. Wrapped orders need a $4.50 handling surcharge and should not offer Express, because packing takes longer. Unwrapped carts should keep the normal Standard and Express list.

  1. In Shipping rates, create a Gift wrap handling calculated rate for $4.50.
  2. Add Line item property with name Gift wrap, operator exists, and product scope Any product in cart.
  3. In Delivery customizations, hide Express when Line property Gift wrap exists on any product in the cart.
  4. If Standard and the $4.50 surcharge both appear, tag both and add a rule in Shipping rates > Combined rates with Every tag must have a matching rate, so the buyer sees one Gift wrap delivery price.
  5. In the Checkout simulator (Test checkout), add a wrapped line and an unwrapped line, then confirm Express hide behavior in real checkout.

The same pattern works for engraving, made-to-order dates, and quiz outputs. Use exists when any value should trigger the rule. Use a string match when only a specific value, such as yes or premium, should change shipping.

Tips for property-based shipping

  • Copy the property name from a test order. Gift wrap and gift wrap match; _source and source do not.
  • Use exists for extras that only appear when selected. Use doesn't exist when the default cart should get a different rate.
  • Prefer Any product in cart for a surcharge that should apply as soon as one wrapped line is present.
  • For product identity rather than a line property, use different rates for different products or hide methods by product or tag.
  • Blend a property surcharge with a base rate using combined rates.
  • See shipping rates and zones for calculated rate setup, and Checkout simulator for testing line items before you confirm hide rules in checkout.

Price shipping from the extras customers actually select

7-day free trial. Free on development stores.

Try the app free

How to choose the simplest rule

If the existing method is valid and you only need to remove Express, use Delivery customizations. If wrapping or customization should change the amount, use Shipping rates. If both a base rate and a property surcharge apply, use Combined rates so checkout shows one method.

Frequently asked questions

›Can Shopify charge shipping from a gift wrap line item property?

Native shipping settings do not read cart line properties. SMART Shipping rates can calculate a surcharge when a Line item property exists or matches a value. That requires Carrier Service.

›Are line item properties the same as metafields or cart attributes?

No. This condition matches cart line properties on each line item. It does not match Shopify metafields, and it does not match cart attributes.

›Do property-based hide rules need Carrier Service?

No. Hiding Express or another existing method in Delivery customizations does not need Carrier Service. A new calculated surcharge in Shipping rates does.

›How do I match a hidden theme property such as _source?

Enter the name with the underscore, for example _source. Name matching is case-insensitive, but the underscore is part of the name.

›Can Checkout simulator test line item property rates?

Yes. In the Checkout simulator, each cart line has Line item properties (up to 10 per line) for calculated rates. Still confirm hide rules in a real Shopify checkout.

Related articles