Skip to content

Instantly share code, notes, and snippets.

@sethlynne
Created August 28, 2013 18:54
Show Gist options
  • Save sethlynne/6369803 to your computer and use it in GitHub Desktop.
Save sethlynne/6369803 to your computer and use it in GitHub Desktop.
<!-- Wanelo Button -->
<a class="wanelo-save-button btn-share"
href="//wanelo.com/"
data-url="<?php if (!in_array(Mage::app()->getFrontController()->getAction()->getFullActionName(), array('cms_index_noRoute', 'cms_index_defaultNoRoute'))) {
$currentUrl = Mage::helper('core/url')->getCurrentUrl();}?>"
data-title="<?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?>"
data-image="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(350,350)?>"
data-price="<?php $product_price = Mage::helper('core')->currency($_product->getFinalPrice(),true,false);
$product_price = str_replace(".00", "", $product_price);
$product_price = str_replace("$", "", $product_price);
echo $product_price;?>">
<span></span>
Share on Wanelo
</a>
<script async="true" type="text/javascript" src="//cdn-saveit.wanelo.com/bookmarklet/3/save.js"></script>
<!-- /Wanelo Button -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment