Model
Virtual
Magento\Catalog\Model\Product\Type\Virtual
What it does
This class defines the Virtual product type in Magento 2, which represents non-physical products like services, memberships, or digital downloads that don't require shipping.
Developers use this class when working with products that have no weight and don't need shipping calculations.
It's automatically used by Magento when a product is set to the 'virtual' type in the admin panel.
Public Methods
- isVirtual()
- hasWeight()
- deleteTypeSpecificData()