Results 1 to 4 of 4

Thread: Adding Paypal Buttons

  1. #1
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Adding Paypal Buttons

    1) Script Title: Image Thumbnail Viewer II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    3) Describe problem:

    I have patched together a gallery which can be seen at this link:

    http://www.picturesofpostie.com/shoptest.html

    It functions exactly as I want it to - but I now want to make Paypal "Add to Cart" buttons appear with each image. Each image has to have an individual button.

    Is this at all possible? I'd really like to find out.

    Thanks to anyone who might be able to help

    Cheers - rigbee

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Add it in the JS, something like this should keep you going
    Code:
    imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+' "><img src=\'http://www.knightlite.com/cart.gif\'/>'
    See highlighted

    Hope it helps
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. The Following User Says Thank You to rangana For This Useful Post:

    rigbee (04-02-2008)

  4. #3
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for taking the time to help rangana.

    I added the snippet of code and the gallery didn't work anymore.

    If it did work, would it not make the same button appear for each image? I was hoping for each image to have its own button.

    Any more help greatly appreciated.

  5. #4
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Hi Rigbee-
    I don't have the exact code but you can go to paypal in the merchant area and have it dynamically generate the code for you, including the button information. You'll end up with form code that you can add into your pages to bring up the buttons. You can create different products in which case you'll get different code for each or you can simply reuse the same code for every picture.

    Hope that helps.

    nefedude

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
  •