Templates / Check Shopify discounts against EU price rules with metafields and Gmail

Check Shopify discounts against EU price rules with metafields and Gmail

Ready for 3.0

by Melbin Francis ✓ · 0 views · created 2026-10-01 · CRM

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 41 nodes and runs on Shopify events (plus 1 other trigger). Along the way it connects Shopify and Gmail.

How it runs

Trigger: On Shopify events (plus 1 other trigger).

  1. Set Pricing Rules (Edit Fields (Set)): sets 10 fields: shop_subdomain, api_version, owner_email…
  2. One Product Or The Whole Shop? (If): checks a condition and branches into true / false
  3. One Item Per Variant (Split Out): splits a list into separate items
  4. Read Every Product (Shopify): get many (product)
  5. Read The Variant From Shopify (HTTP Request): calls an HTTP API (POST)
  6. Did Shopify Answer? (If): checks a condition and branches into true / false
  7. Skip Variants That Were Deleted (Filter): keeps only the items that match a condition
  8. Stop: Shopify Refused The Read (Stop and Error): stops the run with an error
  9. Read Price And History (Edit Fields (Set)): sets 8 fields: variant_id, product_id, product_title…
  10. Did The Price Change Today? (Edit Fields (Set)): sets 3 fields: on_sale, history_changed, sale_started

…plus 29 more steps. See the full node list below.

Services it uses

ShopifyGmail

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (15)

From the author

Quick overview In the EU, a discount must show as its old price the lowest price of the last 30 days. Shopify does not keep price history, so this workflow keeps it for you and fixes or flags discounts that break the rule. How it works 1. It runs every time a…

Excerpt from Melbin Francis's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.