// 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
@@ -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;