Skip to main content
Anchor to ProductDiscountsWithTagsOnSameCartLineInput

ProductDiscountsWithTagsOnSameCartLineInput

input_object

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.

•[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 tags field or the tagsAdd and tagsRemove mutations.

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.

•[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 tags field or the tagsAdd and tagsRemove mutations.

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.


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•INPUT OBJECT

The input fields to determine which discount classes the discount can combine with.


Was this section helpful?