Hello fellow Ubercartists,

From what I have read here in other issues the "Add to cart" submit button should be disabled and replaced by a message or something saying its out of stock if all attributes are out of stock am I correct?

Because I cannot for the life of me get it to do that, any thoughts on what I might be doing wrong?

Even when looking at the module code I can see if ($stock->count < 1 && $stock->active) {
// We're all out, kill the 'Add to cart' submit button and disable any attribute select boxes
So it definitely should be able to do that I guess... I have tried it on a completely fresh install but still it doesnt work.

Any suggestions will be greatly appreciated!

Regards,
Gilli Hustad

P.s. I tried both the beta and the dev

Comments

gillisig’s picture

Okay I have figured out that it does disable the submit button but only when I either have no attributes or if the attributes do not have their own sku. So as soon as I add a seperate sku for each attribute it does not disable the submit button anymore.

Is this by design?

gillisig’s picture

Anyone?