// retrocompatibility theme 1.4 + carrier
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15570 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
021b46c3e1
commit
8d60b64c43
1 file changed
+2
-2
@@ -155,9 +155,9 @@ class OrderControllerCore extends ParentOrderController
|
|||||||
// Check the delivery option is setted
|
// Check the delivery option is setted
|
||||||
if (!$this->context->cart->isVirtualCart())
|
if (!$this->context->cart->isVirtualCart())
|
||||||
{
|
{
|
||||||
if (!Tools::getValue('delivery_option'))
|
if (!Tools::getValue('delivery_option') && !Tools::getValue('id_carrier'))
|
||||||
Tools::redirect('index.php?controller=order&step=2');
|
Tools::redirect('index.php?controller=order&step=2');
|
||||||
else
|
elseif (!Tools::getValue('id_carrier'))
|
||||||
{
|
{
|
||||||
foreach (Tools::getValue('delivery_option') as $delivery_option)
|
foreach (Tools::getValue('delivery_option') as $delivery_option)
|
||||||
if (empty($delivery_option))
|
if (empty($delivery_option))
|
||||||
|
|||||||
Reference in new issue
Block a user