So the below link will add an item to the cart… Can this same function ( nsc.fn.addToBasket() ) be used to add multiple items to the Basket?
The following link will only add one item to the cart, even though the function is called two times onClick:
<a href="javascript:void(0)" onclick="nsc.fn.addToBasket(1234, 1); nsc.fn.addToBasket(2345, 1);" id="add-to-basket-button">Add to Basket</a>
So, how can we add multiple items to the cart onClick? the jQuery.fn.addToBasket() function does not appear to accept arrays…
Any assistance would be appreciated. I am more than happy to implement the code myself, I just need the knowledge to do so. Thanks