Skip to content

Sending Add To Cart Events

Fodor Test edited this page Mar 13, 2019 · 3 revisions

To support AJAX implementation of add to cart functionality inside product recommendations, the on-click handler of the add to cart button needs notify Nosto that a product was added to cart from a Nosto recommendation. The api call is only for informing Nosto about the attribution (that the product was added from the recommendation), normal cart tagging should be used to tell Nosto the user’s cart contents.

nostojs(function(api) {
  api.recommendedProductAddedToCart("productId1", "nosto-categorypage-1");
});
Clone this wiki locally
You can’t perform that action at this time.