| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Show Wholesale Products | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Currently any product that is flagged as wholesale only is hidden from customers not logged in. I'm trying to find the script that sets the template to hide the wholesale only products. I would like all products shown regardless how it is flagged.
Any ideas?
__________________
Version 4.3.2 |
|||||||
#2
|
|||||||
|
|||||||
![]() Found the category listing code. In /include/search.php, ~line 398, comment if else statement and replace with:
Code:
This is obviously only for the default wholesale membership but you get the idea.
__________________
Version 4.3.2 |
|||||||
#3
|
|||||||
|
|||||||
![]() And here is the allowed product listing. In /include/func/func.product.php, ~line 668, comment all three SQL condition variables and replace with:
Code:
Love it when I answer my own questions.
__________________
Version 4.3.2 |
|||||||
#4
|
|||||||
|
|||||||
![]() Hi there,
Does this mod make it so that a customer not logged in will see all products, but when they are logged in they see their membership specific products? Or does it make all products and categories available to all membership levels at all times... I want my not-logged-in customers to see everything, and also when they log in (as a "Retail" membership). However I want the wholesale memberships to only see the wholesale specific products and categories. Cheers, Pete. |
|||||||
#5
|
|||||||
|
|||||||
![]() It will show products flagged as wholesale only to all customers.
__________________
Version 4.3.2 |
|||||||
#6
|
|||||||
|
|||||||
![]() great! thats exactly what i am looking for, thanks a bunch!
|
|||||||
#7
|
|||||||
|
|||||||
![]() Hmm. Can't seem to get it to work. My "Retail" membership is membershipid '9', and so I replaced your default wholesale value of '2' to my '9' in the hope that this would display any products available to "Retail" memberships to anyone not logged in.
This is my search.php code: Code:
I've also done the changes to the func.product.php: Code:
Any ideas why it wouldn't be working? |
|||||||
#8
|
|||||||
|
|||||||
![]() Did you add wholesale pricing to the product? Only selecting the wholesale option in the product details will not set the membershipid in the xcart_pricing table.
__________________
Version 4.3.2 |
|||||||
#9
|
|||||||
|
|||||||
![]() ok i've got the product working now, but how do you apply that to the category showing?
|
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|