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

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
v:2.0:session_variables [2018/08/02 15:57] – [How to Set Session Variables] marijav:2.0:session_variables [2018/08/02 15:57] – [How to Access Session Variables] marija
Line 46: Line 46:
 ===== How to Access Session Variables ===== ===== How to Access Session Variables =====
 Given the intended usage of session variables, it shouldn't be surprising that these values are not displayed to the user at any point, but they are accessible via the [[.:json|JSON cart object]] during the user's visit, and via the [[.:transaction_xml_datafeed|transaction XML datafeed]] or [[.:api|the API]] after the transaction is completed. Given the intended usage of session variables, it shouldn't be surprising that these values are not displayed to the user at any point, but they are accessible via the [[.:json|JSON cart object]] during the user's visit, and via the [[.:transaction_xml_datafeed|transaction XML datafeed]] or [[.:api|the API]] after the transaction is completed.
 +
 +For the example above, you can access the value with twig like this ''{{ custom_fields.referrer.value }}''
  
  
  
  

Site Tools