cancel
Showing results for 
Search instead for 
Did you mean: 

Minicart, button update all qty field.

SOLVED

Minicart, button update all qty field.

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Minicart, button update all qty field.

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

View solution in original post

2 REPLIES 2

Re: Minicart, button update all qty field.

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

Re: Minicart, button update all qty field.

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