From 9b7a2aea0115dc4bb15ce7705ff408a2120b7205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 31 Jan 2013 14:45:54 +0100 Subject: [PATCH] // Don't display error message for virtual cart without carrier available --- controllers/front/OrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/OrderController.php b/controllers/front/OrderController.php index 1881cc530..de8de6ba5 100644 --- a/controllers/front/OrderController.php +++ b/controllers/front/OrderController.php @@ -273,7 +273,7 @@ class OrderControllerCore extends ParentOrderController // Add checking for all addresses $address_without_carriers = $this->context->cart->getDeliveryAddressesWithoutCarriers(); - if (count($address_without_carriers)) + if (count($address_without_carriers) && !$this->context->cart->isVirtualCart()) { if (count($address_without_carriers) > 1) $this->errors[] = sprintf(Tools::displayError('There are no carriers that deliver to some addresses you selected.', !Tools::getValue('ajax')));