// Fix guest-tracking links
This commit is contained in:
1 parent
f5bcab7459
commit
b116f50131
4 files changed
+17
-7
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user