From cf249aa2dc76737b83bea24986208906be9e2452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Wed, 27 Feb 2013 14:48:04 +0100 Subject: [PATCH] // remove useless code --- classes/PaymentModule.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 2b56a4846..071ccbbc7 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -174,13 +174,6 @@ abstract class PaymentModuleCore extends Module $order_creation_failed = false; $cart_total_paid = (float)Tools::ps_round((float)$this->context->cart->getOrderTotal(true, Cart::BOTH), 2); - if ($this->context->cart->orderExists()) - { - $error = Tools::displayError('An order has already been placed using this cart.'); - Logger::addLog($error, 4, '0000001', 'Cart', intval($this->context->cart->id)); - die($error); - } - foreach ($cart_delivery_option as $id_address => $key_carriers) foreach ($delivery_option_list[$id_address][$key_carriers]['carrier_list'] as $id_carrier => $data) foreach ($data['package_list'] as $id_package)