[-] FO : Fixed bug #PSCFV-1251 & #PSCFV-1727
This commit is contained in:
@@ -410,7 +410,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 || !$this->context->cart->id_address_invoice || !Validate::isLoadedObject($address_delivery) || !Validate::isLoadedObject($address_invoice) || $address_invoice->deleted || $address_delivery->deleted)
|
||||
return '<p class="warning">'.Tools::displayError('Error: please choose an address').'</p>';
|
||||
if (count($this->context->cart->getDeliveryOptionList()) == 0)
|
||||
if (count($this->context->cart->getDeliveryOptionList()) == 0 && !$this->context->cart->isVirtualCart())
|
||||
{
|
||||
if ($this->context->cart->isMultiAddressDelivery())
|
||||
return '<p class="warning">'.Tools::displayError('Error: There are no carriers available that deliver to some of your addresses').'</p>';
|
||||
|
||||
Reference in New Issue
Block a user