Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
v:2.0:coupons_and_discounts [2019/11/28 07:57] – [Coupon Codes] adamv:2.0:coupons_and_discounts [2019/11/28 08:17] – [Coupon Codes] adam
Line 183: Line 183:
   : If checked, this option allows codes from this coupon to be shared with other coupons on the store. This can allow a single code added to the cart to add multiple different coupons at the same time. The ''combinable'' checkbox will be ignored for coupons that have ''shared codes'' enabled and also share the same code that is being added. All other validations will apply as normal though. If at least one of the coupons linked to the shared code is added, then any that generate an error will fail silently, just adding those coupons to the cart that were successful. If all coupons from the shared code fail though, then the errors will be displayed.   : If checked, this option allows codes from this coupon to be shared with other coupons on the store. This can allow a single code added to the cart to add multiple different coupons at the same time. The ''combinable'' checkbox will be ignored for coupons that have ''shared codes'' enabled and also share the same code that is being added. All other validations will apply as normal though. If at least one of the coupons linked to the shared code is added, then any that generate an error will fail silently, just adding those coupons to the cart that were successful. If all coupons from the shared code fail though, then the errors will be displayed.
   : Codes that are shared with other coupons will include a ''[s]'' note next to the code in the admin summary for the coupon. Hovering over that note will show the names of the coupon(s) that this code is shared with.   : Codes that are shared with other coupons will include a ''[s]'' note next to the code in the admin summary for the coupon. Hovering over that note will show the names of the coupon(s) that this code is shared with.
 +  : Note that shared coupons are handled slightly differently in the cart JSON object, as an array of coupons linked to the coupon code. [[v:2.0:templates:view_data#cart|Review the structure on the template view data]] for details on how it looks.
   ; Multiple Codes Allowed?   ; Multiple Codes Allowed?
   : If this checkbox is checked, then multiple codes from the current coupon can be added to the cart at the same time. If unchecked, an error will be returned if attempting to add a code that belongs to a coupon that is already present on the cart.   : If this checkbox is checked, then multiple codes from the current coupon can be added to the cart at the same time. If unchecked, an error will be returned if attempting to add a code that belongs to a coupon that is already present on the cart.

Site Tools