I am showing accessory products on popup and it appears just after adding actual product in cart.
I have modified the form submission mechanism to achieve this.
First I changed the button type from
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.