Sushinet

Tag Perishable Products, Then Hide Slow Shipping When One Is in the Cart

Auto-tag perishable products, then hide economy shipping at checkout whenever a tagged item is in the cart — so nothing that melts goes out on a five-day service.

recipe

Chocolate, cheese, cut flowers, anything frozen: a five-day economy service is not a cheaper way to ship it, it is a way to ruin it. You want that option to disappear from checkout whenever one of those products is in the cart — and to keep disappearing as the catalogue grows, without anyone having to remember.

Why Shopify's native tool nearly works

Shipping profiles are the native answer, and for a small, stable set of products they are a reasonable one. Put the perishables in their own profile, give it only the fast services, done.

Two things break it:

  • A profile is a list you maintain by hand. Every new perishable product has to be remembered into it. The cost of forgetting is a ruined parcel and an unhappy customer, with no error message anywhere in between.
  • A profile reasons about products; a parcel is a cart. One bar of chocolate alongside four books is a chocolate parcel. Profiles have no clean answer for the mixed cart, and the mixed cart is common.

Step 1 — let a rule decide what's perishable

In Rules2Tag, derive the tag from something already true about the product rather than from anyone's memory:

When a product's type is Chocolate → add the tag perishable.

Product type, vendor, collection membership, a word in the title — whatever actually distinguishes them in your catalogue. The test of a good criterion is whether it covers the product you will add next month without anybody thinking about it.

Then backfill, and spot-check a handful of results. A tagging rule that is 95% right is a rule that ruins one parcel in twenty.

Step 2 — let the checkout read it

In Ruleproof:

Hide the shipping option Economy when the cart contains a product tagged perishable.

Note the phrasing: when the cart contains, not "for perishable products". That is what makes the mixed cart correct without a second rule.

The one mechanical detail worth knowing

Shopify cannot look up product tags while a customer is checking out — the checkout has a hard budget for what it may ask about, and a tag lookup does not fit inside it.

So the app resolves the tag into a list of products when you publish the rule, and checks against that list at checkout. A product tagged after that point is picked up by a repair sweep within the hour, usually within seconds.

This is not a limitation you have to work around, but it is one you should know before you discover it:

  • Tag a product and it is covered in minutes, not instantly.
  • The app shows how old its snapshot is, so you can check rather than guess.
  • If you have just added a perishable product and are about to run a campaign on it, give it a moment.

Test the join, not the halves

Both halves of this recipe fail silently, and in different directions. A product that should be tagged and isn't gets offered economy shipping. A product wrongly tagged loses a shipping option nobody notices is gone.

So test the combination:

  1. Preview the checkout rule with a tagged product in the cart. Economy should be gone.
  2. Preview with an untagged one. Economy should be there.
  3. Preview a mixed cart — one tagged item, several not. Economy should be gone. This is the case the shipping-profile approach gets wrong, so it is the one worth confirming.
  4. After publishing, tag one new product and re-check within the hour.

What each app is doing

Where it runs What it decides
Rules2Tag On your store, as the catalogue changes Which products are perishable
Ruleproof Inside Shopify's checkout Which shipping options this cart may use

The catalogue changes constantly and checkout has to decide instantly. Those are different problems with different constraints, which is why they are different apps — and why the tag is the interface between them.

Both have a free plan, so the whole recipe can be built and watched before it costs anything.

Questions

Can Shopify hide a shipping option for certain products?

Partly, through shipping profiles — you can put products in a separate profile with its own rates, which is the closest native tool and genuinely works for a small, stable set of products. Where it stops being practical is when membership changes: a profile is a list you maintain by hand, so every new chocolate, cheese or cut flower you add has to be remembered into it, and the consequence of forgetting is invisible until a customer receives a box of something that spent five days in a van. Profiles also apply per product rather than per cart, so they have nothing to say about the mixed cart where one perishable item sits alongside four that aren't.

What happens with a mixed cart?

The whole cart ships together, so the whole cart is governed by its most fragile item — and that is precisely the case a shipping profile handles worst. If a cart contains one bar of chocolate and four books, the parcel is a chocolate parcel, and economy shipping should disappear. A checkout rule reasons about the cart rather than the product, which is the right unit here because the cart is what actually gets packed. Write it as "when the cart contains a perishable item", not as "for perishable items", and the mixed case takes care of itself.

How quickly does a newly tagged product take effect at checkout?

Within the hour, and usually within seconds. This is worth knowing precisely rather than approximately. Shopify cannot look up product tags while a customer is checking out, so the checkout rule works out which products carry the tag when you publish it, and checks against that list at checkout. A product tagged after that point is picked up by a repair sweep that runs continuously — so the gap is minutes, not days, but it is not literally instant. If you have just tagged a product and want to be sure, the app shows how old its snapshot is.

Why not just tag the products by hand?

You can, and for twenty products you probably should. The reason to let a rule own the tag is that the cost of a missing tag is asymmetric: a product that should be tagged and isn't will quietly be offered on economy shipping, and you find out when it arrives ruined. There is no error, no warning, and no order that looks wrong at the time. A tagging rule derived from something already true about the product — its product type, its vendor, a collection it belongs to — cannot forget, and it covers the product you added at 6pm on a Friday just as well as the ones you added deliberately.

More recipes

This recipe uses two apps

Each does one half of the job, and neither can do the other's — which is why this is a recipe and not a feature. Both have a free plan, so the whole thing can be built and watched before it costs anything.

Pricing · ← All recipes