Quote Originally Posted by philip937 View Post
I have just tested again to make sure I wasn't being stupid..

My attributes most definitely DO disappear when the stock of the particular attribute hits zero.

So for example I have:

S = 4
M= 0
L = 10

When I look at the product info page and select the drop down, I currently get:
Please Select
Small
Large

It has hidden the Medium..

Now just to test there was no glitch, I then wen and changed the value of Small to = 0. the drop down now shows:
Please Select
Large

So it works perfectly how I want it to, but I merely want to change the threshold of these attributes dissapearing from zero to 30..

I hope someone can help

Phil
My bad, found the solution.

I had already been over this before.. Just forgot!

To make your attributes turn off when stock for attribute hits zero, you have to do this:
http://www.zen-cart.com/forum/showth...=34977&page=65
I had already done this!! Durrr im so stupid..

so quite clearly where the replaced code says to put:
(pwas.quantity > 0 or pwas.quantity IS NULL)

Ive changed mine to say
(pwas.quantity > 30 or pwas.quantity IS NULL)

sorted.