p500plus Posted January 18, 2017 Share Posted January 18, 2017 Hello, i have issue with changing Order History from backend. ExampleI have order with FAILed payment so i let he customer to pay again. This is no problem. After payment i get notification with result - OK. So i want to change order status from "Payment FAIL" to "Payment OK" I have used this code $history = new OrderHistory(); $history->id_order = $orderId; $history->changeIdOrderState($newStatusId, $orderId); After this in admin i can see the new status but it has no record in order history and on front end there is always the first status (FAIL) with no change. Can someone help me what have i done wrong? What is the right way to do this? Link to comment Share on other sites More sharing options...
bellini13 Posted January 19, 2017 Share Posted January 19, 2017 your code looks fine what order status is "payment ok" and "payment fail", are these custom order status that you have created? what version of Prestashop are you testing with? 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