The custom product types

Magento provides the following six out-of-the-box product types:

  • Simple products
  • Configurable products
  • Grouped products
  • Virtual products
  • Bundle products
  • Downloadable products

Each product has its specifics. For example, the virtual and downloadable products do not have the weight attribute. Therefore, they are excluded from the standard shipping calculations. With custom coding around built-in product types, by using observers and plugins we can achieve almost any functionality. However, this is not enough sometimes or there is no solution to the requirement. In cases such as these, we might need to create our own product type that will match the project requirements in a more streamlined way.

Let's create a miniature module called ...

Get Magento 2 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.