Documentation You are here: start » v » 2.0 » cheat_sheet

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:cheat_sheet [2019/11/28 07:59] – [Cart] adamv:2.0:cheat_sheet [2019/11/28 08:03] – [Cart] adam
Line 375: Line 375:
   : **Description:**  Either ''cart'', ''checkout'' or ''receipt''. Used for configuring various display and functionality concerns. ''cart'' represents both Sidecart and full page cart versions.   : **Description:**  Either ''cart'', ''checkout'' or ''receipt''. Used for configuring various display and functionality concerns. ''cart'' represents both Sidecart and full page cart versions.
   ; ''coupons''\\ ''coupons.{coupon_code}''\\ ''coupons.{coupon_code}.amount''\\ ''coupons.{coupon_code}.id''\\ ''coupons.{coupon_code}.is_applied''\\ ''coupons.{coupon_code}.name''   ; ''coupons''\\ ''coupons.{coupon_code}''\\ ''coupons.{coupon_code}.amount''\\ ''coupons.{coupon_code}.id''\\ ''coupons.{coupon_code}.is_applied''\\ ''coupons.{coupon_code}.name''
-  : **Description:** Coupons associated with this cart. The ''{coupon_code}'' is the code value used by the customer to add the coupon. If the cart features codes that are shared between multiple coupons (for coupons that have "Shared Codes Allowed?" checked), these coupons will become a nested array of coupons, with the coupon code as the key.+  : **Description:** Coupons associated with this cart. The ''{coupon_code}'' is the code value used by the customer to add the coupon. 
 +  : **Note:** If the cart features codes that are shared between multiple coupons (for coupons that have the "Shared Codes Allowed?" checkbox checked), these coupons will become a nested array of coupons, with the ''{coupon_code}'' still as the key. The attributes within each array item will still be the same ''amount'', ''id'', ''is_applied'' and ''name''.<code javascript>coupons:
 +      "code1":
 +          "name": "Test" 
 +      }, 
 +      "code2":
 +          { 
 +              "name": "Test" 
 +          }, 
 +          { 
 +              "name": "Test2" 
 +           } 
 +      ] 
 +  }</code>
   ; ''custom_fields''\\ ''custom_fields.{name}''\\ ''custom_fields.{name}.is_hidden''\\ ''custom_fields.{name}.value''   ; ''custom_fields''\\ ''custom_fields.{name}''\\ ''custom_fields.{name}.is_hidden''\\ ''custom_fields.{name}.value''
   : **Description:** The custom fields associated with this transaction. The is_hidden bit will be true if the custom fields were passed in via the h: prefix. The ''{name}'' is the value of the name assigned to this custom field.   : **Description:** The custom fields associated with this transaction. The is_hidden bit will be true if the custom fields were passed in via the h: prefix. The ''{name}'' is the value of the name assigned to this custom field.

Site Tools