RLisboa
RLisboa

Reputation: 19

Magento - Delete Product Type

When we create a new product, choose the type of product and attribute group. / I need to delete the standard types of products Magento, leaving only the Virtual Product. I want to delete Simple Product, Product Download, configurable product.

Anyone know how I do?

Upvotes: 0

Views: 1347

Answers (1)

MagePsycho
MagePsycho

Reputation: 2004

You need to edit Mage_Catalog_Model_Product_Type::getOptionArray() as

static public function getOptionArray()
{
    $options = array();
    foreach(self::getTypes() as $typeId=>$type) {
        if($typeId == 'virtual'):
            $options[$typeId] = Mage::helper('catalog')->__($type['label']);
        endif;
    }

    return $options;
}

Hope this helps.

Thanks Regards

Upvotes: 4

Related Questions