I am trying to add new product type in magento 2 but when i click on product type say Demo Product from the Add Product Select box than it will throw below error.
The requested component ("demo_product") is not found. Before using, you must add the implementation.
Product_types.xml code below
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/product_types.xsd">
<type name="demoproduct" label="Demo Product" modelInstance="Test\Demo\Model\Product\Type\DemoProduct" composite="false" isQty="true" canUseQtyDecimals="false" sortOrder="80">
<priceModel instance="Test\Demo\Model\Product\Type\Price"/>
<customAttributes>
<attribute name="refundable" value="true"/>
<attribute name="is_real_product" value="false"/>
</customAttributes>
</type>
Here is Modal Instance
namespace Test\Demo\Model\Product\Type;
class DemoProduct extends \Magento\Catalog\Model\Product\Type\Virtual
{
const TYPE_GIFTCARD = 'demoproduct';
}
Can you please tell me what is missing?
I am using Magento 2.1.
Thanks in advance.