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 08:03] – [Cart] adamv:2.0:cheat_sheet [2019/11/28 08:09] – [Cart] adam
Line 374: Line 374:
   ; ''context''   ; ''context''
   : **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}.is_taxable''\\ ''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.   : **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:+  : **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'', ''is_taxable'' and ''name''.<code javascript>"coupons": { 
-      "code1": { +    "code1a": { 
-          "name": "Test+        "amount": -1, 
-      }, +        "id": "4704984", 
-      "code2": [ +        "is_applied": true, 
-          +        "is_taxable": false, 
-              "name": "Test+        "name": "Coupon 2
-          }, +    }, 
-          +    "code2a": [ 
-              "name": "Test2+        
-           +            "amount": -1, 
-      +            "id": "4704985", 
-  }</code>+            "is_applied": true, 
 +            "is_taxable": false, 
 +            "name": "Coupon 1
 +        }, 
 +        
 +            "amount": -1, 
 +            "id": "4704988", 
 +            "is_applied": true, 
 +            "is_taxable": false, 
 +            "name": "Coupon 2
 +        
 +    
 +}</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