I have this BOGO setup wherein a customer can buy an item and get a different item for free/discounted price. I have no problem here. What I want is once a customer add a product, it will automatically add the discounted product in the cart by just a single tap of the add to cart button. I followed different methods using the ajax API. I can even see that it's working but the thing is this function goes on and off(intermittent)-- it will add both product but sometimes just one product.