I'd like to add a Pin It button (pinterest.com) to each of my product pages. Is there an easy way to do this?
I'd like to add a Pin It button (pinterest.com) to each of my product pages. Is there an easy way to do this?
I had found this code
Code:<a href="javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());"><img style="margin: -3px 0 -5px 0;" onClick="doPinIt();" src="http://chykalophia.com/images/pinit-compact.png" alt="Pin It" />
Gordon
8.1.1
Did this work work you?
I added the above code to my product xml and works really nicely..
I problem I have, not sure if its a real problem but maybe somebody can guide me.
I made a top page that has loads of images and for each image i added the above code to basically have people pining as much images as possible. Since i have around 20+ images that means i have around 20+ scripts of the above.. so .. I am thinking that this could add an extra heavy load to my page.. Anybody know how i can split the above code to have one javascript at the top common to all the other buttons ..
I know i can go to Pinterest and use the code they supply but the functionally is completely different from this..
![]()
Gordon
8.1.1
I tried this code and it did't work for me. What am I missing? I'm using version 9
I agree...where does this go and how can I get it to contain the correct picture, description, etc.?
This worked fine for me.
http://australia.continentalclothing.jp/
The above link is an example ..
Gordon
8.1.1
Code here is
<a href="javascript:void((function()%7Bvar%20e=docume nt.createElement('script');e.setAttribute('type',' text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document .body.appendChild(e)%7D)());">
<img alt="Pin It" src="http://chykalophia.com/images/pinit-compact.png" onclick="doPinIt();" style="margin: -3px 0 -5px 0;">
</a>
For those having issues getting this to work, see the Pin It plugin/add-on: http://www.ecommercecartmods.com/p-1...torefront.aspx
Jan Simacek - Compunix, LLC
AspDotNetStorefront Platinum Devnet Partner since 2005
AspDotNetStorefront Mods and Add-Ons at http://www.ecommercecartmods.com/
- Searching, Filtering and Sorting (like cSearch, Dealer Locator, Price Ranges, Blog)
- Reports (like Cart Abandonment and Net Sales)
- Customer Experience (like Question/Answers)
- Site and Data Management (like Entity Product Mapper, Bulk Updaters, Make/Model/Year filters)