Page 2 of 2

Re: paypal does not redirect

Posted: 22 Feb 2021, 15:58
by Jan
I don't have any link to your site.

Jan

Re: paypal does not redirect

Posted: 26 Feb 2021, 08:45
by lupen666
good morning Jan, I have not had any more follow up to my request and I can not understand how to solve the problem. can you give me support?
thank you so much

Re: paypal does not redirect

Posted: 27 Feb 2021, 00:12
by jpeters
Lupen666
please sent jan a PM with url and login details

Re: paypal does not redirect

Posted: 02 Mar 2021, 11:42
by jpeters
@Lupen666 sent you another PM in this forum please check.
sent Jan a PM with the details. i am unable to help you solving this issue. i have looked but i can not find the issue.
other than that i expect that its a template / framework issue.

Re: paypal does not redirect

Posted: 15 Jul 2021, 13:44
by Cliffdiver
Hallo, maybe it's late, but for the future.
I had the same issue and the problem was in my template. The solution was very simple.
I added an onload="functionname()" in my body tag, and this onload function overrids the window.onload javascript of the paypal redirect window. After adding a small snipped of php code, the redirect to paypal worked again.

Code: Select all

<?php 
//check if we load the checkout page. Only at the checkout we need the onload in the body Tag.
//all other pages work fine without it.
if(preg_match('/checkout/',JUri::getInstance())){
	echo '<body id="phoca-site" onload="myFunction()">';
}
else{
	echo '<body id="phoca-site">';
	}
?>

Re: paypal does not redirect

Posted: 16 Jul 2021, 16:49
by Jan
Hi, great, thank you for this info.

Jan

Re: paypal does not redirect

Posted: 17 Nov 2021, 09:50
by nscom
Hello, I have the same problem of redirection I added the code in body but it does not work can you help me?

Re: paypal does not redirect

Posted: 17 Nov 2021, 09:58
by nscom
Should I customize the code especially the body id="phoca-site"?
Thanks