Totti Posted March 28, 2019 Share Posted March 28, 2019 Hello, with a PHP program I would like to find the list of all active products with zero quantities and disable them, which classes or queries could I use? Thank you Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted March 30, 2019 Share Posted March 30, 2019 Hello, You will find the stock quantities in the table ps_stock_available. Then you can disable the products in the table ps_product, setting the field active to 0 1 Link to comment Share on other sites More sharing options...
Totti Posted April 1, 2019 Author Share Posted April 1, 2019 Thanks, and if I wanted to use prestashop classes besides this "product.php" which other should I use? Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted April 1, 2019 Share Posted April 1, 2019 Hi, Take a look at the class StockAvailable. 1 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