Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Open Paypal link in new Window
Tagged: new window, open paypal in new window, PayPal
- This topic has 8 replies, 5 voices, and was last updated 12 years, 6 months ago by admin.
-
AuthorPosts
-
March 31, 2010 at 11:25 pm #1008GraphicBassMember
I found a form element in the “eStore_misc_functions.php” file that seemed to related to a Paypal Buy Now button. I added the “target” tag to that form element, but when tested, it did not open a new window.
In which file can I add the “target=”_blank” tag?
Thanks!
gary
April 1, 2010 at 7:54 am #19324amin007ParticipantUpdate: There is a new option in the “Advanced Settings” to open the checkout in a new window.
Please let me know for what action you want to open in a new window and I will tell you how to do it in WP eStore:
1) Open in new window when the Checkout button in the shopping cart is clicked?
or
2) Open a new window when the “Buy Now” button is clicked?
April 1, 2010 at 9:51 pm #19325GraphicBassMemberMight as well let me know about both. Most immediate is the Buy Now. But I’ll be developing a site next month that will use a cart.
Thanks!
gary
April 2, 2010 at 7:00 am #19326amin007ParticipantOpen PayPal Buy Now button in a New Window
For the “Buy Now” button open the “eStore_misc_functions.php” and search for the following:
$output .= '<form action="' . PAYPAL_LIVE_URL . '" method="post" onsubmit="return ReadForm1(this, 2);">';
Once you find it then replace it with the following:
$output .= '<form action="' . PAYPAL_LIVE_URL . '" method="post" onsubmit="return ReadForm1(this, 2);" target="_blank" >';
Open PayPal Subscription in a New Window
For the “Subscription” button open the “eStore_misc_functions.php” and search for the following:
$output .= '<form action="' . $form_submit_url . '" method="post" onsubmit="return ReadForm1(this, 3);">';
Once you find it then replace it with the following:
$output .= '<form action="' . $form_submit_url . '" method="post" onsubmit="return ReadForm1(this, 3);" target="_blank" >';
Open Cart Checkout in a New Window
For the Shopping cart checkout open the “eStore_cart.php” file and search for the following:
$output .= '<form action="' . WP_ESTORE_WP_SITE_URL . '?eStore_checkout=process" method="post">';
Once you find it replace it with the following:
$output .= '<form action="' . WP_ESTORE_WP_SITE_URL . '?eStore_checkout=process" method="post" target="_blank" >';
June 1, 2010 at 11:33 am #19327okgoodMemberIf I modify the “Buy Now” button so that another window is opened (to PayPal), then I assume that my site simply stays as it is. BUT THEN, when the user has finished paying on PayPal and returns to merchant (my site), what happens? Does the PayPal window change to my site’s thank you page, which means now there are two windows with my site open?
Is there a way that the new window (with PayPal’s site) is closed when the user returns to merchant?
June 1, 2010 at 12:57 pm #19328amin007ParticipantPlease try to understand how browsers work. If you open a new window then it creates a new instance of the application. Any operation that happens on that browser is completely detached (it has no information about the other instance). So when you customer lands on the “Thank You” page it will be on the newly opened window.
If you don’t want two windows of your site open then whey open the link in a new window in the first place?
June 1, 2010 at 2:52 pm #19329okgoodMemberExactly … this is what I feared. It makes no sense to have a second window open. I was just asking too expand on the topic which had been started by another.
May 6, 2012 at 1:33 am #19330bambizMemberI have a question about this.
I’m using the affiliate program of yours and optimizepress theme. Unfortunately, optimizepress has an exit redirect that requires a second window to be opened up so that it doesn’t fire the exit redirect pop up.
If I do open up paypal in a new window to fix optimizepress’s problem, will the affiliate still get credit for the sale?
Thank you for your help.
May 6, 2012 at 4:07 am #19331adminKeymasterYes, the affiliate should still get the credit for the sale.
-
AuthorPosts
- You must be logged in to reply to this topic.