新状态未出现在订单列表中 [英] New status not appearing on the order list

查看:83
本文介绍了新状态未出现在订单列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I created a new status for the orders and it is being set correctly, my problem is that is not appearing on the order list... it is blank where it should be

该如何修改才能正常工作?

what should I edit for this to work?

示例:

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

谢谢,

推荐答案

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

I suspect you need to define the status in your module's config.xml file.

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

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

This is how all other status codes are acquired.

这篇关于新状态未出现在订单列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆