| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Strange Out Of Stock Behavior on Products page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I have a fashion site with variants on most products. I display SOLD OUT on the product page, and on the products (category) page when a product is out of stock, for the most part this works. I have the following code in products.tpl to handle this:
Code:
My question (finally) how can I change this behavior so it only says SOLD OUT in my product listings if ALL variants are SOLD OUT, not just when someone has the last one of something in their cart? I realise the importance of the default functionality on the product page, to prevent someone adding unavailable stock to their cart, but on the category pages it is confusing, especially when other variants might still be available. Thanks in advance.
__________________
birdman X-Cart Gold 4.1.8 Unix FreeBSD | MySQL 4.1.22 | PHP 5.2.10 |
|||||||
#2
|
|||||||
|
|||||||
![]() Okay, so I think I've found where I can fix this strange behavior but am wondering if anyone can think of any adverse consequences of doing this.
In include/search.php there is the following code: Code:
When I comment out the line: Code:
Code:
then it prevents the behavior I'm talking about. Can anyone think of any other consequences of doing this?
__________________
birdman X-Cart Gold 4.1.8 Unix FreeBSD | MySQL 4.1.22 | PHP 5.2.10 |
|||||||
|
|||
X-Cart forums © 2001-2020
|