View Single Post
  #2  
Old 04-28-2011, 05:58 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: if/then for wholesale customers...

Add
Code:
$smarty->assign('user_account', @$user_account);
right before this
Code:
func_display('customer/home.tpl', $smarty);
in the "<xcart_dir>/home.php" script.

After surround the price code in products.tpl template with e.g.:
Code:
{if $user_account.membershipid eq 0} ... {/if}

this will show the price only for customers without any membership level.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote