bsphere Posted March 29, 2009 Share Posted March 29, 2009 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 More sharing options...
bsphere Posted April 25, 2009 Author Share Posted April 25, 2009 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 More sharing options...
VIXUS Posted May 19, 2009 Share Posted May 19, 2009 find solution here:http://www.prestashop.com/forums/viewthread/18211/general_discussion/shop_availability_info_of_products_is_not_working_properly/ Link to comment Share on other sites More sharing options...
Recommended Posts