Target object
A target of a discount, which determines which cart line(s) the discount will affect.
A discount can have a collection of either ProductVariantTarget
s or CartLineTarget
s, but not both.
Multiple targets with the same type and ID are the same as a single target of that type and ID with their
quantities added together, or null
if any of those targets have a quantity of null
.
See the Product Discount API reference for examples.
Fields
-
cartLine (
CartLineTarget
)A discount Target that applies to a specific cart line, up to an optional quantity limit.
-
productVariant (
ProductVariantTarget
)A discount Target that can apply to any cart lines for a specific product variant, up to an optional quantity limit.
A target of a discount, which determines which cart line(s) the discount will affect.
A discount can have a collection of either ProductVariantTarget
s or CartLineTarget
s, but not both.
Multiple targets with the same type and ID are the same as a single target of that type and ID with their
quantities added together, or null
if any of those targets have a quantity of null
.
See the Product Discount API reference for examples.
Fields
-
cartLine (
CartLineTarget
)A discount Target that applies to a specific cart line, up to an optional quantity limit.
-
productVariant (
ProductVariantTarget
)A discount Target that can apply to any cart lines for a specific product variant, up to an optional quantity limit.
A target of a discount, which determines which cart line(s) the discount will affect.
A discount can have a collection of either ProductVariantTarget
s or CartLineTarget
s, but not both.
Multiple targets with the same type and ID are the same as a single target of that type and ID with their
quantities added together, or null
if any of those targets have a quantity of null
.
See the Product Discount API reference for examples.
Fields
-
cartLine (
CartLineTarget
)A discount Target that applies to a specific cart line, up to an optional quantity limit.
-
productVariant (
ProductVariantTarget
)A discount Target that can apply to any cart lines for a specific product variant, up to an optional quantity limit.
A target of a discount, which determines which cart line(s) the discount will affect.
A discount can have a collection of either ProductVariantTarget
s or CartLineTarget
s, but not both.
Multiple targets with the same type and ID are the same as a single target of that type and ID with their
quantities added together, or null
if any of those targets have a quantity of null
.
See the Product Discount API reference for examples.
Fields
-
cartLine (
CartLineTarget
)A discount Target that applies to a specific cart line, up to an optional quantity limit.
-
productVariant (
ProductVariantTarget
)A discount Target that can apply to any cart lines for a specific product variant, up to an optional quantity limit.
The target for a discount. A discount's collection of targets determines which cart line(s) will have the discount value applied.
A discount can have one or more ProductVariantTarget
s.
Fields
-
productVariant (
ProductVariantTarget
)A discount Target that can apply to any cart lines for a specific product variant, up to an optional quantity limit.
The target for a discount. A discount's collection of targets determines which cart line(s) will have the discount value applied.
A discount can have one or more ProductVariantTarget
s.
Fields
-
productVariant (
ProductVariantTarget
)A discount Target that can apply to any cart lines for a specific product variant, up to an optional quantity limit.