How to Display Stock Availability Message on Product Page in Magento 2

How to Display Stock Availability Message on Product Page in Magento 2

Several stock scenarios exist for a single product in a Magento 2 store.

As a part of a good shopping experience, it is important for the admin to display the stock status to the frontend customer according to the inventory.

For example, when your product is out of stock and you do not inform the potential customer prior, they end up doing the entire shopping spree only to find out at the checkout step that they cannot get that item.

It is disappointing!

Instead, display stock availability message on product page in Magento 2 store as per the inventory and never deliver a bad user experience! Another way is to remove stock availability from the product page in Magento 2 altogether that I talked about in my earlier post.

Methods to Display Stock Availability Message on Product Page in Magento 2:

Method 1:

How to Display Stock Availability Message on Product  Page in Magento 2 1

  1. Login to admin panel
  2. Go to Stores > Configuration
  3. Expand Catalog and select Inventory to configure the inventory.
  4. Expand Product Stock Options
  5. Set yes to “Manage Stocks

Method 2: Change stock message from the Catalog page

How to Display Stock Availability Message on Product  Page in Magento 2 2

  1. Go to Stores > Configuration
  2. Under Catalog, select Inventory
  3. Expand “Stock Options”
  4. Set “yes” in both the following fields:
    1. Display Out of Stock Products
    2. Display Products Availability in Stock on StoreFront

That’s it.

Any doubts about the method? If so, please mention them in the Comments section below. I’d be happy to help.

Also, do not hesitate to share the solution with the Magento community via social media.

Thank you.

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

5
(based on 9 Reviews)

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a reply:

Your email address will not be published.