Comments (4)
Hey @FrancescoTalotta,
Currently the Order
model has no update methods, but you can use the client to send a POST request to the orders
endpoint (see here)
I can look into adding some order update methods, is there anything you think would be helpful to have? The examples you gave may be difficult since they would all change the grand total and require additional changes like payment refunds, additional charges, modification of invoices, creation of credit memos, etc.
from my-magento.
Hello @TDKorn,
sorry I have just seen your reply now. It will be very useful to have such order update. Many times customers ask to change the item or to modify the quantity, or add a discount. I know it's difficult because of the change in grand total. If I see other things that could be useful I will let you know. Thank you very much
Francesco
from my-magento.
Hey @FrancescoTalotta, are these modifications possible to do via the admin? From what I can tell, editing the quantity, items, prices of an order in the admin would cancel the existing one and create a new one.
It seems possible to do this without cancelling by extending the source code (example) but not via the REST API
from my-magento.
Hello @TDKorn ,
thank you for your reply. Actually in the admin you can't do this. As you said you can modify the order from the admin by creating a new one. There are some plugins that enable the order modification without cancelling the order.
from my-magento.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from my-magento.