Hello everyone,
How do I access the email address in all the x-cart pages? I am trying to do this on x-cart Version 4.5.5. See sample code below.
I get the email address value on the registration and cart page, and can assign the email address to a javascript variable. However, it doesn't work on the product and category page. See sample code below.
Code:
<script type="text/javascript">
{literal}
ScarabQueue.push(['setCustomerId', '{/literal}{$logged_userid}{literal}']);
ScarabQueue.push(['setEmail', '{/literal}{$userinfo.login|default:$userinfo.uname|escape}{$order.email}{literal}']);
{/literal}
</script>
RESULT EXPECTED
============
<script type="text/javascript">
ScarabQueue.push(['setCustomerId', '1111']);
ScarabQueue.push(['setEmail', 'email@address.com']);
</script>
Any Ideas?
Thank you very much.