[*] FO : when an user is created in one step account creation, he is redirected to the cart if the cart is not empty, or in the my-account page if not.

This commit is contained in:
vChabot
2011-11-03 17:16:28 +00:00
parent 03d53a3e55
commit 4b2ca3193d
+6 -1
View File
@@ -369,7 +369,12 @@ class AuthControllerCore extends FrontController
);
die(Tools::jsonEncode($return));
}
Tools::redirect('index.php?controller=address');
// redirection: if cart is not empty : redirection to the cart
if (count($this->context->cart->getProducts(true)) > 0)
Tools::redirect('index.php?controller=order');
// else : redirection to the account
else
Tools::redirect('index.php?controller=my-account');
}
}