$context->cart->update();
if ($this->context->cart->id) { $this->context->cookie->id_cart = (int)$this->context->cart->id; }
ajaxCart.add();
// add a product in the cart via ajaxadd : function(idProduct, idCombination, addedFromProductPage, callerElement, quantity, whishlist)
$.ajax({ ... data: 'controller=cart&add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1')