<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/add-prerequisites-to-product-discount-functions-o0abmzxky" -->

---
title: Add Prerequisites to Product Discount Functions | daily.dev
description: Shopify's discount functions now support prerequisites for product discount candidates, enabling the 'Buy X' portion of Buy X, Get Y (BXGY) promotions. A new...
canonical: https://daily.dev/posts/add-prerequisites-to-product-discount-functions-o0abmzxky
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Add Prerequisites to Product Discount Functions | daily.dev
og:description: Shopify's discount functions now support prerequisites for product discount candidates, enabling the 'Buy X' portion of Buy X, Get Y (BXGY) promotions. A new...
og:url: https://daily.dev/posts/add-prerequisites-to-product-discount-functions-o0abmzxky
og:image: https://api.daily.dev/og/posts/O0ABMZxKy.png
og:image:alt: Add Prerequisites to Product Discount Functions
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Prerequisites to Product Discount Functions

**[Shopify Developer changelog](https://daily.dev/sources/shopifychangelog)** · 1 min read · 0 upvotes · 0 comments

## Summary

Shopify's discount functions now support prerequisites for product discount candidates, enabling the 'Buy X' portion of Buy X, Get Y (BXGY) promotions. A new `prerequisites` field has been added to product discount candidates, where each prerequisite specifies a cart line ID and the required quantity of items needed to qualify for the discount.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/add-prerequisites-to-product-discount-functions>

## Similar posts on daily.dev

- [Discount Function support for rejecting discount codes](https://daily.dev/posts/discount-function-support-for-rejecting-discount-codes-9fhkndhiw) · Shopify Developer changelog · 0 upvotes · 0 comments
- [How to Set up WooCommerce Dynamic Pricing \(Step by Step\)](https://daily.dev/posts/how-to-set-up-woocommerce-dynamic-pricing-step-by-step--lzfadhv3t) · WordPress Beginner · 0 upvotes · 0 comments
- [Purchase-type filtering now enforced for app discounts](https://daily.dev/posts/purchase-type-filtering-now-enforced-for-app-discounts-xmtdnhb9j) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Shopify App Pricing: Plan Feature Targeting](https://daily.dev/posts/shopify-app-pricing-plan-feature-targeting-7f1jx9xly) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Shopify taught AI to spot duplicate products. Here’s why retailers are scrambling.](https://daily.dev/posts/shopify-taught-ai-to-spot-duplicate-products-here-s-why-retailers-are-scrambling--4wa9y33v1) · The New Stack · 0 upvotes · 0 comments

---

Tags: [#ecommerce](https://daily.dev/tags/ecommerce), [#shopify](https://daily.dev/tags/shopify)

[View this post on daily.dev](https://daily.dev/posts/add-prerequisites-to-product-discount-functions-o0abmzxky)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Add Prerequisites to Product Discount Functions","url":"https://daily.dev/posts/add-prerequisites-to-product-discount-functions-o0abmzxky","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/add-prerequisites-to-product-discount-functions-o0abmzxky"},"datePublished":"2026-04-07T18:01:06.569Z","dateModified":"2026-04-07T18:04:24.159Z","description":"Shopify's discount functions now support prerequisites for product discount candidates, enabling the 'Buy X' portion of Buy X, Get Y (BXGY) promotions. A new...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shopify Developer changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shopify Developer changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/aefcb5d2c1ca4b45b5d2256b9e2a9cc3","url":"https://daily.dev/sources/shopifychangelog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/add-prerequisites-to-product-discount-functions-o0abmzxky","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ecommerce,shopify","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shopify Developer changelog","item":"https://daily.dev/sources/shopifychangelog"},{"@type":"ListItem","position":3,"name":"Add Prerequisites to Product Discount Functions"}]}
```

