| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Wholesale userid queries | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() heres a starter
http://forum.x-cart.com/viewtopic.php?p=69941#69941 user type B is for partners you would need to check something like Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|