Re: How to change welcome message based on membership?
Hi Cherie, thanks for your help, but looks like I'm doing something wrong.
Step 1:. In file include/check_useraccount.php
I added at the the end of the source code
$smarty->assign("user_membershipid",$user_account['membershipid']);
Step 2:
In file 2-columns/customer/main/welcome.tpl
I added the code
{if $user_account.membershipid eq 6}
<p> MESSAGE A </p>
{else}
<p>MESSAGE B </p>
{/if}
Still not working, it's always showing message A, no matter the it's pending membership or not.
Sorry to bother you, but I'm struggling with the smarty codes.
Thanks a lot for your help
__________________
www.ChiMassager.com
X-cart Version 4.44
www.SEOMarketing30days.com
--> Download FREE SEO marketing Ebook (valued $50)
Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic!
|