Index: branches/5.2.x/units/orders/orders_event_handler.php =================================================================== diff -u -N -r14729 -r14796 --- branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 14729) +++ branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 14796) @@ -1,6 +1,6 @@ Application->RecallVar('ord_id'); - + if ( $ses_id ) { $this->updateUserID($ses_id, $event); } @@ -529,15 +529,12 @@ function OnContinueShopping(&$event) { - $env = $this->Application->GetVar('continue_shopping_template'); - if (!$env || $env == '__default__') { - $env = $this->Application->RecallVar('continue_shopping'); - } - if (!$env) { - $env = 'in-commerce/index'; - } + $order_helper =& $this->Application->recallObject('OrderHelper'); + /* @var $order_helper OrderHelper */ - $event->redirect = $env; + $template = $this->Application->GetVar('continue_shopping_template'); + + $event->redirect = $order_helper->getContinueShoppingTemplate($template); } /**