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'));
}
}
}