Magento - 删除产品类型

时间:2011-11-14 01:43:47

标签: php magento magento-1.4

创建新产品时,请选择产品类型和属性组。 / 我需要删除标准类型的产品Magento,只留下虚拟产品。 我想删除简单产品,产品下载,可配置产品。

任何人都知道我该怎么做?

1 个答案:

答案 0 :(得分:4)

您需要将Mage_Catalog_Model_Product_Type :: getOptionArray()编辑为

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;
}

希望这有帮助。

由于 此致

相关问题