cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove in stock status in magento 2 frontend ?

SOLVED

How to remove in stock status in magento 2 frontend ?

Hi guys,

              How can i remove in stock status from magento 2 frontend ?

can any one guide me ?

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: How to remove in stock status in magento 2 frontend ?

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 !

if issue solved,Click Kudos & Accept as Solution

View solution in original post

Re: How to remove in stock status in magento 2 frontend ?

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.

View solution in original post

4 REPLIES 4

Re: How to remove in stock status in magento 2 frontend ?

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 !

if issue solved,Click Kudos & Accept as Solution

Re: How to remove in stock status in magento 2 frontend ?

yah ,i tried but it's not working.

Any alternative ? guide me ?

Re: How to remove in stock status in magento 2 frontend ?

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.

Re: How to remove in stock status in magento 2 frontend ?

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 !

if issue solved,Click Kudos & Accept as Solution