View Single Post
  #1  
Old 11-30-2012, 08:58 AM
 
arren123 arren123 is offline
 

Member
  
Join Date: Nov 2012
Posts: 14
 

Default How to get email address of logged on user?

Sorry, I'm still new to editing X-cart. Hopefully this will be an easy one. I just want to get the email address of the logged on user so I can build an html link.

I'm editing the new archive template
/common_files/modules/News_Management/customer/news_archive.tpl

Here is the code I've written for test purposes.

Code:
{capture name=unsubdialog} <table cellspacing="1" class="data-table"> <tr> <td><a href="https://store.sweet-sugar-gliders.com/mail/unsubscribe.php?email={$email}">Click here to unsubscribe</a></td> </tr> <tr> <td>{$lng.eml_unsubscribe_information} {$http_location}/mail/unsubscribe.php?email={$email}</td> <tr> </table> {/capture} {include file="customer/dialog.tpl" title="Unsubscribe" content=$smarty.capture.unsubdialog}

What do I put in place of {$email} so it will return the e-mail address?

Arren
X-Cart Pro v 4.5.4
Reply With Quote