Jump to content

availability: on stock shows for out of stock attributes


Recommended Posts

I have a product with 2 attributes, one of them is with 0 quantity.
back orders are disabled.

when selecting the out of stock attribute in the product page the add to cart button and desired quantity field disappears but the availabilty: on stock remains.

I tried to edit the line in themes/../product.tpl for the availability_statut id but couldn't understand how to fix it since $product->quantity has the quantities of all the attributes together.
which also make me wonder even more why that IF line works for the add to cart button and the wanted quantity field..

as a temporary solution i disabled "show unavailable options", but i really want the avilability field to become hidden when an out of stock attribute is selected (or display availability: out of stock)

Link to comment
Share on other sites

  • 4 weeks later...

can someone help me ?
my solution is wrong, because if there is only 1 product combination the add to cart button is hidden but the availability label still appears..
i tried to mess with product.tpl but i found out that even when the product has quantity 0, if i print $product->quantity i get 1...

Link to comment
Share on other sites

  • 4 weeks later...
×
×
  • Create New...