Skip to content

Instantly share code, notes, and snippets.

@matt-bailey
Created February 4, 2015 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt-bailey/b784410ec3f62f163091 to your computer and use it in GitHub Desktop.
Save matt-bailey/b784410ec3f62f163091 to your computer and use it in GitHub Desktop.
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>
</button>
<a class="button link-wishlist" href="/wishlist/index/add/product/$!product.productId">Add to Wishlist</a>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment