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 revision
Previous revision
v:2.0:cheat_sheet [2024/02/02 14:02] – [Cart] adamv:2.0:cheat_sheet [2025/01/27 18:40] (current) – [Standard Product Options] foxybrett
Line 23: Line 23:
   : **Accepts:** A full URI to an image, starting with ''http://'' or ''https://'', //or// a relative path to the image from the store's domain (as configured in the store settings). __Limited to 500 characters in length.__   : **Accepts:** A full URI to an image, starting with ''http://'' or ''https://'', //or// a relative path to the image from the store's domain (as configured in the store settings). __Limited to 500 characters in length.__
   : **Examples:** ''&image=http://example.com/path/to/image.jpg'', ''&image=local/path/to/image.png'', ''<input type="hidden" name="image" value="http://example.com/path/to/image.jpg">''   : **Examples:** ''&image=http://example.com/path/to/image.jpg'', ''&image=local/path/to/image.png'', ''<input type="hidden" name="image" value="http://example.com/path/to/image.jpg">''
-  : **Notes:** Images will //not// be resized, but they will automatically be securely cached, so you don't need to worry about security warnings.+  : **Notes:** Images will //not// be resized, but they will automatically be securely cached, so you don't need to worry about security warnings. Note also that Foxy's cache is short-term (hours to days), so if you're passing dynamically-generated images, you'll need to keep those images available on your end for Foxy to re-retrieve as necessary.
   ; ''url''   ; ''url''
   : **Description:** A URL for the product, displayed in the cart.   : **Description:** A URL for the product, displayed in the cart.
Line 94: Line 94:
   : **Description:** <wrap round tip>You may add any additional attributes to any product you’d like.</wrap> For example, you can add ''&color=green&size=XXL''. If an attribute is passed in with a name not otherwise reserved, it will be added as a product option.   : **Description:** <wrap round tip>You may add any additional attributes to any product you’d like.</wrap> For example, you can add ''&color=green&size=XXL''. If an attribute is passed in with a name not otherwise reserved, it will be added as a product option.
   : **Accepts:** Any characters.  Custom name attribute limited to 100 characters and the value is limited to 1024 characters.   : **Accepts:** Any characters.  Custom name attribute limited to 100 characters and the value is limited to 1024 characters.
 +  : **Notes:** A single product can have a maximum of 100 custom product options
      
 + ==== Special Product Options ====
      
 +These options are specified at the product level, but serve a special purpose, separate to the cart itself, such as for analytics
 +
 +  ; ''_ga_*''
 +  : **Description:** Google Analytics product level attributes. If set, will be utilised in any Google Analytics calls made through our native integration that includes item details.
 +  : **Supported Option Names:** ''_ga_item_id'', ''_ga_item_name'', ''_ga_affiliation'', ''_ga_item_brand'', ''_ga_item_category'', ''_ga_item_category2'', ''_ga_item_category3'', ''_ga_item_category4'', ''_ga_item_category5'', ''_ga_item_list_id'', ''_ga_item_list_name'', ''_ga_item_variant'', ''_ga_location_id''
 +  : **Accepts:** See the [[https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag#add_to_cart|GA documentation for reference]] for what the values should be. __Limited to 255 characters in length.__
 +  : **Example:** ''&_ga_item_category2=Clothing''
 +  : **Notes:** These attributes are hidden from the cart automatically, so customers will not see them visually on the cart, checkout or receipt, or in the administration.
 +
 +
 ==== Product Discounting Options ==== ==== Product Discounting Options ====
  
Line 489: Line 501:
   ; ''items[].code''   ; ''items[].code''
   : Product code or sku.   : Product code or sku.
 +  ; ''items[].parent_code''
 +  : Parent product code or sku.
   ; ''items[].delivery_type''   ; ''items[].delivery_type''
   : The delivery type of this product.   : The delivery type of this product.

Site Tools