Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password?

Search the Forum

Tips and Tricks HQ Forum » Simple PayPal Shopping Cart

paypal form in new window

(14 posts) (4 voices)
  • Started 2 years ago by webwitch
  • Latest reply from amin007
  • Related Topics:
    1. No address information from PayPal
    2. Paypal redirect to a form
    3. Checkout redirection window to paypal
    4. Send Paypal IPN Information to a Different Site
    5. Difficulty Setting up WP Affiliate Platform for Paypal Subscription Buttons

Tags:

  • form action
  • open new window
  • target="_blank"
12Next »
  1. webwitch
    Member

    After hitting the checkout button, I'd like to open the paypal form in a new window if possible.
    Thanks for your help.

    Posted 2 years ago #
  2. amin007
    Key Master

    Just add target="_blank" property in the form action and it will open it in a new window.

    Posted 2 years ago #
  3. webwitch
    Member

    Thank you.

    Posted 2 years ago #
  4. bostonchicklet8
    Member

    Exactly where in the form action? Through the plug-in editor or ???

    Posted 1 year ago #
  5. bostonchicklet8
    Member

    I tried putting the target="_blank" in the form action and it didn't work. Can you put the exact code where the target it supposed to be inserted? Thanks!

    Posted 1 year ago #
  6. amin007
    Key Master

    Search for the following line in the "wp_shopping_cart.php" file:

    <form action=\"https://www.paypal.com/us/cgi-bin/webscr\" method=\"post\">

    Once you find it change that string to the following:

    <form action=\"https://www.paypal.com/us/cgi-bin/webscr\" method=\"post\" target=\"_blank\">

    Posted 1 year ago #
  7. bostonchicklet8
    Member

    Ah, okay. I was putting it in the wrong place. Thank you SO much.

    Posted 1 year ago #
  8. bostonchicklet8
    Member

    Nope, that didn't work. I changed it here:

    $output .= "<form action=\"https://www.paypal.com/us/cgi-bin/webscr\" method=\"post\" target=\"_blank\"> $form";

    Posted 1 year ago #
  9. bostonchicklet8
    Member

    And now instead of the button showing it shows the raw code like so: [wp_cart:Demystifying Dementia DVD:price:5.95:end]

    Posted 1 year ago #
  10. amin007
    Key Master

    Please copy and paste the following line (I have tested this):

    $output .= "<form action=\"https://www.paypal.com/us/cgi-bin/webscr\" method=\"post\" target=\"_blank\" >$form";

    Posted 1 year ago #

RSS feed for this topic

12Next »

Reply »

You must log in to post.

Tips and Tricks HQ Forum is proudly powered by bbPress

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin