【问题标题】:New status not appearing on the order list新状态未出现在订单列表中
【发布时间】:2011-01-07 12:23:22
【问题描述】:

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

我应该编辑什么才能让它工作?

示例:

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

谢谢,

【问题讨论】:

  • 请提供您所做更改的代码示例。您是如何创建新状态的?
  • @clockworkgeek:已编辑。我设置了订单状态并将其保存在帖子中

标签: php magento


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 2014-04-13
    • 2021-12-08
    • 2019-11-11
    • 1970-01-01
    • 2016-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多