Install Sam free

★ 4.9 (107 reviews) Built for Shopify Free plan available

Guides

Exclude Gift Cards, Digital Items & Wholesale SKUs from Protection

TL;DR

To exclude products from shipping protection in Sam Shipping Protection, open Protection Settings > Config > Exclusions. Sam automatically hides the cart widget when a cart holds only a gift card. For digital downloads or non-eligible SKUs, exclude specific products or product tags from percentage fee calculations, and use customer tag exclusions to hide the widget from wholesale or B2B accounts.

When you exclude products from shipping protection on Shopify, shoppers only see—and only pay for—coverage on items that actually travel in a parcel. In Sam Shipping Protection, the cart widget automatically hides when a cart holds only a Shopify gift card, and the Exclusions settings under Protection Settings > Config let you leave specific products, product tags, or tagged wholesale customers out of your protection program.

Without exclusion rules, a store that sells both physical merchandise and non-physical items runs into two immediate problems. First, a shopper buying an e-book or digital gift card sees a toggle offering to protect an email delivery against carrier loss or porch theft. Second, on a mixed cart holding a $50 t-shirt and a $100 digital gift card, a percentage-based package protection fee would calculate against $150 instead of the $50 item that ships.

This guide covers which products and customer groups you should exclude, how Sam handles single-item versus mixed carts, and step-by-step instructions to set up product and customer exclusions in your Shopify admin.

Why should you exclude gift cards, digital downloads, and wholesale SKUs from shipping protection?

Shipping protection exists to cover physical fulfillment risks: parcels lost by a carrier, boxes crushed in transit, or packages stolen after delivery. Not every SKU or buyer in a Shopify catalog fits that model.

Leaving non-shippable or contract-shipped items inside your protection calculation creates avoidable support tickets and skews your metrics:

  • Digital gift cards: According to the Shopify Help Center guide on gift card products, native Shopify gift cards are fulfilled digitally by email and do not require shipping. Charging a shipping fee or a delivery protection fee on a gift card looks like an unnecessary charge to buyers.
  • Digital downloads, memberships, and services: Stores often sell PDF patterns, software keys, online courses, event tickets, or paid memberships alongside physical goods. In Shopify, these items have This is a physical product unchecked (see Shopify’s guide on selling services or digital products). Because no carrier handles them, there is no shipment to reship if a customer files a claim.
  • Wholesale and B2B orders: Many merchants run retail and wholesale from the same Shopify store using customer tags like wholesale, b2b, or distributor. Wholesale buyers frequently ship on their own collect carrier accounts, book LTL pallet freight, or operate under net-terms contracts that already define freight liability.
  • Vendor-covered or white-glove freight items: If a specific oversized SKU ships via specialized white-glove freight that already includes signature delivery and full carrier replacement, you may want to exclude that SKU from a percentage-based parcel fee.

How does Sam Shipping Protection handle gift cards, digital items, and mixed carts?

Before changing settings, it helps to understand how Sam evaluates the cart in three different scenarios: a gift-card-only cart, a cart containing only excluded items, and a mixed cart containing both physical and excluded products.

Cart scenarioWhat happens to the protection widget?How is the protection fee calculated?
Cart with only a Shopify gift card (gift_card: true)Widget hides automatically. Any protection item already in the cart is removed.$0 (no protection item added).
Cart with only excluded products or tagsWidget hides. Because the eligible item count is zero, Sam removes the widget and clears any protection line item.$0 (no protection item added).
Mixed cart (physical item + excluded digital item or gift card) with Percentage pricingWidget stays visible so the buyer can protect the physical item.Sam subtracts the excluded item’s price first and applies your percentage only to the remaining eligible items.
Cart viewed by an excluded customer (e.g., wholesale tag)Widget hides in cart and Shopify Plus checkout. Any protection item is removed automatically.$0 (no protection item added).

Under the hood, when you use percentage pricing, Sam passes your included and excluded product rules to both its storefront cart script and its Shopify Cart Transform Function. That keeps the estimated fee shown in the cart drawer identical to the price calculated at checkout.

How do you exclude digital products and gift cards from the protection fee?

Product and customer exclusion rules are available on the Standard ($9/month) and Plus ($29/month) plans in Sam Shipping Protection (the Starter plan is free for up to 50 protected orders a month; see plans and billing).

When your store uses Percentage pricing (set up in Protection Settings > Config), an exclusions panel titled Products counted in the fee appears under Exclusions (documented in the fulfillment, order tags, visibility and exclusions guide).

Option 1: Exclude specific products (best for a few gift cards or digital downloads)

If your store only has one or two gift card products or a handful of digital downloads, pick them directly:

  1. In your Shopify admin, open Sam Shipping Protection and click Protection Settings.
  2. Stay on the Config tab and scroll down to the Exclusions card.
  3. Under Products counted in the fee, keep Include products set to All products.
  4. In the Exclude products dropdown, select Specific products.
  5. Click Choose products (or Browse products), select your gift card products, digital downloads, or service items in the Shopify product picker, and confirm.
  6. Click Save in the bar at the top of the page.

Even though Sam automatically hides the widget when a cart contains only a native gift card, adding your gift card product to Specific products ensures that if a customer buys a $60 physical item and a $100 gift card in the same order, the percentage protection fee only charges on the $60 physical item.

Option 2: Exclude products by tag (best for growing digital catalogs or drop-shipped SKUs)

If you regularly add new digital downloads, printables, virtual workshops, or freight-only items, managing exclusions with Shopify product tags saves you from reopening app settings every time you launch a product:

  1. In Shopify admin under Products, add a consistent tag—such as digital, no-protection, or gift-card—to every non-shippable product.
  2. In Sam Shipping Protection > Protection Settings > Config, scroll to Exclusions.
  3. Under Products counted in the fee, set Exclude products to Products with tags.
  4. Type your tag (for example, digital) into the Product tags field and click Add tag. Tag matching is case-insensitive, so Digital and digital match the same products.
  5. Click Save at the top of the page.

Option 3: Include only products with specific tags (best when most of your catalog is digital)

If your store primarily sells digital products, courses, or memberships and only ships a small line of physical merchandise (like branded apparel or printed workbooks), flip the rule around:

  1. Tag your shippable merchandise in Shopify with a tag such as physical or shippable.
  2. In Protection Settings > Config > Exclusions, set Include products to Products with tags.
  3. Add your physical tag and click Save.

With this setup, Sam ignores every untagged digital item by default and only shows or calculates shipping protection when a tagged physical item is in the cart.

How do you hide the shipping protection widget from wholesale and B2B customers?

Product rules filter what counts inside the cart, while customer rules control who sees the widget in the first place. If you sell to wholesale accounts, retail staff, or VIP members who already get free replacements, you can hide the protection widget from their sessions entirely.

Follow these steps to set up customer exclusions:

  1. Open Sam Shipping Protection > Protection Settings > Config and scroll to Exclusions.
  2. Under Who sees the widget, open the Hide from (Exclude by customer) dropdown and choose one of the four options:
    • No one: Every shopper sees the widget (unless hidden by product, cart-value, or country rules).
    • Logged-in customers: Hides the widget from anyone signed into a customer account, showing it only to guest shoppers.
    • Guests: Hides the widget from non-logged-in visitors, showing it only to signed-in account holders.
    • Customers with certain tags: Hides the widget when a signed-in customer has any of the tags you list.
  3. To exclude B2B buyers, select Customers with certain tags, enter your tag (for example, wholesale, b2b, or VIP) in the Customer tags box, and click Add tag.
  4. Click Save.

What happens if a wholesale buyer adds protection before logging in?

Wholesale buyers often add items to their cart while browsing as a guest and only sign into their account right before or during checkout. Sam handles this transition automatically:

  • In the storefront cart: As soon as a customer with an excluded tag logs in, Sam hides the cart widget, removes any sam_protect_shipping line item that was already in the cart, and writes a cart attribute (_sam_customer_excluded: 'true') to flag the session.
  • At Shopify Plus checkout: If your store uses Sam’s checkout extension on the Plus plan, the checkout widget reads the logged-in customer state and the exclusion attribute. If the buyer is excluded, the checkout extension hides the toggle and removes any existing protection line item from the order automatically.

What other visibility and checkout rules prevent unwanted protection charges?

Excluding digital products and wholesale accounts covers catalog and buyer targeting. To make sure shoppers never pay a protection fee on orders that don’t fit your policy, combine exclusions with three built-in visibility and checkout controls:

1. Block shipping protection on local pickup orders

Even when a cart contains physical products, no carrier handles the parcel if the customer chooses Local pickup at checkout. In Settings > Checkout > Checkout rules, add and activate Shipping protection: block on local pickup (see the local pickup checkout rule guide and our article on local pickup orders and shipping protection).

Next to it in the same list, activate Shipping protection: require another product. That second validation rule prevents anyone from checking out with only the sam_protect_shipping fee item in their cart if they remove all other products right before paying.

2. Hide the widget by minimum order value or country (Plus plan)

On the Plus plan ($29/month), the Visibility & targeting card right above Exclusions gives you two more filters:

  • Minimum order value: Tick Only show when the cart total reaches a minimum and enter a threshold (for example, $25). Low-value carts where you would replace a missing $8 sticker pack out of pocket anyway won’t see an extra fee toggle. For help setting tiers and thresholds, read how much you should charge for shipping protection.
  • Visibility by country: Tick Only show in certain countries and select the destinations where you want to offer protection. See package protection by country: show and hide rules for how to evaluate international claim rates.

3. Protect gift cards and digital items against payment fraud instead

Why do some merchants mistakenly leave shipping protection enabled on gift cards or digital downloads? Often, they are trying to offset chargeback losses on digital orders. However, shipping protection only covers physical delivery issues (loss, damage, or porch theft)—it does not protect a merchant against stolen credit cards or friendly fraud chargebacks on emailed codes.

Because digital gift cards and instant downloads deliver immediately without a physical shipping address check, they are a common target for card testing and stolen-card fraud. Instead of charging a shipping protection fee on digital items, exclude them from Sam Shipping Protection and use Shopify checkout fraud prevention rules to block disposable email domains, known bad buyer addresses, or suspicious order patterns before checkout completes.

How should you test your product and customer exclusions before going live?

After saving your rules in Protection Settings > Config, run a quick four-step test in a private (incognito) browser window so admin cookies don’t interfere:

  1. Test a gift-card-only or digital-only cart: Add a single excluded digital product or gift card to the cart and open your cart drawer or /cart page. Confirm that the Sam protection widget does not render and that no sam_protect_shipping line item is added when you proceed to checkout.
  2. Test a mixed cart (if using Percentage pricing): Keep the excluded digital item or gift card in the cart and add an eligible physical product. Confirm that the widget appears and that the displayed protection fee equals your percentage multiplied only by the physical product’s price.
  3. Test removing the physical product from a mixed cart: With protection switched on in a mixed cart, remove the physical product so only the excluded digital item remains. Confirm that Sam hides the widget and automatically removes the sam_protect_shipping line item from the cart.
  4. Test a tagged wholesale customer account: Log into a test customer account that carries your excluded tag (such as wholesale) with an eligible physical product in the cart. Confirm that the widget disappears and any active protection line item is cleared.

If you also use a 3PL or warehouse management system to ship the physical items in mixed orders, pair your product exclusions with auto-fulfilling the shipping protection item and make sure your protection product is set to Unlisted (see how to hide the shipping protection product on Shopify).

Frequently asked questions

Does Sam Shipping Protection automatically hide the widget on gift cards?

Yes, when a customer’s cart contains only a Shopify gift card product, Sam Shipping Protection automatically hides the cart widget and removes any protection line item. If you use percentage pricing and want to leave gift cards out of the fee calculation in mixed carts that also contain physical items, add your gift card product or tag to the Exclude products list under Protection Settings > Config.

What happens in a mixed cart with both a physical product and an excluded digital item?

When you use percentage pricing in Sam Shipping Protection and exclude the digital item by product or product tag, the widget stays visible to protect the physical item, but Sam subtracts the excluded digital item’s price before calculating the percentage fee. If the cart contains only excluded items, the widget hides completely.

How do I hide the shipping protection widget from wholesale or B2B customers?

In Sam Shipping Protection, go to Protection Settings > Config > Exclusions. Under Who sees the widget (Hide from), select Customers with certain tags and add your B2B tags such as wholesale or VIP. When a logged-in buyer with that tag views the cart or Shopify Plus checkout, the widget is hidden and any protection line item is removed.

Which Sam Shipping Protection plan includes product and customer exclusions?

Product exclusions and customer exclusions are included on the Standard plan ($9/month) and the Plus plan ($29/month). Visibility rules by minimum order value and country are part of the Plus plan.

Sources

  1. Shopify Help Center: Selling gift cards
  2. Shopify Help Center: Selling services or digital products
  3. Shopify.dev: Cart Transform Function API
  4. Shopify Help Center: Creating and using tags in Shopify

Part of our guide: Package protection →

Keep 100% of your protection fees

Sam Shipping Protection is free for your first 50 orders a month.

Install free on Shopify

★ 4.9 (107 reviews) Built for Shopify Free plan available