开发者

New status not appearing on the order list

开发者 https://www.devze.com 2023-02-02 19:42 出处:网络
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

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

精彩评论

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