Sunday, April 29, 2012

Add Google plus one Button in product details page

Past the following code in your magento product details page and you will see your Google plus one Button in your product page.
<div id="google-plusone" style="float: left;position: relative;top: 23px;left: -9px;">
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{"parsetags": "explicit"},
{"lang": "<?php echo $this->__('en-GB') ?>"}
</script>
    <g:plusone size="medium" count="true" href="<?php echo trim(Mage::registry('current_product')->getProductUrl()) ?>"></g:plusone>
</div>
<script type="text/javascript">
gapi.plusone.go("google-plusone");
</script>

1 comment:

  1. Hi! I saw an interesting solution recently – a private sale script from Plumrocket. A number of magento extensions and magento private sales theme. And there you can find an extension Faves, that allows your website visitors to share their preferences in products or boutiques using different social buttons. I think you can find it on their site, maybe you’ll find it valuable for yourself.

    ReplyDelete