// Fix little bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15031 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -150,12 +150,16 @@ 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())
|
||||||
{
|
{
|
||||||
Tools::redirect('index.php?controller=order&step=2');
|
if (!Tools::getValue('delivery_option'))
|
||||||
foreach (Tools::getValue('delivery_option') as $delivery_option)
|
|
||||||
if (empty($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)
|
||||||
|
if (empty($delivery_option))
|
||||||
|
Tools::redirect('index.php?controller=order&step=2');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->autoStep();
|
$this->autoStep();
|
||||||
|
|||||||
Reference in New Issue
Block a user