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 revision Previous revision
v:2.0:session_variables [2018/08/02 15:57]
marija [How to Access Session Variables]
v:2.0:session_variables [2018/08/02 15:58] (current)
marija [How to Access Session Variables]
Line 47: Line 47:
 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 }}''​+For the example above, you can access the value with twig like this <​code>​{{ custom_fields.referrer.value }}</​code>​
  
  
  
  

Site Tools