Skip to content

Price attribute missing when we create product with our custom product type

Module/CustomProductType/etc/product_types.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Catalog:etc/product_types.xsd”> <type name=”Custom” label=”Custom Product Type” modelInstance=”BrainvireCustomProductTypeModelProductTypeCustomProduct” indexPriority=”60″ sortOrder=”80″ isQty=”true”> <priceModel instance=”BrainvireCustomProductTypeModelProductTypePrice” /> </type> </config> Module/CustomProductType/Model/Product/Type/CustomProduct.php <?php namespace ModuleCustomProductTypeModelProductType; class CustomProduct extends MagentoCatalogModelProductTypeVirtual { const TYPE_CODE= ‘new_product_type_code’; public function deleteTypeSpecificData(MagentoCatalogModelProduct $product) { } } Module/CustomProductType/Model/Product/Type/Price.php… Read More »Price attribute missing when we create product with our custom product type