Magento-通过API更新订单状态 [英] Magento - update order status via API

查看:64
本文介绍了Magento-通过API更新订单状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了一个自定义订单状态选项. 有谁知道如何通过API将其设置为自定义值?

I have added a custom order status option. Does anyone know how I can set it to my custom value via the API?

推荐答案

感谢Diglin将我指向正确的位置.只是为了正确地给出答案:

Thanks to Diglin for pointing me in the right place. Just to present the answer properly:

您可以使用addComment方法执行此操作,该方法还允许您将新订单状态指定为其参数之一.

You can do this by using the addComment method, which also lets you specify the new order status as one of it's parameters.

$sku='100000003';
$orderStatus = 'Downloaded';
$comment = 'The order was successfully downloaded';
$sendEmailToCustomer = false;

$proxy->call($sessionId, 'sales_order.addComment', array($sku, $orderStatus, $comment, $sendEmailToCustomer));

希望这对某人有帮助.

这篇关于Magento-通过API更新订单状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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