Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Magento & Nosto: How to add 'Add To Cart' and 'Add To Wishlist' buttons to Nosto recommendation templates
<div class="actions">
<button class="button btn-cart" type="button" title="Add to Basket" onclick="nostojs(function(api){api.reportAddToCart('$!product.productId','$!divId');});setLocation('/checkout/cart/add/product/$!product.productId');">
<span><span>Add to Basket</span></span>
<a class="button link-wishlist" href="/wishlist/index/add/product/$!product.productId">Add to Wishlist</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment