新状态未显示在订单列表中

时间:2011-01-07 12:23:22

标签: php magento

我为订单创建了一个新状态并且设置正确,我的问题是没有出现在订单列表中...它应该是空白

我应该为此编辑什么?

示例:

 $order->setState('new_status', 'new_status', 'Some comment', false);
 $order->save();

感谢,

1 个答案:

答案 0 :(得分:3)

我怀疑您需要在模块的config.xml文件中定义状态。

<config>
    <global>
        <sales>
            <order>
                <statuses>
                    <new_status translate="label"><label>Some status</label></new_status>
                </statuses>
            </order>
        </sales>
    </global>
</config>

这是获取所有其他状态代码的方式。

相关问题