Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Open Paypal link in new Window

by

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 10 years, 10 months ago by admin.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • March 31, 2010 at 11:25 pm #1008
    GraphicBass
    Member

    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 #19324
    amin007
    Participant

    Update: 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 #19325
    GraphicBass
    Member

    Might 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 #19326
    amin007
    Participant

    Open 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 #19327
    okgood
    Member

    If 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 #19328
    amin007
    Participant

    Please 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 #19329
    okgood
    Member

    Exactly … 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 #19330
    bambiz
    Member

    I 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 #19331
    admin
    Keymaster

    Yes, the affiliate should still get the credit for the sale.

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ