Freds Posted July 2, 2013 Share Posted July 2, 2013 Hello I need help to get out of stock items to be automatically hidden. The mysql thing did not work it complained about to old mysql version so it has to be a noter way. Give me offer and a about when it might be done. Prestashop version 1.5.4.1 / Fredrik Link to comment Share on other sites More sharing options...
Kogkalidis Posted July 2, 2013 Share Posted July 2, 2013 You can make something with display attribute in css combine it with php in way like this: if product_quantity>0 then display block else display hidden.. Fix it somehow and I think you've got it! Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted July 2, 2013 Share Posted July 2, 2013 Hi Freds, did you try change PS config that deny order products that already out of stock? I mean this feature: http://clip2net.com/clip/m226647/1372745607-clip-55kb.png Regards Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2013 Share Posted July 2, 2013 i suppose that he want to hide the products which aren't in stock, not only "block" ordering The mysql thing did not work you're talking about triggers (tutorial: hide out of stock products) ??? You can also run cron job - run php script with sql query: UPDATE ps_product_shop SET active=0 WHERE id_product IN (SELECT id_product FROM ps_stock_available WHERE quantity=0); UPDATE ps_product_shop SET active=1 WHERE id_product IN (SELECT id_product FROM ps_stock_available WHERE quantity>0); Link to comment Share on other sites More sharing options...
Freds Posted July 3, 2013 Author Share Posted July 3, 2013 Thank you it is now Solved Link to comment Share on other sites More sharing options...
vekia Posted July 3, 2013 Share Posted July 3, 2013 can you say something more about solution that you use? it will be really helpful for other merchants with similar question. i marked this thread as [solved] regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now