Created
August 28, 2013 18:54
-
-
Save sethlynne/6369803 to your computer and use it in GitHub Desktop.
This file contains 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
<!-- 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