// 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
@@ -165,10 +165,11 @@ class OrderOpcControllerCore extends ParentOrderController
/* Bypass payment step if total is 0 */
if (($id_order = $this->_checkFreeOrder()) && $id_order)
{
$order = new Order((int)$id_order);
$email = $this->context->customer->email;
if ($this->context->customer->is_guest)
$this->context->customer->logout(); // If guest we clear the cookie for security reason
die('freeorder:'.$id_order.':'.$email);
die('freeorder:'.$order->reference.':'.$email);
}
exit;
break;