Created
February 4, 2015 15:58
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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