| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
$user_membership | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
$user_membership
I am trying to make a modification where it shows one menu on default BUT if you have "Wholesale" access then it would show a different menu... I thought it was as easy as the following code BUT for some reason it is not working
Code:
I created a membership level of Wholesale and then created a user and assigned them to the Wholesale level... but when I log onto the site I still see the retail menu??? Can someone point me in the right direction? Thanks Mike
__________________
Mike X-Cart 4.0.9 Gold (In Development) No Live Site Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b |
|||||||
#2
|
|||||||||
|
|||||||||
try
Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||||
|
|||||||||
http://forum.x-cart.com/viewtopic.php?p=69941#69941
http://forum.x-cart.com/viewtopic.php?t=15391&highlight=wholesale
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#4
|
|||||||
|
|||||||
Quote:
I have tried this also but it is still showing the retail options. So I added a line that just says {$user_membership} to see what was showing up and it never changes from nothing EVEN when a Wholesale customer is logged in. The $user_membership is linked to the "Membership Levels" we create in the admin panel correct? Mike
__________________
Mike X-Cart 4.0.9 Gold (In Development) No Live Site Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b |
|||||||
#5
|
|||||||
|
|||||||
I just tried installing a clean version of 4.0.12 and attached it to my existing database. I then put the following in welcome.tpl to see what would show up...
Code:
and no matter if I am on a regular account or a Wholesale (created in Membership Levels) Account it still displays nothing. I do know it is recognizing the level though because if I create a category and have it only shown to "Wholesale" accounts -- that is working... Mike
__________________
Mike X-Cart 4.0.9 Gold (In Development) No Live Site Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b |
|||||||
#6
|
|||||||||
|
|||||||||
try
Code:
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#7
|
|||||||
|
|||||||
Seems with a little more looking I was able to find the answer from Boomer in another thread...
Thanks for your help Shan Mike
__________________
Mike X-Cart 4.0.9 Gold (In Development) No Live Site Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b |
|||||||
#8
|
|||||||
|
|||||||
Other people search these forums months, somtimes years later looking for the same solutions, would be helpful to post the solution if you figured it out. This worked for me.
http://forum.x-cart.com/viewtopic.php?t=16090&highlight=membership+wholesa le Thanks!
__________________
Before you criticize someone, walk a mile in his shoes. That way, if he gets angry, he\'ll be a mile away - and barefoot. Version 4.0.9 |
|||||||
#9
|
|||||||
|
|||||||
That is the solution I had used... the thread you linked to...
point taken also that I should have linked to it
__________________
Mike X-Cart 4.0.9 Gold (In Development) No Live Site Server version: Apache/1.3.28 (Unix) FrontPage/5.0.2.2510 mod_ssl/2.8.15 OpenSSL/0.9.7a PHP-CGI/0.1b |
|||||||
#10
|
|||||||
|
|||||||
yep it's add
Code:
to your php ie product.php and Code:
to the template where you want the name of the membership group to appear ie product.tpl
__________________
Core version: 5.5.xx |
|||||||
|
|||
X-Cart forums © 2001-2020
|