How to Create Custom Product Type in Magento 2

How to Create Custom Product Type in Magento 2

Magento 2 supports 6 product types by default: Simple Product, Grouped Product Configurable Product, Bundle Product, Virtual Product, and Downloadable Product. These product types, each having its own features, enables Magento 2 to support a wide range of industries.

However, owing to diverse Magento areas, the need may arise to create custom product type in Magento 2 to satisfy the requirements of the store to implement specific features.

Magento 2 allows customization to create your own complete new Magento 2 product type! Isn’t it a powerful feature for the developer? ?

No worries now when a client comes with weird requirements that the default product types can’t fulfill because now you are going to learn the easy method to create custom product type in Magento 2. Yaay! ?

Method to Create Custom Product Type In Magento 2:

  1. create a product_types.xml file in etc folder
     
  2. create Generic.php at Model/Product/Type/ directory
     
  3. create catalog_product_view_type_generic.xml file at view/frontend/layout/ folder
     

With the above method, you no longer need to turn down the client with limited product types! You can always create one for yourself ?

Get started today! If you face any doubts midway, I’m here to help you out. Just post your doubts in the Comments section below.?

Reward the post with 5 stars if it helped you create your custom product type! ?

Thank You!

Get Weekly Updates

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

Thank you for subscribing.

Something went wrong.

4.6
(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.