Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 07-10-2012 13:24:16

kreinbrink
Member
From: Orlando
Registered: 11-16-2009
Posts: 163
Website

Pinterest Dynamic Button on Product Pages

If anybody wants to use the Pinterest pinit button on their site, the following code will work for adding a dynamic button to the product detail pages.  Go to Store - Store Displays - Product Detail Displays and choose the display you are currently using.  I myself put this right below the email a friend link.  So in that case, the code would be put after:

Code:

print 'class="hrefbutton">Tell A Friend!</a></p>';

Code:

print '<p><a href="http://pinterest.com/pin/create/button/?url=';
          echo 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; 
          print '&media=';
          echo 'http://enteryourbaseurlhere/' . $imgurl;
          print '&description=';
          print $prodname;
          print '" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a></p>';

You also need to put the following in your main template before the closing </body> tag.

Code:

<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>

Ben
  : CCP7 w/ Joomla Integration

Offline

 

#2 11-19-2012 16:15:11

geraldz
Member
Registered: 09-27-2011
Posts: 251

Re: Pinterest Dynamic Button on Product Pages

Offline

 

Board footer