• Resolved exxis

    (@exxis)


    Hello everyone,

    So on the checkout page the checkout button “woocommerce_checkout_place_order” opens in the same windows when clicked, I want that it opens in a new tab because the customer is redirected to a payment provider, so my site doesn’t get closed and he can pay in a new tab.
    Where can I change the code for the button and what code is best used for this?

    Thanks in advance

    Kind Regards

    exxis

Viewing 5 replies - 1 through 5 (of 5 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @exxis!

    The customer should also be redirected back to your site after payment is made. Is this not happening? What gateway are you using?

    I suspect you will need to remove the current button, add a new button as per the article here: https://wordpress.stackexchange.com/questions/138743/how-to-add-a-second-place-order-button-in-woocommerce and then use <a target="_blank" to open in a new tab.

    Cheers!

    Thread Starter exxis

    (@exxis)

    Hello,

    thank you for your answer. Yes the customer should also still be redirected, that is working correctly, it’s simply about that the existing checkout button should open in a new tab for the convieniece of the customer, is something goes wrong, ergo payment failed or he closes the window by accident he isn’t on our site anymore, with a new tab we can work around with that.

    Thread Starter exxis

    (@exxis)

    d

    • This reply was modified 5 years, 11 months ago by exxis.
    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @exxis This sounds like something the gateway itself would need to handle if it is going offsite for payments. Typically, though, customers are redirected to the provider, they make the payment, and are then returned. This is how it works with the PayPal Standard integration that comes with WooCommerce.

    If the gateway you are using doesn’t have this option, you may need to contact a developer to help you get the customization needed. https://woocommerce.com/customizations/

    Thread Starter exxis

    (@exxis)

    as I’ve already wrote, the redirect is working but what I wanted to do is that if the checkout button is clicked, that the payment windows is opened in a new tab not the same one.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Checkout Button in new tab’ is closed to new replies.