Hi, I want to make a button to update all quantity fields. Is there any Ajax function to update all fields (qty input) in the mini cart?
Solved! Go to Solution.
Hello @maciejmodl497d ,
There is no ajax function to update directly.
But, you can set your own logic like create one global text field and after entering a number like on keypress event you can update all other text fields for qty in the mini cart by using loop and jquery.
Each text field has a button for update ( Ajax call button ). you can trigger each button click using jquery.
If it helps click on Kudos and Accept as Solution.
Thank you
Hiren Patel
Hello @maciejmodl497d ,
There is no ajax function to update directly.
But, you can set your own logic like create one global text field and after entering a number like on keypress event you can update all other text fields for qty in the mini cart by using loop and jquery.
Each text field has a button for update ( Ajax call button ). you can trigger each button click using jquery.
If it helps click on Kudos and Accept as Solution.
Thank you
Hiren Patel
It works locally, but on tests (test server), where the server is faster, some requests return faster and reload the mini cart. I have to make a requests queue