phpdeveloper Posted September 10, 2014 Share Posted September 10, 2014 When i hide out of stock product in product-list.tpl file {if $product.quantity != 0}.....{/if}But white space and pagination also showing for the out of stock product.Please help me not to show the out of stock product. Link to comment Share on other sites More sharing options...
nutxlago Posted September 10, 2014 Share Posted September 10, 2014 You can do it manually from BO. Go to catalog>products> filter the list by entering 0 on quantity filter. Then go bottom and select bulk actions. >select all Again, bulk actions > disable selection Hope this helps! Link to comment Share on other sites More sharing options...
El Patron Posted September 10, 2014 Share Posted September 10, 2014 yes, when you change product.tpl, it is to late because category included this product in calculation, i.e. pagination. you would need to add code for example (via module) at hook hookActionUpdateQuantity that checks if quantity 0, then disable the product. tip: if you have mail alerts module, then you could possible add code there as it uses this hook. Link to comment Share on other sites More sharing options...
PuntoSex Posted September 10, 2014 Share Posted September 10, 2014 or create a module that hooks to product changing quantity, when it reaches 0, deactivate the product. Link to comment Share on other sites More sharing options...
Diego Galma Posted September 10, 2014 Share Posted September 10, 2014 Yo can do this installing this module http://www.prestasho...cts-categories/ Link to comment Share on other sites More sharing options...
phpdeveloper Posted September 19, 2014 Author Share Posted September 19, 2014 Thanks you for all those reply for my queries. I uploaded the newelement.zip file. Can easily hide the out of stock product. But if we add stock to the product through stock management in backend. Its not updating and not showing in front. 1 Link to comment Share on other sites More sharing options...
Recommended Posts