1

I am trying to add multiple products to my cart. I have product ids in the form of $productIds = implode(',', array_column($points, 'productId')); which gives me numeric product ids like this : 5330,3770,4259,5107,6537. I want to put all this products to cart on button click.

I have been trying this from so long with 0 luck.I tried accepted solution of this question: Add to cart via Javascript in CE 2.1

Any help ? I am on magento 2

  • show us the code you've tried even if it didn'T work – Philipp Sander May 8 at 12:34
  • @PhilippSander updated the question – Shujaat Shaikh May 8 at 12:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.