X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   If statement help - wholesale (https://forum.x-cart.com/showthread.php?t=30979)

joshmoran12020 05-22-2007 01:45 PM

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

TBone 10-21-2009 05:25 AM

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"}


All times are GMT -8. The time now is 08:06 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.