The default Magento 2 offers “Products” 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.
Depending on the type of business and its requirements, the admin may want to add a custom column in the Magento 2 product grid.
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.
So, if the admin can add stock status column in product grid in Magento 2, it would be easy to have an eye on the products’ inventory.
Add the stock status column in Magento 2 product grid itself with the steps given below:
Steps to Add Stock Status Column in Product Grid in Magento 2
- Login to Magento 2 admin panel.
- Navigate to Stores > Attributes > Product.
- Click on the ‘quantity_and_stock_status‘ attribute from the product attributes grid.
- Set the Default Label from Attribute Properties that will display in the product grid later.
- Set YES to Add to Column Options and click on the Save Attribute button from the Advanced Attribute Properties.
- Select Stock Status or the name you have given to quantity_and_stock_status attribute from Columns option.
- By enabling Stock Status, you can see the stock column which displays Instock and out of stock status in the products grid.
Do not hesitate to post your doubts regarding this method in the Comments section below and I’d be happy to help.
Feel free to share the solution with Magento Community via social media.
Get Weekly Updates
Never miss Magento tips, tricks, tutorials, and news.
Thank you for subscribing.
Something went wrong.