Index: branches/5.2.x/units/orders/orders_event_handler.php =================================================================== diff -u -N -r16464 -r16469 --- branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 16464) +++ branches/5.2.x/units/orders/orders_event_handler.php (.../orders_event_handler.php) (revision 16469) @@ -1,6 +1,6 @@ Conn->Query($sql); + // Remember order ID for use on "Thank You" page. $this->Application->StoreVar('front_order_id', $order_id); + + // Remove globals, set from "_createNewCart" method. + $this->Application->DeleteVar('ord_id'); $this->Application->RemoveVar('ord_id'); + + // Prevent accidental access to non-Incomplete order. + $this->Application->removeObject($event->getPrefixSpecial()); $this->Application->Session->SetCookie('shop_cart_cookie', '', strtotime('-1 month')); }