Wholesale userid queries
Merry Christmas guys. :D
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 :-k 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. |
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:
{if $user_membership eq "membership_type"} |
All times are GMT -8. The time now is 05:46 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.