I'm trying to figure out how to show stock status on product page (In stock/Out of stock). I tried to change stock message from the Catalog page but it didn't work ! I guess its because I use a custom theme.
Any tips ? Thanks.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI'm trying to figure out how to show stock status on product page (In stock/Out of stock). I tried to change stock message from the Catalog page but it didn't work ! I guess its because I use a custom theme.
Any tips ? Thanks.
go to
/app/design/frontend/Your/Theme/Magento_Catalog/layout/catalog_product_view.xml
and search for
<referenceBlock name='product.info.stock.sku' remove='true'/>
change it to
<referenceBlock name='product.info.stock.sku' remove='false'/>
hope it helps you
Admin panel -> Go to -> store -> configuration-> Catalog -> Inventory -> Display Products Availability in Stock on Storefront ->Select Yes from the dropdown -> Click on save config button !
Clear the cache and check at frontend - it will not display !