View Single Post
  #7  
Old 02-19-2013, 09:52 AM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default Re: How to change welcome message based on membership?

it's working!!! Thanks a lot Cherie.

So here is the complete solution.
Show message A if user member is still pending
Show message B or nothing if membership is activated


Step 1:. In file include/check_useraccount.php

I added at the the end of the source code:

Quote:
$smarty->assign("user_membershipid",$user_account['membershipid']);

Step 2:

In file 2-columns/customer/main/welcome.tpl

Add the code

Quote:

{if $user_membershipid eq 6} eq 0}

<p> MESSAGE A </p>
{else}
<p>MESSAGE B </p>
{/if}
__________________
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!
Reply With Quote