WordPress.org

Forums

Paypal Button to far down the page (7 posts)

  1. runit
    Member
    Posted 1 year ago #

    Hi I am trying to put this paypal buy now button on a page but it always appears too far down the page. I tried hitting backspace a few times in the visual editor but I just ended up losing some of the code. Any ideas anyone?

    <center><img class="aligncenter size-full wp-image-149" alt="Name A Star Thankyou" src="http://nameastar.thesuperartlab.com/wp-content/uploads/2013/12/thankyou_pay_page.png" width="1000" height="280" />
    <center><form <a target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    
    <!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. -->
    <input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg">
    <input type="hidden" name="cmd" value="_xclick">
    <!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
    <input type="hidden" name="business" value="My Paypal Email Address">
    <input type="hidden" name="item_name" value="Name a Star Certificate">
    <input type="hidden" name="item_number" value="WS-1001">
    <input type="hidden" name="amount" value="12.99"
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="no_shipping" value="2">
    <!-- Replace value with the web page you want the customer to return to after a successful transaction -->
    <input type="hidden" name="return" value="http://nameastar.thesuperartlab.com/thankyou">
    <!-- Replace value with the web page you want the customer to return to after item cancellation -->
    <input type="hidden" name="cancel_return" value="http://nameastar.thesuperartlab.com/buy-now">
    <!-- Note: shipping override variable is used with this example -->
    <input type="hidden" name="shipping" value="0.00">
    <input type="hidden" name="button_subtype" value="products">
    <input type="hidden" name="no_note" value="0">
    <input type="hidden" name="cn" value="Add special instructions to the seller:">
    <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
    <!-- -->
    
    Name You Would Like On Certificate:
    <input type="hidden" name="on0" value="Name" />
    <input type="text" name="os0" size="30" />
    
    Your Personalized Message:
    <input type="hidden" name="on1" value="Message" />
    <textarea cols="30" name="os1" rows="4" wrap=""></textarea>
    Email Address To Send Certificate To:
    <input type="hidden" name="on2" value="Email" />
    <input type="text" name="os2" size="30" />
    <!-- -->
    <input type="image" src="http://nameastar.thesuperartlab.com/wp-content/uploads/2013/12/buynowbutton_300.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="http://nameastar.thesuperartlab.com/wp-content/uploads/2013/12/buynowbutton_300.png" width="1" height="1">
    </form><center>
  2. Mrinal Kanti Roy
    Member
    Posted 1 year ago #

    Hi Runit,

    Can you please share your website (The Page you're editing) URL here?

  3. runit
    Member
    Posted 1 year ago #

  4. Dave Naylor
    Member
    Posted 1 year ago #

    There is a <br> tag being placed in between each <input> element. This is responsible for the elongated page.

    Flip to the text editor and re-insert the code.

  5. runit
    Member
    Posted 1 year ago #

    Hi WPRanger,

    I tried that, It hasn't worked. Any other ideas?

  6. Mrinal Kanti Roy
    Member
    Posted 1 year ago #

    Hi Runit,

    Use the following codes in your website:

    <center><img class="aligncenter size-full wp-image-149" alt="Name A Star Thankyou" src="http://nameastar.thesuperartlab.com/wp-content/uploads/2013/12/thankyou_pay_page.png" width="1000" height="280" />
    <center><input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg" /><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="no_shipping" value="2" /><input type="hidden" name="return" value="http://nameastar.thesuperartlab.com/thankyou" /><input type="hidden" name="cancel_return" value="http://nameastar.thesuperartlab.com/buy-now" /><input type="hidden" name="shipping" value="0.00" /><input type="hidden" name="button_subtype" value="products" />
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">Name You Would Like On Certificate:
    <input type="hidden" name="on0" value="Name" />
    <input type="text" name="os0" size="30" />
    
    Your Personalized Message:
    <input type="hidden" name="on1" value="Message" />
    <textarea cols="30" name="os1" rows="4" wrap=""></textarea>
    Email Address To Send Certificate To:
    <input type="hidden" name="on2" value="Email" />
    <input type="text" name="os2" size="30" />
    <!-- -->
    <input type="image" alt="PayPal - The safer, easier way to pay online!" name="submit" src="http://nameastar.thesuperartlab.com/wp-content/uploads/2013/12/buynowbutton_300.png" />
    <img alt="" src="http://nameastar.thesuperartlab.com/wp-content/uploads/2013/12/buynowbutton_300.png" width="1" height="1" border="0" />
    
    </form>
    
    </center></center>

    I just opened your codes via Text Editor & deleted the space between hidden input tags, Simple! :)

  7. runit
    Member
    Posted 1 year ago #

    Yes that does move the form up the page but you missed the following code
    out. I need this code other wise it wont go to the checkout page it takes
    the user to paypal.com/home

    <input type="hidden" name="business" value="my paypal address">
    <input type="hidden" name="item_name" value="Name a Star Certificate">
    <input type="hidden" name="item_number" value="WS-1001">
    <input type="hidden" name="amount" value="12.99"
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="no_shipping" value="2">

Topic Closed

This topic has been closed to new replies.

About this Topic