Code Monkey home page Code Monkey logo

Comments (4)

TDKorn avatar TDKorn commented on September 18, 2024 1

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.

FrancescoTalotta avatar FrancescoTalotta commented on September 18, 2024

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.

TDKorn avatar TDKorn commented on September 18, 2024

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.

FrancescoTalotta avatar FrancescoTalotta commented on September 18, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.