View Single Post
  #12  
Old 10-26-2011, 06:06 AM
 
jwpenn jwpenn is offline
 

Member
  
Join Date: Jul 2008
Posts: 13
 

Thumbs up Re: if/then for wholesale customers...

Quote:
Originally Posted by qualiteam
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.


Thanks this worked!
__________________
X-cart Gold
Version 4.1.9
Reply With Quote