// Fix guest-tracking links

This commit is contained in:
rGaillard committed 2012-08-31 12:22:47 +00:00
1 parent f5bcab7459
commit b116f50131
4 files changed
+17 -7

No files matched your search

+2 -1
View File
@@ -171,9 +171,10 @@ class OrderControllerCore extends ParentOrderController
{
if ($this->context->customer->is_guest)
{
$order = new Order((int)$id_order);
$email = $this->context->customer->email;
$this->context->customer->mylogout(); // If guest we clear the cookie for security reason
Tools::redirect('index.php?controller=guest-tracking&id_order='.(int)$id_order.'&email='.urlencode($email));
Tools::redirect('index.php?controller=guest-tracking&id_order='.(int)$order->reference.'&email='.urlencode($email);
}
else
Tools::redirect('index.php?controller=history');