From f2e81e4dc9f680346e20800e63f7b02b8d6ab4c8 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Wed, 30 Nov 2011 14:56:33 +0000 Subject: [PATCH] // BugFix : message "Please chose a carrier" but a delivery option is setted. --- controllers/front/OrderOpcController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/OrderOpcController.php b/controllers/front/OrderOpcController.php index 33fdf1517..500f900a2 100644 --- a/controllers/front/OrderOpcController.php +++ b/controllers/front/OrderOpcController.php @@ -392,7 +392,7 @@ class OrderOpcControllerCore extends ParentOrderController $address_invoice = ($this->context->cart->id_address_delivery == $this->context->cart->id_address_invoice ? $address_delivery : new Address($this->context->cart->id_address_invoice)); if (!$this->context->cart->id_address_delivery OR !$this->context->cart->id_address_invoice OR !Validate::isLoadedObject($address_delivery) OR !Validate::isLoadedObject($address_invoice) OR $address_invoice->deleted OR $address_delivery->deleted) return '

'.Tools::displayError('Error: please choose an address').'

'; - if (!$this->context->cart->delivery_option AND !$this->context->cart->isVirtualCart()) + if (!$this->context->cart->getDeliveryOption() AND !$this->context->cart->isVirtualCart()) return '

'.Tools::displayError('Error: please choose a carrier').'

'; if (!$this->context->cart->id_currency) return '

'.Tools::displayError('Error: no currency has been selected').'

';