The question:
I don’t want out of stock products to be appeared in my magento website. I have done the following to ensure I don’t see my configurable product in the frontend.
Configurable product inventory - out of stock
Associated products inventory - out of stock, qty - 0
config settings -> quantity to become out of stock - 0
config settings -> display out of stock items - No
config settings -> backorder - No
Inspite of all these settings, I just see “Add to cart” being disabled for this product. But the product still appears in the site when I access it via URL. I don’t want this product to be seen in my website anymore by whatever means it may be.
Is showing product without “add to cart” magento default when it means “display out of stock products – No”?
Please clarify this setting? And how should I remove this product from my website using magento default settings? (I don’t want the product to be disabled in backend, just hide in frontend). Thanks.
The Solutions:
Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.
Method 1
This is actually a feature of Magento.
Setting Display out of stock products
to No
only hides them from the category list pages and the search results page.
The product page is actually still available.
Starting with CE 1.9.1 there is even a message under the config setting Display out of stock products
saying Products will still be shown by direct product URLs.
.
And this is actually a good thing.
This way search engines don’t register a lot of 404 pages when your products get out of stock.
I don’t see the harm in leaving it like that. The customer cannot order them anyway.
If you want a product not to be available at all in your store you have to mark it as disabled or set it’s visibility to Not visible individually
or remove its association to the websites from the websites tab on the admin product edit page.
Method 2
is this a problem with all products, or only with the products that are marked as “new”? If this problem only appears for “new” products, you can solve it when you go to the product page > Autosettings > “Set product as New from date / to date – erase both dates.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0