cancel
Showing results for 
Search instead for 
Did you mean: 

AJAX calls add to cart / quick view / add to favorites Magento2

AJAX calls add to cart / quick view / add to favorites Magento2

Hi I'm experiencing difficulties with Magento2 add to cart / quick view / add to favourites functionality.

 

Our application is loaded after the DOM has already been loaded, like an overlay. In Magento I could simply use the existing javascript objects to use the "add to cart" functionality from my code (which is later added to the DOM)

 

In Magento2 this is different, since it now uses KnockoutJS and RequireJS. How to achieve the same functionality in Magento2?

 

I would like to be able to use "add to cart, quick view and add to favourites" via the KnockoutJS / RequireJS layer.

 

Thank you in advance.

 

Kind regards,

 

Basbe