test if cart is already transformed

This commit is contained in:
Marion Muszynski 2017-10-30 10:27:20 +01:00
parent 1585057079
commit 356a2ab034

View File

@ -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('