Thursday 22 August 2013

Adding a Pinterest button to Prestashop Version 1.5.4

If you want to add a pinterest button to your products page so your visitors can add it to a collection then you just need to add this piece of code to the page.

You need to add this to your themes product.tpl file where you want the button to show.

Here is the code you need. (Don't forget to have this on 1 single line)


<a href="http://pinterest.com/pin/create/button/?url={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&media={$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default')}&description={$product->name|escape:'htmlall':'UTF-8'}" class="pin-it-button" count-layout="horizontal">Pin It</a><script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>

No comments:

Post a Comment