| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
if/then for wholesale customers... | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'd like to make it so that the products list (products.tpl I think, right?) shows the price for regular customers but DOES NOT show the price on that page for signed-in wholesale customers.
It seems like a simple enough if/then but I am having trouble with it. Any help? (my reasoning: for wholesale customers, there's a minimum quantity to get the wholesale price, so the products list shows the retail price instead of the price per piece if buying the minimum. so a product that retails at $4 and sells wholesale for $2 with a minimum order of 10 items looks on the products list like it costs $4, which is confusing for my wholesale customers. so i'd rather avoid that. alternately, I could add something that says "retail price per piece" if i can't make it go away completely.) Thank you, Julie
__________________
Version 4.4.2 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Add
Code:
Code:
After surround the price code in products.tpl template with e.g.: Code:
this will show the price only for customers without any membership level.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#3
|
|||||||||
|
|||||||||
![]() Hi Alex,
I've tried adding this piece of code to home.php, but the smarty variable is only available on the homepage and not any of the other pages. Is there a way to get around this? I have a catalog page only available to users with a membership level which is linked from one of the main menus, so it needs to be available at all times once they are logged in. Many Thanks *UPDATE* Think I got around this by adding the code to auth.php. Not sure if that's the best place, but it seems to work ok.
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() You can also add to include/common.php (categories.php before 4.4.x), I thing is better then messing up with auth.php
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#5
|
|||||||||
|
|||||||||
![]() Got it ... Cheers Steve!
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#6
|
|||||||
|
|||||||
![]() Is there a way to get the {$user_account.membershipid} to show a specific welcome text on the welcome.tpl template?
__________________
X-cart Gold Version 4.1.9 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() You should use conditions in the welcome.tpl template.
Code:
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#8
|
|||||||
|
|||||||
![]() Thank you for the reply. I tried the code similar to your with ids of 9 but it seems it still would not work.
![]() HTML Code:
I noticed in the menu.tpl it iterated over them do I have to do this for the ids here? HTML Code:
__________________
X-cart Gold Version 4.1.9 |
|||||||
#9
|
|||||||||
|
|||||||||
![]() Not sure what exactly you mean. Since I've used memberships in the sample and you refer the manufacturers in yours.
These are completely different entities in X-Cart.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful ![]() Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#10
|
|||||||
|
|||||||
![]() Sorry for the confusion. The goal is to get the "membershipid" on the welcome.tpl also note that I am running X-cart version 4.1.9
__________________
X-cart Gold Version 4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|