Explore Folio3
Explore Folio3 Network
×

Agentic AI, computer vision, generative AI

Web, mobile, and custom software

Engineering, warehousing, analytics

Farm, livestock, and crop software

Traceability and food supply chain

EHR, telehealth, and interoperability

ERP implementation and support

Dynamics 365 and Business Central

CRM consulting and integration

B2B ecommerce, ERP integrations and migrations

Last Updated: October, 2026

We Need Custom Discount Logic That Shopify’s Native Rules Can’t Handle, Like Buy X Get Y Across Specific Collections With Member Tiers. Is That Shopify Functions Territory And What Does It Cost?

5 MIN READ

Yes, this is Shopify Functions territory if native discounts and public apps cannot express it. A Function can read cart lines, customer data and metafields, so member tiers and collection rules are possible, though custom apps need Plus. Plan roughly $5,000 to $15,000 to build one rule, plus upkeep for API version changes. Use an app when the rule is standard and the licence costs less.

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. A reasonable planning band for one rule like this is $5,000 to $15,000 to build, plus upkeep for API version changes. Custom apps with Functions need Plus, while public apps built on Functions work on any plan.

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
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.

Discount Function facts
  • 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.

1
Store the member tier

How: keep the tier as a customer metafield or tag that the Function can read.

2
Define eligible collections

How: express the collection rules through product data the Function can read.

3
Apply the offer

How: the Function reads cart lines and tier, then discounts or frees the qualifying items.

4
Set stacking rules

How: decide how the discount combines with codes and other automatic discounts.

5
Test the edge cases

How: mixed carts, tier changes, partial returns and sale items.

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 Planning band, depending on logic, admin interface and testing
Published reference About €24,000 for four Functions Around €6,000 each in one agency example
Upkeep About €800 a month in that example Covers API version updates and small logic changes
App alternative Often under about €200 a month Marketplace licence for standard rules
Maintenance implications
  • 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.

Use an app if
The rule is standard
✓
An app already offers the rule.
✓
The licence costs less than a build.
✓
You do not need custom admin screens.
✓
You can accept the app’s update pace.
Build a Function if
The rule is yours alone
✕
Tiers and collections combine in a unique way.
✕
You need your own admin interface.
✕
You want control over performance and updates.
✕
Several apps would be needed to fake it.

Rule of thumb: if you need more than one app to imitate a single rule, a custom Function is usually cheaper over a year.

Custom logic in practice

Easilocks (Shopify Plus, B2C and B2B)

Shopify Functions differentiate payment and delivery methods for B2B and B2C buyers on one store.

Read more: our Easilocks Shopify Plus case study

Rose Inc (Shopify, custom promotions)

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

Next step

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

Do I need Shopify Plus for custom Functions?

Custom apps that use Functions or fetch external data need Plus. Public apps built on Functions work on any plan.

Can Functions handle member tiers?

Yes. A Function can read customer data and metafields, so a tier can be stored on the customer and used in the rule logic.

How many discount Functions can a store run?

Up to 25 active discount Functions per store.

How much does a custom discount Function cost?

A reasonable planning band 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 with about €800 a month for upkeep. Our Shopify Plus development agency team can scope it.

When should I use an app instead?

When the rule is standard, an app covers it and the licence costs less than building and maintaining a Function.

People Also Ask

1. What are Shopify Functions?
2. Can Shopify do buy X get Y across collections?
3. Do Shopify Functions require Shopify Plus?
4. How do I create a custom discount in Shopify?
5. How much do Shopify Functions cost to build?

NOC Folio3

Talk to Folio3

If this question maps to a live catalog, ERP or checkout constraint, Folio3 ecommerce experts can review the architecture.

Folio3 eCommerce Experts

Have a Similar B2B Commerce Challenge?

Talk to a team that's connected ERP, pricing, and inventory systems for 150+ B2B brands across Shopify Plus, BigCommerce, and Adobe Commerce.

Related Answers

Should We Hire Dedicated Shopify Plus Developers On A Monthly Basis Or Engage An Agency Per Project? We Have A Long Roadmap And No In-House Shopify Skill.

If you have a long Shopify roadmap, book a discovery call to model dedicated, project and hybrid options before you sign a contract.

How Long Does A Shopify Plus Build Take From Kickoff To Launch For A Brand With A Large Catalogue, One ERP Integration And A Custom Design?

If you are planning a build, book a discovery call to review your catalogue, design and ERP and get a phase-by-phase timeline.

Our Shopify Plus Checkout Conversion Dropped After We Added A Third-Party App For Shipping Rates. How Do We Diagnose Whether It’s The App Or Something Else?

If checkout conversion has dropped, book a discovery call to run a checkout performance audit before you change more apps or settings.
.