Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Email variable in product & category page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:50 AM.

   

 
X-Cart forums © 2001-2020