View Single Post
  #1  
Old 07-08-2015, 10:57 PM
  hdpixel's Avatar 
hdpixel hdpixel is offline
 

Newbie
  
Join Date: Jul 2007
Posts: 9
 

Default 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.
__________________
X-Cart Gold 4.5.x/4.4.x/4.31/4.19
Reply With Quote