Yes, this is Functions territory, unless an app already covers it. Check native automatic discounts first, then public apps built on Functions, and build a custom Function only when neither fits. A buy-X-get-Y rule across specific collections with member tiers is a good candidate, because it combines product rules with customer data.
Cost depends on rule complexity, the admin interface you need and testing.
Native, app or custom Function
Work down the table and stop at the first row that fits.
| Option | Good for | Limits | Cost |
| Native automatic discount | Standard buy X get Y and percentage or amount off | Limited tier logic | Included in the plan |
| Public app built on Functions | Common tiered, volume and bundle rules | Fixed to what the app offers | Monthly licence, often under about €200 (roughly $230) |
| Custom Function | Unique rules, member tiers and collection logic | Needs Plus, a build and upkeep | Build cost plus maintenance |
What Functions can and cannot do for discounts
The limits matter as much as the features.
- One Function can apply product, order and shipping discounts.
- It reads cart lines, buyer identity and metafields on the cart, customer, company and products.
- Discounts can combine with others, based on the stacking rules set on the discount.
- A store can run up to 25 active discount Functions.
- Fetching outside data is limited to custom apps on Plus, and network access must be requested.
- Functions run independently, so they do not know about each other.
How your rule would work
Five steps turn the business rule into a tested discount.
How: keep the tier as a customer metafield or tag that the Function can read, set by your loyalty app, CRM or ERP. Check how soon a tier change reaches checkout.
How: have the Function check whether each cart line’s product is in the eligible collections, or mark eligible products with a tag or metafield.
How: the Function reads cart lines and tier, then discounts or frees the qualifying items.
How: decide how the discount combines with codes and other automatic discounts.
How: mixed carts, tier changes, partial returns and sale items.
A worked example of the rule
This is an illustration of how a rule like yours is written down, not a client rule.
- Rule: buy 2 items from Collection A and get 1 item from Collection B free, for Gold members only.
- Tier data: Gold is stored on the customer as a tag or metafield, set by your loyalty app, CRM or ERP.
- Logic: the Function checks the customer’s tier, counts qualifying items from Collection A in the cart, then discounts one item from Collection B.
- Tests: a Silver member with the same cart, a cart with sale items, a tier change before checkout and a cart that also has a discount code.
What it costs and what it takes to keep it
Budget for the build and for the first year of upkeep.
| Item | Planning range | Notes |
| Build, one discount Function | $5,000 to $15,000 | Folio3 planning estimate, depending on logic, admin interface and testing |
| Published reference | About €24,000 for four Functions (roughly $26,000 to $28,000) | Around €6,000 each (roughly $6,500 to $7,000) in one agency example. Euro figures are approximate USD conversions. |
| Upkeep | About €800 a month (roughly $900) for four Functions in that example | Covers API version updates and small logic changes |
| App alternative | Often under about €200 a month (roughly $230) | Marketplace licence for standard rules |
- Each Function is tied to an API version, and Shopify typically gives about 12 months to migrate.
- Every deploy creates a version you can roll back.
- Monitor behavior with the Functions logs.
- Name an owner for future rule changes.
App or build
Choose on how standard your rule is, not on how new it sounds.
Rule of thumb: if you need more than one app to imitate a single rule, a custom Function is usually cheaper over a year.
How to vet an agency for custom discount logic
Four questions separate agencies that have shipped this from those that have not.
- Ask for a live example of custom discount logic and how it was tested.
- Ask how tier data reaches checkout and how quickly a tier change takes effect.
- Ask how stacking with codes and other automatic discounts is handled.
- Ask who maintains the Function when Shopify changes the API version, and what that costs.
Before you ask for a quote
Having these six answers ready makes a cost range faster and more accurate.
- The rule in one sentence, with the exact items that must be bought and the reward.
- Your tier names, and the system that decides which tier a customer is in.
- The collections involved, and whether they change often.
- How the discount should combine with codes and other automatic discounts.
- Your Shopify plan, since custom apps with Functions need Plus.
- The edge cases that matter most, such as returns, sale items and tier changes.
Custom logic in practice
Shopify Functions differentiate payment and delivery methods for B2B and B2C buyers on one store.
Read more: our Easilocks Shopify Plus case study
A custom mini-cart with pre-checkout promo validation and bundles built as variants. Promo code redemption rose from 18 percent to 32 percent, and the custom build saved more than $500 a month in app costs.
Read more: our Rose Inc Shopify case study
Share the exact discount rule, your tiers and your collections, and our Shopify Plus development agency team will tell you whether native settings, an app or a custom Function fits, with a cost range.
Frequently Asked Questions
Custom apps that use Functions or fetch external data need Plus. Public apps built on Functions work on any plan.
Yes. A Function can read customer data and metafields, so a tier can be stored on the customer and used in the rule logic.
Up to 25 active discount Functions per store.
Folio3’s planning estimate for one rule is $5,000 to $15,000 to build, depending on logic, admin interface and testing. One published agency example put four Functions at about €24,000 (roughly $26,000 to $28,000) with about €800 a month (roughly $900) for upkeep across all four. Our Shopify Plus development agency team can scope it.
When the rule is standard, an app covers it and the licence costs less than building and maintaining a Function.
Small pieces of code that customize discount, shipping and payment logic at checkout, running on Shopify’s infrastructure.
Native automatic discounts handle buy X get Y on specific products or collections. Member tiers are where you usually need a public app built on Functions or a custom Function.
Check native discounts first, then public apps built on Functions, and build a custom Function only if neither fits.
Public apps built on Functions work on any plan. A custom app that uses Functions, such as a bespoke member-tier discount, needs Shopify Plus.
Sources and further reading
Shopify’s own documentation is the reference for the platform limits on this page.









