Gallery not working with paypal buttons (4 posts)

  1. Thomasjohnwallin
    Posted 3 years ago #

    So I wanted to create a "store" and I did this by creating a gallery. The image caption contains the paypal buttons and it works great Except for one case. When I make a paypal button that has a text input and not a predetermined value for item number, amount, the paypal button doesn't work.
    HOWEVER, in the attachment page, the paypal button works still.
    To see:
    Bottom right of gallery, "Donate other item": http://williamsburgrowing.org/for-donors/wish-list
    and the attachment page: http://williamsburgrowing.org/for-donors/wish-list/donate-other

    Obviously since it works on the attachment page, I'm going to assume that there's nothing wrong with my paypal code.

    Additionally, I tried adding the image itself, and not as a gallery and the same thing. Broken button.

    Any suggested solutions or way to fix this.
    Btw the paypal code is shown here.

    `Donate other item:
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_parent"><input type="hidden" name="cmd" value="_xclick" /> <input type="hidden" name="business" value="treasurer@williamsburgrowing.org" /> <input type="hidden" name="item_name" value="WMRC Wish List-Other" /><input type="hidden" name="lc" value="US" />
    <input type="text" name="item_number" value="Item Name" />
    <input type="text" name="amount" value="$ 0.00" />
    <input type="hidden" name="currency_code" value="USD" /> <input type="hidden" name="no_note" value="0" /> <input type="hidden" name="cn" value="Add special instructions to the seller" />
    <h5 style="text-align: center;"><input type="hidden" name="no_shipping" value="2" /> <input type="hidden" name="currency_code" value="USD" /> <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted" /> <input type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" /></h5>

  2. Web Era Productions
    Posted 3 years ago #

    I would first do a line by line comparison of the working PayPal JS code (from both pages). See what, if anything, is missing/different.

  3. Thomasjohnwallin
    Posted 3 years ago #

    Um, I guess I'm too knew, but I inspected elements and I didn't see much of a difference. Can you give me a better idea?

  4. Thomasjohnwallin
    Posted 3 years ago #

    I tried taking the code out from the caption which works on the attachment page and pasting it directly into the webpage. Didn't work.

Topic Closed

This topic has been closed to new replies.

About this Topic