{"id":1134,"date":"2020-07-22T11:17:52","date_gmt":"2020-07-22T11:17:52","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2020\/07\/22\/display-stock-availability-message-on-product-page-in-magento-2\/"},"modified":"2025-05-22T12:08:39","modified_gmt":"2025-05-22T06:38:39","slug":"display-stock-availability-message-on-product-page-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/display-stock-availability-message-on-product-page-in-magento-2\/","title":{"rendered":"How to Display Stock Availability Message on Product  Page in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Several stock scenarios exist for a single product in a Magento 2 store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is disappointing!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Instead, display stock availability message on product page&nbsp;in Magento 2 store as per the inventory and never deliver a bad user experience! Another way is to&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/remove-stock-availability-from-product-page-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">remove stock availability from the product page in Magento 2<\/a>&nbsp;altogether that I talked about in my earlier post.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Methods to Display Stock Availability Message on Product Page in Magento 2:<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Method 1:<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/07\/Display-Stock-Availability-Message-on-Product-Page-in-Magento-2.png\" alt=\"Display-Stock-Availability-Message-on-Product-Page-in-Magento-2\" class=\"wp-image-9800\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Login<\/strong>&nbsp;to admin panel<\/li>\n\n\n\n<li>Go to&nbsp;<strong>Stores &gt; Configuration<\/strong><\/li>\n\n\n\n<li>Expand&nbsp;<strong>Catalog<\/strong>&nbsp;and select&nbsp;<strong>Inventory<\/strong>&nbsp;to configure the inventory.<\/li>\n\n\n\n<li>Expand&nbsp;<strong>Product Stock Options<\/strong><\/li>\n\n\n\n<li>Set yes to \u201c<strong>Manage Stocks<\/strong>\u201c<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Method 2: Change stock message from the Catalog page<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2020\/07\/Display-Stock-Availability-Message-on-Product-Page-in-Magento-2-meetanshi.png\" alt=\"Display-Stock-Availability-Message-on-Product-Page-in-Magento-2-meetanshi\" class=\"wp-image-9801\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li> Go to&nbsp;<strong>Stores &gt; Configuration<\/strong><\/li>\n\n\n\n<li> Under&nbsp;<strong>Catalog<\/strong>, select&nbsp;<strong>Inventory<\/strong><\/li>\n\n\n\n<li> Expand \u201cStock Options\u201d<\/li>\n\n\n\n<li> Set \u201c<strong>yes<\/strong>\u201d in both the following fields:\n<ul class=\"wp-block-list\">\n<li>Display Out of Stock Products<\/li>\n\n\n\n<li>Display Products Availability in Stock on StoreFront<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also, do not hesitate to share the solution with the Magento community via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1134","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1134"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1134\/revisions"}],"predecessor-version":[{"id":14776,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1134\/revisions\/14776"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}