I am showing accessory products on popup and it appears just after adding actual product in cart.

Modal popup after product is added to cart

1 Answer 1


I have modified the form submission mechanism to achieve this.

First I changed the button type from submit to button to avoid default submission.

Then I programatically added all products with mentioned quantities to cart using ajax request.

Refresh the page afer ajax is complete to get it reflected in mini-art as well as in main shopping cart.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.