Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
v:2.0:session_variables [2018/08/02 15:57] – [How to Access Session Variables] marija | v:2.0:session_variables [2018/08/02 15:58] (current) – [How to Access Session Variables] marija |
---|
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> |
| |
| |
| |
| |