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.
@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.