Jump to content


Photo

How to Add Magento 2 Configurable Products Programmatically to Cart


  • Please log in to reply
No replies to this topic

#1 Meetanshi

Meetanshi

    Advanced Member

  • Members
  • PipPipPip
  • 535 posts

Posted 20 January 2020 - 07:32 AM

I was working on a module development task that required to check each and every feature with a simple product and configurable product. Each time repeating the process to select the options, add to cart, and checkout was not feasible.
 
Hence, I came up with a solution that allowed me to add Magento 2 configurable products programmatically to cart which reduced my tedious task!
 
 


looking for the best presta addons with outstanding support? check this: PrestaShop Modules