Tags:
- Functions
- 2026-04
Add Prerequisites to Product Discount Functions
Discount functions now support prerequisites for product discount candidates, allowing you to define the "Buy X" portion of a Buy X, Get Y (BXGY) discount. In a BXGY discount, customers must purchase a specified quantity of one product (Buy X) to receive a discount on another product (Get Y).
What's New:
- A
prerequisitesfield has been added to product discount candidates. - Each prerequisite is defined as a
, which includes:id: The identifier for the cart line used as the prerequisite.quantity: The number of items from that cart line required to qualify for the discount.
For more detailed information, please visit the Discount Functions documentation.
Was this section helpful?