Combination Card
The CombinationCard
component enables app users to select other discount classes this discount can combine with.
Example code
Anchor link to section titled "Example code"
Properties
Anchor link to section titled "Properties"Name | Type | Description | Required |
---|---|---|---|
discountClass | DiscountClass |
The class of the current discount (product , order or shipping ). |
Yes |
discountDescriptor | string |
The discount title for automatic discounts, or the discount code for code discounts. | Yes |
combinableDiscountTypes | Field<CombinableDiscountTypes> |
Used for setting which discount classes can be combined with the discount | Yes |
combinableDiscountCounts | CombinableDiscountCounts |
Counts of existing combinable discounts on the shop. | No |
discountId | string |
The Shopify GID of the current discount. | No |
CombinableDiscountCounts
Anchor link to section titled "CombinableDiscountCounts"Name | Value | Description |
---|---|---|
productDiscountsCount | number |
The total number of combinable product discounts for the current shop. |
orderDiscountsCount | number |
The total number of combinable order discounts for the current shop. |
shippingDiscountsCount | number |
The total number of combinable shipping discounts for the current shop. |
DiscountClass
Anchor link to section titled "DiscountClass"Name | Value | Description |
---|---|---|
Product | PRODUCT |
The discount applies to specific products or product variants. |
Order | ORDER |
The discount applies to the entire order. |
Shipping | SHIPPING |
The discount applies to shipping rates. |
Supported combinations
Anchor link to section titled "Supported combinations"DiscountClass | Can combine with |
---|---|
PRODUCT |
PRODUCT , SHIPPING |
ORDER |
SHIPPING |
SHIPPING |
PRODUCT , ORDER |