test if cart is already transformed
This commit is contained in:
parent
1585057079
commit
356a2ab034
@ -226,8 +226,13 @@ class Paybox extends PaymentModule
|
||||
global $cart, $smarty;
|
||||
|
||||
$customer = new Customer((int)$cart->id_customer);
|
||||
if (!Validate::isLoadedObject($customer))
|
||||
if (!Validate::isLoadedObject($customer)) {
|
||||
die(Tools::displayError());
|
||||
}
|
||||
|
||||
if ($id_order = (int)Order::getOrderByCartId($cart->id)) {
|
||||
Tools::redirect('order-detail.php?id_order='.$id_order);
|
||||
}
|
||||
|
||||
// verif if there's at least one order with this delivery address
|
||||
$orders_with_delivery_address = Db::getInstance()->getValue('
|
||||
|
Loading…
Reference in New Issue
Block a user