// Fix little bug

This commit is contained in:
mDeflotte committed 2012-05-03 09:04:51 +00:00
1 parent ddf4ccd6f2
commit aa12b7c833
1 file changed
+5 -1
+5 -1
View File
@@ -150,13 +150,17 @@ class OrderControllerCore extends ParentOrderController
Tools::redirect('index.php?controller=order&step=2'); Tools::redirect('index.php?controller=order&step=2');
// Check the delivery option is setted // Check the delivery option is setted
if (!Tools::getValue('delivery_option') && !$this->context->cart->isVirtualCart()) if (!$this->context->cart->isVirtualCart())
{ {
if (!Tools::getValue('delivery_option'))
Tools::redirect('index.php?controller=order&step=2'); Tools::redirect('index.php?controller=order&step=2');
else
{
foreach (Tools::getValue('delivery_option') as $delivery_option) foreach (Tools::getValue('delivery_option') as $delivery_option)
if (empty($delivery_option)) if (empty($delivery_option))
Tools::redirect('index.php?controller=order&step=2'); Tools::redirect('index.php?controller=order&step=2');
} }
}
$this->autoStep(); $this->autoStep();