{"id":389,"date":"2019-04-23T08:56:44","date_gmt":"2019-04-23T08:56:44","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/04\/23\/how-to-add-new-category-and-product-in-magento-2\/"},"modified":"2025-07-17T10:40:35","modified_gmt":"2025-07-17T05:10:35","slug":"how-to-add-new-category-and-product-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/how-to-add-new-category-and-product-in-magento-2\/","title":{"rendered":"How to Add New Category and Product in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Are you a newbie in Magento 2?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If yes, the article is for you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Magento 2 is widely used for E-commerce business having impressive features. The platform offers many functionalities to improve the user experience, increase the conversion rate and offer a secure shopping experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/blog\/how-to-solve-category-move-error-in-magento-2\/\">Magento 2 categories<\/a> are the building blocks of the catalog and provide ease of navigation to the customers. While Magento 2 products are the heart of an online store. If you have <a title=\"[A Complete Guide] How to Start Online Business\" href=\"https:\/\/meetanshi.com\/blog\/start-online-business\/\" target=\"_blank\" rel=\"noopener\">built a new Magento 2 store<\/a>, the primary step is to <i><strong>add new category and product in Magento 2<\/strong><\/i>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Newcomers in Magento 2 development might get confused with the backend architecture. To make their tasks easier, I&#8217;ve come up with the stepwise method to create new category and product in Magento 2.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to add new category and product in Magento 2:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the below method and that&#8217;s it!<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><h3 id=\"category\">Add New Magento 2 Category:<\/h3>\n<ul class=\"wp-block-list\">\n<li><strong>Log in<\/strong> to Admin Panel<\/li>\n\n\n\n<li>Go to <strong>Catalog &gt; Categories<\/strong><\/li>\n\n\n\n<li>Click &#8220;<strong>Add Subcategories<\/strong>&#8220;<\/li>\n\n\n\n<li>Enter the details, <strong>enable the category<\/strong> and <strong>Include in Menu<\/strong> option.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/1_Add-subcategory.png\" alt=\"1_Add subcategory\" class=\"wp-image-4936\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Save<\/strong> the configuration.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/2_Save.png\" alt=\"2_Save\" class=\"wp-image-4937\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Similarly to create the root category, click on &#8220;<strong>Add Root Category<\/strong>&#8221; and follow the same steps.<\/li>\n\n\n\n<li>To apply this root category to the store, go to <strong>Stores &gt; All Stores<\/strong>.<\/li>\n\n\n\n<li>Click &#8220;<strong>Main Website Store<\/strong>&#8220;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/3_root-category.png\" alt=\"3_root category\" class=\"wp-image-4938\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Change the <strong>Root Category<\/strong> with your created root category from the drop-down menu.<\/li>\n\n\n\n<li>Click &#8220;<strong>Save Store<\/strong>&#8220;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/4_Change-default-category.png\" alt=\"4_Change default category\" class=\"wp-image-4939\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><h3 id=\"product\">Add New Magento 2 Product:<\/h3><p>There are multiple product types and here I&#8217;m showing the example of a simple product type.<\/p>\n<ul class=\"wp-block-list\">\n<li>Go to Catalog &gt; Products<\/li>\n\n\n\n<li>Click &#8220;Add Product&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/5_Add-product-button.png\" alt=\"5_Add product button\" class=\"wp-image-4940\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Enter the details of the product and select its category<\/li>\n\n\n\n<li>It is essential that the <strong>product is in stock and the quantity is defined<\/strong> to be displayed in the frontend.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/6_Product-Details.png\" alt=\"6_Product Details\" class=\"wp-image-4941\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Save <\/strong>the product<\/li>\n\n\n\n<li>It is seen in the frontend as below:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/04\/7_Frontend-product.png\" alt=\"7_Frontend product\" class=\"wp-image-4942\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">That was all about creating Magento 2 products and categories!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hopefully, the post will help you towards excelling Magento 2 development!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Don&#8217;t hesitate to comment down any doubts in the above tutorial. I&#8217;d be more than happy to help \ud83d\ude42<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do rate the post with 5 stars!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you a newbie in Magento 2? If yes, the article is for you. Magento 2 is widely used for E-commerce business having impressive features&#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-389","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/389","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=389"}],"version-history":[{"count":1,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":4144,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/389\/revisions\/4144"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}