爱 magento后台订单状态(order status)只有Pending、Processing、On Hold、Closed、Canceled、Pending Payment 等等,如何在magento后台增加一个自定义订单状态呢?下面最模板以增加一个”On Shipping” 为例: 1.首先你需打开app/code/core/Mage/Sales/etc/config.xml 文件找到大概第545行,在之间插入一行自定义状态代码:
<statuses>
<pending translate="label"><label>Pending</label></pending>
<pending_payment translate="label"><label>Pending Payment</label></pending_payment>
<processing translate="label"><label>Processing</label></processing>
<shipped translate="label"><label>On Shipping</label></shipped><!– 此处自定义On Shipping状态–>
<holded translate="label"><label>On Hold</label></holded>
<complete translate="label"><label>Complete</label></complete>
<closed translate="label"><label>Closed</label></closed>
<canceled translate="label"><label>Canceled</label></canceled>
<fraud translate="label"><label>Suspected Fraud</label></fraud>
</statuses>
2.接着在第570行处,在processing标签后插入刚才自定义shipped标签:
<processing translate="label">
<label>Processing</label>
<statuses>
<processing default="1"/>
<shipped /> <!– 此处需以反斜杠结束–>
</statuses>
<visible_on_front />
</processing>
3.接着刷新后台缓存,即可在“processing” 状态的order 里面看到刚才自定义的On Shipping 状态,选择并提交OK。
|