Trouble Shooting - ERR_TOO_MANY_REDIRECTS

Open to all! Ask other shopowners for help.
Dan Cole
Senior Contributor
Posts: 499
Joined: Fri Oct 25, 2019 2:14 pm
Phoenix Version: 1.0.8.21
Has thanked: 67 times
Been thanked: 61 times

Re: Trouble Shooting - ERR_TOO_MANY_REDIRECTS

Post by Dan Cole »

raiwa wrote: Fri Jul 19, 2024 4:04 am You should use the 2 page checkout which handles it.
Thanks Rainer. I know that would definately work as it has on my old shop for many years. I might get an update off you at some point but for now my hook seems to do what I want. It needs more testing to make sure there are no unintended consequences but it seems okay so far.

For anyone following along and might have some suggestions, here is that rather simple hook.

Code: Select all

class hook_shop_checkout_shipping_skipShipping {

  public function listen_injectRedirects() {
	if (isset($_SESSION['shipping'])) {  
		Href::redirect($GLOBALS['Linker']->build('checkout_payment.php'));
	 }
  }
}
Dan


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply