Product Discounts With Tags On Same Cart Line Input
Controls which product discounts can apply together on the same cart line. By default, only one product discount applies per line. Available only on a Shopify Plus plan.
For discounts to apply together, they must match tags in both directions. Each
discount has two tag sets: the tags that identify the discount, and the tags that
it agrees to apply with. Use the tags field on the discount input to set the
discount's own tags. Use this input object to set the tags that the discount can
apply with. Two discounts apply together only if each one allows at least one tag
that the other is tagged with. Any number of product discounts can apply to the
same line if this two-way match holds for every pair in the group.
Example: Discount A is tagged with LOYALTY and allows SEASONAL, and Discount B
is tagged with SEASONAL and allows LOYALTY. They apply together. To add a
third discount, it must meet the same mutual-match rule with both A and B.
Buy X Get Y discounts stack only on the customer-gets products (GY), not the customer-buys products (BX). See Limitations for discount combinations for details.
Anchor to FieldsFields
- add ([String!])
- remove ([String!])
- •[String!]
The tags to add to this discount's combination list. This field doesn't add tags to the discount itself. To change the tags on the discount, use the discount input's
tagsfield or theandmutations.If another product discount has a matching tag and also allows at least one tag on this discount, then both discounts can apply to the same cart line.
- Anchor to removeremove•[String!]
The tags to remove from this discount's combination list. This field doesn't remove tags from the discount itself. To change the tags on the discount, use the discount input's
tagsfield or theandmutations.If this discount and another product discount still match tags in both directions after the removal, then both discounts can still apply to the same cart line.
Anchor to Input objects using this inputInput objects using this input
- Anchor to DiscountCombinesWithInput.productDiscountsWithTagsOnSameCartLineDiscount•INPUT OBJECT
Combines With Input.productDiscountsWithTagsOnSameCartLine The input fields to determine which discount classes the discount can combine with.