// Context part 31
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8087 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -73,7 +73,7 @@ function displayConfirm()
|
||||
{
|
||||
global $ppPayment;
|
||||
|
||||
if (!Context::getContext()->cookie->isLogged(true))
|
||||
if (!Context::getContext()->customer->isLogged(true))
|
||||
{
|
||||
header('location:../../../'); exit;
|
||||
die('Not logged');
|
||||
@@ -109,7 +109,7 @@ function submitConfirm()
|
||||
{
|
||||
global $ppPayment;
|
||||
|
||||
if (!Context::getContext()->cookie->isLogged(true))
|
||||
if (!Context::getContext()->customer->isLogged(true))
|
||||
{
|
||||
header('location:../../../'); exit;
|
||||
die('Not logged');
|
||||
@@ -128,7 +128,7 @@ function submitConfirm()
|
||||
function validOrder()
|
||||
{
|
||||
global $ppPayment;
|
||||
if (!Context::getContext()->cookie->isLogged(true))
|
||||
if (!Context::getContext()->customer->isLogged(true))
|
||||
{
|
||||
header('location:../../../'); exit;
|
||||
die('Not logged');
|
||||
@@ -151,7 +151,7 @@ function validOrder()
|
||||
// #####
|
||||
// Process !!
|
||||
|
||||
if (!Context::getContext()->cookie->isLogged(true))
|
||||
if (!Context::getContext()->customer->isLogged(true))
|
||||
die('Not logged');
|
||||
elseif (!Context::getContext()->cart->getOrderTotal(true, Cart::BOTH))
|
||||
die('Empty cart');
|
||||
|
||||
Reference in New Issue
Block a user