[*] 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.

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9860 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2011-11-03 17:16:28 +00:00
parent ef00a2400b
commit c60054b040
+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');
}
}