ComplianceMay 20267 min read

Compliance Automation for Food, Pharma & Regulated Shopify Products

If your store sells food, supplements, pharmaceuticals, cosmetics, or any regulated product with an expiry date, selling past that date isn't just a customer service problem — it's a legal and liability exposure. DateCue removes expired products from your storefront automatically, with an advance alert so your team is never caught off guard.

The compliance risk of manual expiry management

Regulated product categories have strict rules about what can be sold and when. In many jurisdictions, selling an expired food product, supplement, or pharmaceutical constitutes a violation of consumer protection or food safety law — regardless of whether the expiry was deliberate or accidental.

Manual catalogue management — relying on staff to check and remove products — is inherently unreliable. People forget, catalogues get large, products get restocked with new batches, and gaps happen. The only reliable system is one that can't forget: an automated workflow tied directly to the expiry date on the product.

The DateCue compliance workflow

This is a three-workflow system running off a single expiry date metafield. Each workflow handles a different phase of the compliance lifecycle.

Step 1: Set up the expiry date metafield

Go to Settings → Custom data → Products and create:

Set this on every regulated product. For products with batch-dependent expiry dates, update the metafield when you receive a new batch. DateCue always acts on the current metafield value.

Step 2: The three workflows

Workflow 1 — 30-day advance alert (team review):

Metafield: custom.expiry_date
Timing: 30 days before the date
Action: Send email → compliance@yourstore.com
Subject: Expiring in 30 days: {{product.title}}

Workflow 2 — 7-day alert (last chance to act):

Metafield: custom.expiry_date
Timing: 7 days before the date
Action 1: Send email → compliance@yourstore.com
Action 2: Add tag → expiring-soon

Workflow 3 — On expiry day (automated removal):

Metafield: custom.expiry_date
Timing: On the date
Action 1: Set status → Archived
Action 2: Send email → compliance@yourstore.com
Subject: ARCHIVED: {{product.title}} expired today

The archival email on expiry day serves as an audit log entry — you have a timestamped record that the product was removed on its expiry date.

Handling batch-dependent expiry dates

Many regulated products have a "use by" date that depends on which batch is currently in stock. If you receive a new batch with a later expiry date, update the custom.expiry_date metafield on the product to the new batch's date. DateCue recalculates all future workflow triggers against the updated date.

If you're managing multiple batches simultaneously (with different expiry dates), the practical approach is to list them as separate products or variants, each with their own expiry date metafield.

What the "expiring-soon" tag does

The 7-day workflow adds an "expiring-soon" tag. This can feed a clearance or last-chance collection for customers — giving them a final opportunity to purchase at a discounted price before the product is removed. It also signals to your team that the product is in its final compliance window.

⚠️ Important disclaimer: DateCue automates Shopify product visibility changes based on dates you provide. It does not guarantee compliance with specific regulations in your jurisdiction. For businesses with strict regulatory requirements, consult with a compliance specialist to ensure your end-to-end process — including physical inventory management and documentation — meets the applicable standards. DateCue is one part of a broader compliance system, not a complete compliance solution on its own.

Building an audit trail

DateCue's email actions create timestamped records of when workflows fired. For formal compliance documentation, the email history (in whatever email system receives the alerts) provides a log of when each product was flagged and when it was archived. For more formal audit requirements, pair DateCue with your store's order management or ERP system to capture these events in your primary record-keeping system.

Frequently asked questions

What product categories does this apply to?

Any product with a regulated sell-by or use-by date. Common categories: packaged food and beverages, dietary supplements and vitamins, over-the-counter medications, cosmetics and skincare with preservative-dependent shelf life, agricultural products, and medical devices with sterility expiry dates. If your product has a regulatory expiry requirement, this system applies.

Can DateCue help me comply with specific food safety regulations?

DateCue automates the Shopify-side removal of products past their expiry date. Whether that removal is sufficient for compliance with a specific regulation depends on the regulation itself and how your fulfilment and inventory processes work. DateCue covers storefront removal — your warehouse and fulfilment processes need their own controls to ensure expired stock isn't shipped.

What if I want to keep selling a product after its display date but before its true expiry?

Set the custom.expiry_date metafield to the date at which you want to stop selling — not necessarily the printed expiry date on the packaging if those differ. DateCue acts on whatever date you set. The metafield value is your business's sell-by decision, which may be more conservative than the manufacturer's stated expiry.

Can I get a daily digest of all upcoming expiries instead of per-product alerts?

DateCue sends alerts per product, not as a summary digest. For a daily report view of upcoming expiries across your whole catalogue, you'd need a custom Shopify report or an analytics tool that queries metafield data. DateCue handles the automation side; reporting can be handled separately.

Ready to automate your compliance process?

DateCue removes expired products on time, every time, without manual intervention.

Start your free trial

14-day free trial. No credit card required.