There is an already existing method in common.js cart.update ($ key, $ quantity); Ajax works. Sends to the controller / checkout / cart.php method. There are three methods add, edit, remove, Add and delete work fine, but editing does not work. Who faced? Here is a screen of what is knocked out in response to editing a product. Opencart cart.update

  • When asking a question on the opencard, do not forget to indicate its version. In addition, always indicate whether the use of extensions / extensions is in relation to the functionality that you are describing. this will give a much clearer picture of the problem. Also, different templates can vary greatly in the way the functionality is implemented. - Kirill Korushkin
  • Probably you are using some custom theme because in oc2.0.x, the update of the quantity of goods in the basket occurs by post-submitting the entire basket form to the checkout / cart / edit method. In any case, the wardampte post array that comes to the controller in the edit method, then see the entire data path up to the model. And do not forget the console. More help can be only by looking through the code. Good luck. - Kirill Korushkin
  • In / cart edit, but I want to configure a normal cart) and call the method on onclick = cart.edit (key, quantity); does not work) - Max

0