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!

Default image
Sagar Doshi
CEO / Managing Partner

An expert in his field, Sagar Doshi is the CEO and team leader in

meghrajtechnosoft.

His passion for Magento has inspired others in the team too. Apart from work, he is a cricket lover."

Articles: 25

Leave a Reply