Results 1 to 10 of 10

Thread: Pin It Button

  1. #1
    Join Date
    Feb 2007
    Posts
    53

    Default Pin It Button

    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?

  2. #2
    Join Date
    Sep 2005
    Posts
    213

    Default

    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

  3. #3
    Join Date
    Sep 2005
    Posts
    213

    Default

    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

  4. #4
    Join Date
    Mar 2012
    Posts
    2

    Default

    I tried this code and it did't work for me. What am I missing? I'm using version 9

  5. #5
    Join Date
    May 2009
    Location
    Sweden
    Posts
    556

  6. #6
    Join Date
    Mar 2012
    Posts
    2

    Default

    I agree...where does this go and how can I get it to contain the correct picture, description, etc.?

  7. #7
    Join Date
    Sep 2005
    Posts
    213

    Default

    This worked fine for me.

    http://australia.continentalclothing.jp/

    The above link is an example ..
    Gordon

    8.1.1

  8. #8
    Join Date
    Apr 2012
    Posts
    1

    Default Not quite working

    Quote Originally Posted by tito View Post
    This worked fine for me.

    http://australia.continentalclothing.jp/

    The above link is an example ..
    Hi Tito, can you explain where you put the script? I tried and the code did not work quite right for me.

  9. #9
    Join Date
    May 2009
    Location
    Sweden
    Posts
    556

    Default

    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>

  10. #10
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    367

    Default

    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)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •