Out of Stock items still show
Posted: Wed Jun 23, 2010 8:36 pm
This place is like...an oasis. Y'know, you wander round the ISC desert for a year or so, getting nowhere, forever lost. Then suddenly out of the haze, and just as you are about to lie down in the sand and perish, along comes this forum! Thank you so much Martin...(and I aint forgotten your Royal Mail module, just need to iron out some shooz 1st to get my shop working)
I tried in the desert for an answer but all I found was sand!
I can't seem to get products to disappear when their stock levels reach 0.
I had a look at the code mentioned in the 'desert' but could not locate the suggested code to change things -
includes/classes/class.category.php
$query = "
SELECT
COUNT(DISTINCT ca.productid) AS numproducts
FROM
[|PREFIX|]categoryassociations ca
INNER JOIN [|PREFIX|]products p USE INDEX (PRIMARY) ON p.productid = ca.productid
WHERE
p.prodvisible = 1 AND
ca.categoryid IN (" . $this->GetProductCategoryIds() . ")
";
I am using version 5.5.4 ultimate.
Could one of you fine chaps offer any clues here?
I tried in the desert for an answer but all I found was sand!
I can't seem to get products to disappear when their stock levels reach 0.
I had a look at the code mentioned in the 'desert' but could not locate the suggested code to change things -
includes/classes/class.category.php
$query = "
SELECT
COUNT(DISTINCT ca.productid) AS numproducts
FROM
[|PREFIX|]categoryassociations ca
INNER JOIN [|PREFIX|]products p USE INDEX (PRIMARY) ON p.productid = ca.productid
WHERE
p.prodvisible = 1 AND
ca.categoryid IN (" . $this->GetProductCategoryIds() . ")
";
I am using version 5.5.4 ultimate.
Could one of you fine chaps offer any clues here?