| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
have promo banner image hidden from wholesale members | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
have promo banner image hidden from wholesale members
x-cart version 4.4.6.
I am setting up a shipping promo. Flat $5.00 shipping on orders over $100. I am creating a banner image that will be displayed across the top of the pages. I want to set a conditional statement that will hid the banner when a wholesale member logs in. I was trying something like this... Code:
It isn't working so I'm not sure what I need to use instead. Is this possible to do? Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#2
|
|||||||||
|
|||||||||
Re: have promo banner image hidden from wholesale members
You should only need the membershipid test, but try displaying it to see if it is present.
|
|||||||||
#3
|
|||||||
|
|||||||
Re: have promo banner image hidden from wholesale members
Hi Cherie,
How do I display it to check? I tried looking in webmaster mode (variables) and don't see a membershipid listed. Is there a different/better way to check?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#4
|
|||||||||
|
|||||||||
Re: have promo banner image hidden from wholesale members
membership is part of user account info. So there is no direct membershipid variable, it will be userinfo.membershipid or user_account.membershipid or similar. Also this will apply to logged in customers only. All non-logged in customers will still see the banner which means your wholesale customers will see it until logged in - doesn't make much sense
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: have promo banner image hidden from wholesale members
{$membershipid}
http://www.smarty.net/docs/en/language.syntax.variables.tpl If membershpid is not in an existing array like $userinfo then you may have to go get it, like this: https://forum.x-cart.com/showthread.php?p=353774 |
|||||||||
#6
|
|||||||
|
|||||||
Re: have promo banner image hidden from wholesale members
Thanks Steve and Cherie,
I added Code:
Then I tried using both Code:
Code:
logged in with my wholesale account and the banner still is showing up. Any idea what I am missing? As far as the wholesale accounts seeing it before they log in, I'm not too worried about it. I do have the qualifier $5 shipping on "RETAIL" orders but I thought it would be nice to hide it once they log in so it isn't sticking out like a sore thumb as they are placing their orders.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
#7
|
|||||||||
|
|||||||||
Re: have promo banner image hidden from wholesale members
You assigned to user_membershipid which should make the following work:
{$user_membershipid} |
|||||||||
#8
|
|||||||
|
|||||||
Re: have promo banner image hidden from wholesale members
ah, and so it does. Thanks so much.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3 mods: reCaptcha running on UNIX www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2 mods: reCaptcha cdseo pro running on UNIX |
|||||||
|
|||
X-Cart forums © 2001-2020
|