Skip to content

Instantly share code, notes, and snippets.

@zeljkoprsa
Last active December 22, 2015 21:59
Show Gist options
  • Save zeljkoprsa/6537293 to your computer and use it in GitHub Desktop.
Save zeljkoprsa/6537293 to your computer and use it in GitHub Desktop.
Wanelo button for Magento product page.
<div id="wanelo-button">
<a class="wanelo-save-button"
href="<?php echo $home_url; ?>"
data-url="<?php echo $this->helper('core/url')->getCurrentUrl();?>"
data-title="<?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?>"
data-image="<?php echo $_product->getImageUrl(); ?>"
data-price="<?php echo number_format($_product->getFinalPrice(),2);?>"></a>
<script async="true" type="text/javascript" src="//cdn-saveit.wanelo.com/bookmarklet/3/save.js></script>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment