ilclaudio Posted November 2, 2016 Share Posted November 2, 2016 Hi all, I have a procedure that duplicates Prestashop orders. However in some case the price of some articles should change according to certain rules. The question is, how can I reopen in this procedure a newly created order, modify the price of some articles and update the total amount ? Thank you very much claudio Link to comment Share on other sites More sharing options...
ilclaudio Posted November 8, 2016 Author Share Posted November 8, 2016 If I have this object: $myOrder = new Order($newOrderId); Can I change the prices of the articles of this order? Can I recalculate the amount of the order after this modifcation? Thank you Claudio Link to comment Share on other sites More sharing options...
ilclaudio Posted November 11, 2016 Author Share Posted November 11, 2016 I've found the code I needed in the function ajaxProcessEditProductOnOrder of the AdminOrdersController. It is the code that is used to update an order from the backend. cld Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now