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

If statement help - wholesale

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 05-22-2007, 01:45 PM
 
joshmoran12020 joshmoran12020 is offline
 

Member
  
Join Date: May 2007
Posts: 13
 

Default Re: If statement help - wholesale

Thank you Jon. You're the first person to give me a helpful answer (besides balinor). I really appreciate that.
Also just to verify for anyone else on 4.1.7... The above coding works entirely.

Thanks again Jon
__________________
x-cart-4.1.7gold
Josh
Reply With Quote
  #22  
Old 10-21-2009, 05:25 AM
  TBone's Avatar 
TBone TBone is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 38
 

Default Re: If statement help - wholesale

If you still want to use the name of the membership instead of the id use this code:

Code:
$userinfo = func_query_first("SELECT A.login,A.firstname,A.lastname,B.membership FROM $sql_tbl[customers] A, $sql_tbl[memberships] B WHERE A.login='$login' and A.membershipid = B.membershipid"); $smarty->assign("userinfo", $userinfo);

and this in your .tpl file:

Code:
{if $userinfo.membership eq "Gold Member"}
__________________
_____________________________________________
www.webcreatives.nl | X-Cart Shops
X-Cart Versions 4.1.x | 4.2.x | 4.3.x | 4.4.x
Parallelweg 124-14, 1948 NN BEVERWIJK
The Netherlands
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 08:11 PM.

   

 
X-Cart forums © 2001-2020