X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Email variable in product & category page (https://forum.x-cart.com/showthread.php?t=72412)

hdpixel 07-08-2015 10:57 PM

Email variable in product & category page
 
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.


All times are GMT -8. The time now is 11:55 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.