D
D
Daulet Nogaybek2017-11-03 01:59:14
opencart
Daulet Nogaybek, 2017-11-03 01:59:14

How to fix a bug when editing an opencart 2.0.1.2 order?

59fba2685eaed536928066.jpeg
When the client has registered on the site and placed an order, he enters the admin panel and if the manager looks at the order through sales - orders and clicks to edit the order and add one more product, then all the products that were already in this order appear on the client's basket + a new product ordered by the client! Tried on a clean engine as it turned out and there is such a bug. Interested in solving this problem. What files need to be affected? On version 3x everything was fixed, I tried to take admin/controller/order.php from there and change it to my own. Did not help! Waiting for answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2017-11-03
@zoozag

Most likely the problem is not with the controller, but with the model.
Responsible for updating the order
a
Try in it before
output $order_data to the log and see if there are duplicates there already. If there is, then the problem is somewhere in the controller, if not, then already in the model/checkout/order.php model, the editOrder method
In ocStore 2.1 and Opencart Pro, I don’t observe problems

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question