我正在开发的新产品类型。我根据我的测试 http://www.solvingmagento.com/creating-a-custom-product-type-in-magento/.我已经更名的所有代码,以满足我的公司名称。

该定义的产品的类型不会出现仰,但我不能将它添加任何订单(通过后端)时,"创建新秩序"

例如说我的新产品都有一个type_id的数据的"custom_product"

我看着在catalog_product_entity表中的数据库,如果我改变type_id的数据领域,我的一个新产品的一个内置的类型,例如虚拟或简单的,它显示了在列表中的产品在"创建新秩序"

这是证实通过开mysql查询的记录。这里是一个例子查询执行。

SELECT `e`.* FROM `catalog_product_entity` AS `e`
  INNER JOIN `catalog_product_website` AS `product_website`
  ON product_website.product_id = e.entity_id AND product_website.website_id = '1' 
  WHERE (((`e`.`type_id` = 'simple') OR (`e`.`type_id` = 'virtual') OR
        (`e`.`type_id` = 'configurable') OR (`e`.`type_id` = 'grouped') OR 
        (`e`.`type_id` = 'bundle') OR (`e`.`type_id` = 'downloadable')))
  ORDER BY `e`.`entity_id` DESC LIMIT 20

我怎么指定什么type_id的数据s们在过滤器?这是在XML?我重写一类?它是可配置的,在后台?

在此先感谢。

编辑---------------- 我找到了答案-----但是我不能回答它!

增加这来的config.xml

你需要添加的config.xml

<adminhtml>
    <sales>
        <order>
            <create>
                <available_product_types>
                    <affiliate/>
                </available_product_types>
            </create>
        </order>
    </sales>
</adminhtml>
有帮助吗?

解决方案

每《任择议定书》第产品类型的处理,必须加以配置XML:

你需要添加的config.xml

<adminhtml>
    <sales>
        <order>
            <create>
                <available_product_types>
                    <affiliate/>
                </available_product_types>
            </create>
        </order>
    </sales>
</adminhtml>
许可以下: CC-BY-SA归因
scroll top