简体   繁体   English

Magento以编程方式取消订单

[英]Magento Cancel an order programmatically

I am creating an order using API and I want to return some qty back if customer do not want after completing the order .I know that there is an option in magento ie credit memo but our requirement is not to create an credit memo. 我正在使用API​​创建订单,如果客户在完成订单后不愿意,我想返回一些数量。我知道magento中有一个选项,即贷项凭单,但我们的要求不是创建贷项凭单。

I want to create a back-order like create an order with negative number product qty that I want to return OR 我想创建一个延期订单,例如创建要返回负数产品数量的订单,或者

I want to cancel the order with particular products and their qty. 我想取消特定产品及其数量的订单。

If I understood your question correctly - you need to delete some items from order. 如果我正确理解了您的问题-您需要从订单中删除一些商品。 Magento API doesn't provides such functionality. Magento API不提供此类功能。 All actions you can perform with orders via Magento API you can find in Mage_Sales_Model_Order_Api 您可以通过Magento API对订单执行的所有操作,您可以在Mage_Sales_Model_Order_Api中找到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM