|
|
||||
|
![]() |
![]() ![]() |
Feb 4 2012, 04:30 PM
Post
#1
|
|
|
Member Group: Members Posts: 101 Joined: 15-May 07 Member No.: 354 |
Hi,
Pinterest is yet another site which may add some visitors to your site - their site is here: http://pinterest.com/ Essentially members (its an invitation only site currently with 'only' about a million members where photos of loved items are uploaded and shared. After numerous attempts to get the Pin It button to work (this is the button which is clicked to add the photo of your item to the visitors album) this is the result - for CC3.16 onwards: 1. Find a member to invite you - maybe me? 2. Go to the goodies page and get the code for the Pin It button. 3. Make the following alterations to the code: <a href="http://pinterest.com/pin/create/button/?url=http://www.your_site.co.uk/prod_{PRODUCT_ID}.html&media=http://www.your-site.co.uk/{IMG_SRC}&description={TXT_PINIT}" class="pin-it-button" count-layout="horizontal">Pin It</a> <script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script> Add this code to the Viewprod.tpl at the place you wish the button to appear - its a small button so shouldn't use up much real estate. 4. Go to the file /includes/content/viewprod.inc.php and look for this line: $view_prod->assign("TXT_DESCRIPTION",$prodArray[0]['description']); add this line after: $view_prod->assign("TXT_PINIT",$prodArray[0]['prod_metadesc']); The {TXT_PINIT} placeholder should not have any HTML style attributes - HTML causes problems with the Pinterest code and will not upload successfully AFAIK prod_metadesc is plain text (if not there could be problems) - it is on my version of CC3 Thats it! I hope it brings your site some new visitors. Regards Richard This post has been edited by Robsta: Feb 5 2012, 10:38 AM |
|
|
|
Feb 5 2012, 10:35 AM
Post
#2
|
|
|
Member Group: Members Posts: 101 Joined: 15-May 07 Member No.: 354 |
Hi,
Ooops - This line: url=http://www.your_site.co.uk/prod_{PRODUCT_ID} Should be: url=http://www.your_site.co.uk/prod_{PRODUCT_ID}.html Otherwise the link on the Pinterest Likes page will not work - Richard |
|
|
|
Mar 3 2012, 07:50 AM
Post
#3
|
|
|
Member Group: Members Posts: 19 Joined: 13-February 12 Member No.: 28,051 |
Thank you for this. Is there any chance it will work on cubecart 5.
|
|
|
|
Mar 4 2012, 09:17 PM
Post
#4
|
|
|
Member Group: Members Posts: 101 Joined: 15-May 07 Member No.: 354 |
|
|
|
|
Jul 26 2012, 07:58 PM
Post
#5
|
|
|
Member Group: Members Posts: 10 Joined: 2-October 10 Member No.: 18,291 |
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 25th May 2013 - 03:34 PM |