• Resolved 44izzie

    (@44izzie)


    If people click on the “donate” button it opens Paypal inside the browser window of my website and I want it to open in a new tab/window, as most people close the payment window after they’re done with the payment (and then also close my website!).

    Any setting I can use to activate this?

    https://wordpress.org/plugins/paypal-donations/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, you can slightly edit a file in plugin folder to do this:

    Step 1: Go to : paypal-donations.1.8.1\paypal-donations\views\paypal-button.php

    Step 2: Find the code “$paypal_btn .= ‘<input type=”image” src=”‘ .$button_url. ‘” name=”submit” alt=”PayPal – The safer, easier way to pay online.” />’;”

    Step 3: Please replace the above code with:

    “$paypal_btn .= ‘<input formtarget=”_blank” type=”image” src=”‘ .$button_url. ‘” name=”submit” alt=”PayPal – The safer, easier way to pay online.” />’;”

    Now 🙂

    @jawad3s: Are you the plugin’s developer? if not, you really shouldn’t be encouraging people to edit the plugin’s files.

    Oops, sorry I will carefull…

    Plugin Contributor Johan Steen

    (@artstorm)

    I’ve just released version 1.8.2, where I’ve added this as an option in the advanced tab in settings.

    Cheers,
    Johan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to open Paypal in new tab/window?’ is closed to new replies.