{"id":1586,"date":"2021-02-13T15:40:49","date_gmt":"2021-02-13T15:40:49","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/add-stock-status-column-in-product-grid-in-magento-2\/"},"modified":"2025-07-22T18:04:49","modified_gmt":"2025-07-22T12:34:49","slug":"add-stock-status-column-in-product-grid-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/add-stock-status-column-in-product-grid-in-magento-2\/","title":{"rendered":"How to Add Stock Status Column in Product Grid in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The default&nbsp;Magento 2&nbsp;offers \u201cProducts\u201d grid that lists the product name, ID, thumbnail, type, attribute set, SKU, price, quantity, etc. for the admin to easily manage the products in the online store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Depending on the type of business and its requirements, the admin may want to&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/add-custom-column-in-magento-2-products-grid\/\" target=\"_blank\" rel=\"noreferrer noopener\">add a custom column in the Magento 2 product grid<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, stock status is an important factor that the admin needs to monitor so that a customer may not return from his store due to the product unavailability.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, if the admin fix&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/magento-2-reset-button-in-grid-column-not-working\/\">Magento 2 reset button in grid column not working<\/a>&nbsp;error to&nbsp;<em><strong>add stock status column in product grid in Magento 2<\/strong><\/em>, it would be easy to have an eye on the products\u2019 inventory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add the stock status column in Magento 2 product grid itself with the steps given below:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Add Stock Status Column in Product Grid in Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">1. <strong>Login<\/strong>&nbsp;to Magento 2 admin panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Navigate to&nbsp;<strong>Stores &gt; Attributes &gt; Product<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Click on the \u2018<strong>quantity_and_stock_status<\/strong>\u2018 attribute from the product attributes grid.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2021\/02\/product-attribute.jpg\" alt=\"How to Add Stock Status Column in Product Grid in Magento 2\" class=\"wp-image-13098\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4. Set the&nbsp;<strong>Default Label<\/strong>&nbsp;from Attribute Properties that will display in the product grid later.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2021\/02\/attribute-properties.jpg\" alt=\"How to Add Stock Status Column in Product Grid in Magento 2\" class=\"wp-image-13099\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5. Set YES to&nbsp;<strong>Add to Column Options<\/strong>&nbsp;and click on the&nbsp;<strong>Save Attribute<\/strong>&nbsp;button from the Advanced Attribute Properties.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2021\/02\/add-to-column-yes.jpg\" alt=\"How to Add Stock Status Column in Product Grid in Magento 2\" class=\"wp-image-13101\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">6. Select&nbsp;<strong>Stock Status<\/strong>&nbsp;or the name you have given to&nbsp;<strong>quantity_and_stock_status&nbsp;<\/strong>attribute from&nbsp;<strong>Columns<\/strong>&nbsp;option.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2021\/02\/configuration-3.jpg\" alt=\"How to Add Stock Status Column in Product Grid in Magento 2\" class=\"wp-image-13102\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">7. By enabling Stock Status, you can see the stock column which displays Instock and out of stock status in the products grid.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2021\/02\/stock-status-column.jpg\" alt=\"How to Add Stock Status Column in Product Grid in Magento 2\" class=\"wp-image-13100\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s all.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also refer to the video tutorial to Add Stock Status Column in Product Grid in Magento 2 from our&nbsp;<a href=\"https:\/\/www.youtube.com\/playlist?list=PLBTOxSAJzwEjM5MilmEqj98Ib80tKBu7r\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 video tutorial<\/a>&nbsp;series:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Add Stock Status Column in Product Grid in Magento 2\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/afcDmzd2Ovo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to share the solution with Magento Community via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank You.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The default&nbsp;Magento 2&nbsp;offers \u201cProducts\u201d grid that lists the product name, ID, thumbnail, type, attribute set, SKU, price, quantity, etc. for the admin to easily manage&#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-1586","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1586","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=1586"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1586\/revisions"}],"predecessor-version":[{"id":17839,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1586\/revisions\/17839"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}