View Single Post
  #1  
Old 12-22-2004, 12:10 AM
 
clubsrefinished clubsrefinished is offline
 

Member
  
Join Date: Dec 2004
Location: West Midlands, UK
Posts: 15
 

Default Wholesale userid queries

Merry Christmas guys.

On our site we deal with both the general public and more increasingly trade customers.

What I am looking to do is to give the appearance that the site has a trade only section with a trade login page for trade customers to login to.

Is it possible to have a login page which will only allow wholesale userids to login and restrict the login of other memberships? I am assuming that an 'if' statement would be required but does anyone know the 'if' statement that would work for this situation

Also is it possible to have certain sections visable only when a wholesale userid logs in i.e. within the head.tpl I want to display the default top_menu.tpl at all times except when a wholesale user logs in where I would want to to replace the default top_menu.tpl with an amended .tpl called top_menu_trade.tpl. I have attempted the following logic

{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}

{if $usertype eq "B"}
{include file="customer/top_menu_trade.tpl"}
{/if}

Unfortunatelty this does not work as there is no change whether a regular or trade userid logs in. Can anyone advise what am I doing wrong??

Any help would be greatly appreciated.
__________________
Mike
--------------
Version: 4.0.11 Live, RMA, AOM & X-Affiliate
PHP 4.3.4
MySQL server 3.23.58
MySQL client 3.23.58
Web server Apache/1.3.29 (Unix)

Site: http://www.clubsrefinished.co.uk
Reply With Quote