Hi guys,
How can i remove in stock status from magento 2 frontend ?
can any one guide me ?
Solved! Go to Solution.
Hi @bharath553
Yes - you can disabled this from the backend of the magento !
From the admin panel -> go to -> store -> configuration-> Catalog -> Inventory -> Display Products Availability in Stock on Storefront -> Select No from the dropdown -> Click on save config button !
Clear the cache and check at frontend - it will not display !
Hope it helps !
To Remove stock details of a product, you can try it with catalog_product_view layout file.
<referenceBlock name="product.info.stock.sku" remove="true"/>
By adding the attribute "remove= true" will remove the stock status from product view page.
Hi @bharath553
Yes - you can disabled this from the backend of the magento !
From the admin panel -> go to -> store -> configuration-> Catalog -> Inventory -> Display Products Availability in Stock on Storefront -> Select No from the dropdown -> Click on save config button !
Clear the cache and check at frontend - it will not display !
Hope it helps !
yah ,i tried but it's not working.
Any alternative ? guide me ?
To Remove stock details of a product, you can try it with catalog_product_view layout file.
<referenceBlock name="product.info.stock.sku" remove="true"/>
By adding the attribute "remove= true" will remove the stock status from product view page.
Hi @bharath553
Have you clear the cache ? - because its native functionality of magento - and its perfectly working at my end - so you don't required to do any customization or file changes on it !