Description
Hiding out of stock products module for PrestaShop can fix the problem of out of stock products still showing out on the front office. It can automatically hide out of stock products from the front office and show them out when they are restocked.
Automatically hide out of stock products.
This module can automatically hide out of stock products by setting the "Visibility" field for out of stock products to "Nowhere", that's the best way to hide out of stock products, it doesn't need to override any files and is compatible with all themes and modules.
- When a product is sold out, the module will set its "Visibility" field to "Nowhere", and then clear the Smarty cache automatically, to hide the product from on the front office immediately.
- When the product is restocked on the back office product page, this module will set its "Visibility" field back to "Everywhere", so the product will show out again on the front office.
- Threshold: Ability to hide products when the stock is under a certain number, generally products will be hidden when they are out of stock, you set it to a value, like 2, to hide products when the stock is lower than 2.
List all out-of-stock products out.
- List all out of stock products out with pagination, so you can check and set them to be in Nowhere manually.
- Set all out of stock products to be in Nowhere by one click.
- Set some out of stock products to be in Nowhere bulky.
List all products which are in Nowhere out.
- List all products which are in Nowhere with pagination, so you can check and set them to be in Everywhere manually.
- Set Nowhere products to be in Everywhere by one click.
- Set some Nowhere products to be in Everywhere bulky.
Email notification.
You can set to get notified when there are products which are sold out or restocked.
Cron job.
You can use a Cron job to hide out-of-stock products and show restocked products in these 2 cases.
- You are using a module or a software to manage stock.
- You disabled the "Manage the Visibility field automatically" option.
Compatibility
- PrestaShop 1.7
- PrestaShop 1.6
- All themes
How to install and upgrade.
This Hiding out of stock products module can be installed easily without editing any files.
How to install? Use the "Upload a module" button on "BO > Modules" page to install the module.
How to upgrade? Use the "Upload a module" button on "BO > Modules" page to upload the new version to your site, it's the same as how to install, don't worry all your data will be safe, PrestaShop will just upload updated files to your site, it won't reinstall this module.
How to get support.
If you have any questions with the module, post them out on the prestashop module support forum, we'll help you out.
Documentation.
Yes, this module won't hide out-of-stock products when the "Allow ordering of out-of-stock products" setting is enabled.
Disable the "Display unavailable product attributes on the product page" setting on the "BO>Shop Parameters>Product Settings" page, and then modify the \controllers\front\ProductController.php file for a little, check the picture below, change those 0 to 2.
Take a look on this solution https://www.sunnytoo.com/forums/topic/hiding-out-of-stock-module-only-at-certain-categories/#post-67501
Perfect module!! Does everything I need. Just too bad I did not find this earlier:)) Thank you!