Add Pinterest Button On Magento Product Page

Friday, 22. June 2012

One of the highly recommended social icons on your product pages is pinterest. Here is the snippet you need to add it on your product page with ease!

<a href="http://pinterest.com/pin/create/button/?media=<?php echo $this->helper('catalog/image')->init($_product, 'small_image'); ?>&description=<?php echo trim($_product->getName()) ?>&url=<?php echo $_product->getProductUrl() ?>" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a>

Enjoy!!

Leave a Reply

You must be logged in to post a comment.