I am on 2.2.6 with a Luma child theme. All products say "In Stock" on the front end visible to the customer. How do I make it show they are in stock only if they are actually in stock?
Hello @TylerWolf
According to my understanding, you want to display products on frontend when they are in stock only. So, i shared a link below you can follow those steps. I hope it can fulfil your requirement.
https://amasty.com/knowledge-base/magento-2-manage-stock.html
If found my answer useful. Click Kudos and Accept it as Solution!
Hello @TylerWolf
As far as i understand your requirement you just need to set the inventory quantity from admin panel (Magento Backend), after that magento will handle the inventory quantity.
When all the quantity got sold it will automatically make it out of stock.
Also you can update your inventory quantity anytime.
If found my answer useful. Click Kudos and Accept it as Solution!
I have checked all the settings and changed them just to test, it still says In Stock no matter what the settings are or the quantity is.
Hello @TylerWolf
After changing settings from backend. Please run indexing and clear cache.
php bin/magento indexer:reindex
php bin/magento cache:clean
If found my answer useful. Please Click Kudos and Accept it as solution.
Hello @TylerWolf,
Please check below thing to display or disable the availability of each item as “In Stock” or “Out of Stock”?
Before coming to the Out of stock product section, you need to enter this field.
Then we can come to the part that allows you to display or disable the product out of stock in Magento 2.
If price alerts are enabled, customers can sign up to be notified when the product is back in stock. I will have another post for this configuration.
About the Out of stock product notification, you have to set the following:
Note: After you done all the steps, you can go to your store in customer view and check the out of stock product status for sure. Sometimes it is not showing up, you can go to Product Detail Section and check the Product Online field, did it turn on or not.
All the thing I just said above is the way I usually use when I want to set the product out of stock status is the display or disable, beside that is some configuration of Out of stock notification in Magento 2. Hope my post can help you to manage the stock management by your own.
--
If my answer is useful, please Accept as Solution & give Kudos