After hitting the checkout button, I'd like to open the paypal form in a new window if possible.
Thanks for your help.
paypal form in new window
(14 posts) (4 voices)-
Posted 2 years ago #
-
Just add target="_blank" property in the form action and it will open it in a new window.
Posted 2 years ago # -
Thank you.
Posted 2 years ago # -
Exactly where in the form action? Through the plug-in editor or ???
Posted 1 year ago # -
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 # -
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 # -
Ah, okay. I was putting it in the wrong place. Thank you SO much.
Posted 1 year ago # -
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 # -
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 # -
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 #
Reply »
You must log in to post.