Magento - 删除产品类型

发布于 2024-12-15 14:20:23 字数 101 浏览 4 评论 0原文

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

有人知道我怎么办吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吹泡泡o 2024-12-22 14:20:23

您需要编辑 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;
}

这会有所帮助。

谢谢
问候

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文