// Fix guest-tracking links

This commit is contained in:
rGaillard
2012-08-31 12:22:47 +00:00
parent f5bcab7459
commit b116f50131
4 changed files with 17 additions and 7 deletions
+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');