Results 1 to 1 of 1
  1. #1
    Join Date
    Aug 2010
    Posts
    6
    Plugin Contributions
    0

    link problem Need a helping hand with my social icons

    Greetings,

    I have been doing many modifications to my v139f zen-cart as time goes on. Recently I decided I would like social icons that will display on each product page so I used and slightly modified the Social Media Icons Add-on as seen in this screenshot

    Name:  screenshot1.png
Views: 215
Size:  35.0 KB

    Each button, when clicked shares that particular product that is being viewed at the time and they all work except for the pinterest button. I have it almost working 100% proper but I cannot seem to get the URL generated on click to include the URL for the product image.

    Pinterest's "Pin It" URL has this structure to make the pin-it page load properly:

    Code:
    http://pinterest.com/pin/create/button/?url=http%3A//www.yoursite.com/whatever/page.html&media=http%3A//www.yoursite.com/images/image.jpg&description=Whatever%20you%want
    So the code for the pinterest button I have is as follows

    PHP Code:
    $tw_image zen_image(DIR_WS_IMAGES 'pinterest-32x32.png''pinterest''32''32''class="socialImage"');
      
    $media_icons .= '<a class="pinterest" href="http://www.pinterest.com/pin/create/button/?url='.urlencode(zen_href_link(zen_get_info_page($products_id),'cPath='.(int)$_GET['cPath'].'&products_id=' $products_id)).'&media='.$products_image_large.'" target="_blank"/>'.$tw_image.'</a>'.'&nbsp'
    So like I said, the button works, but I am obviously not using the right variable to generate the product image url because the URL on the pin-it page ends with "&media=" without the image URL ... so what code do I need to put in place of .$products_image_large. ??

    I used that variable because that is what I saw in the code that displays the main product image so I thought it would work for this too. Thanks in advance for the help!

    **Edit** I forgot to mention I am using the Image Handler2 Add-on for the product images.
    Last edited by ffdotnet; 25 Jan 2013 at 04:55 AM. Reason: Needed to add additional information.

 

 

Similar Threads

  1. Helping Hand?
    By jackie.taferner in forum Code Collaboration
    Replies: 11
    Last Post: 2 Oct 2015, 09:19 AM
  2. Footer social Icons not showing
    By ezivape in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Mar 2013, 04:21 PM
  3. v139f Need help with my social icons pinterest button
    By ffdotnet in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Jan 2013, 03:14 PM
  4. Social Media Icons ERROR
    By WiccanWitch420 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 31 Aug 2012, 03:23 PM
  5. Spinning Social Media Icons Support Thread
    By brandonturpin in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Mar 2012, 12:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR