Hello,
i can't get automatic redirect to Paypal website to pay my order.
Every time i need to click the button.
How can i solve?
Paypal payment won't redirect to Paypal
-
- Phoca Professional
- Posts: 118
- Joined: 19 Jan 2022, 19:55
-
- Phoca Professional
- Posts: 118
- Joined: 19 Jan 2022, 19:55
Re: Paypal payment won't redirect to Paypal
Solved,
i was loading a JS function with:
it conflicts with Phoca Cart redirection.
I replaced it with:
and i solved the issue.
i was loading a JS function with:
Code: Select all
window.onload = function() {
MY_JS_FUNCTION();
};
I replaced it with:
Code: Select all
document.addEventListener('DOMContentLoaded', MY_JS_FUNCTION);
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Paypal payment won't redirect to Paypal
Ok, great to hear it, thank you for the info.
Jan
Jan
If you find Phoca extensions useful, please support the project