From e35c56241fa79e08b3850dca065568bc35a3023b Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 3 May 2012 09:04:51 +0000 Subject: [PATCH] // Fix little bug git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15031 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/front/OrderController.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/controllers/front/OrderController.php b/controllers/front/OrderController.php index 123745ca9..40b901788 100644 --- a/controllers/front/OrderController.php +++ b/controllers/front/OrderController.php @@ -150,12 +150,16 @@ class OrderControllerCore extends ParentOrderController Tools::redirect('index.php?controller=order&step=2'); // Check the delivery option is setted - if (!Tools::getValue('delivery_option') && !$this->context->cart->isVirtualCart()) + if (!$this->context->cart->isVirtualCart()) { - Tools::redirect('index.php?controller=order&step=2'); - foreach (Tools::getValue('delivery_option') as $delivery_option) - if (empty($delivery_option)) + if (!Tools::getValue('delivery_option')) Tools::redirect('index.php?controller=order&step=2'); + else + { + foreach (Tools::getValue('delivery_option') as $delivery_option) + if (empty($delivery_option)) + Tools::redirect('index.php?controller=order&step=2'); + } } $this->autoStep();