开发者

New status not appearing on the order list

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?

example:

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

thanks,

Joe


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜