Skip to content

Commit

Permalink
[-] FO : Bad html entities for alert of order-address.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Jan 9, 2013
1 parent 882b20b commit 9771af9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions controllers/front/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,19 +252,19 @@ public function processAddress()

if (!Customer::customerHasAddress($this->context->customer->id, (int)Tools::getValue('id_address_delivery'))
|| (Tools::isSubmit('same') && !Customer::customerHasAddress($this->context->customer->id, (int)Tools::getValue('id_address_invoice'))))
$this->errors[] = Tools::displayError('Invalid address');
$this->errors[] = Tools::displayError('Invalid address', !Tools::getValue('ajax'));
else
{
// Add checking for all addresses
$address_without_carriers = $this->context->cart->getDeliveryAddressesWithoutCarriers();
if (count($address_without_carriers))
{
if (count($address_without_carriers) > 1)
$this->errors[] = sprintf(Tools::displayError('There are no carriers that deliver to some addresses you selected.'));
$this->errors[] = sprintf(Tools::displayError('There are no carriers that deliver to some addresses you selected.', !Tools::getValue('ajax')));
elseif ($this->context->cart->isMultiAddressDelivery())
$this->errors[] = sprintf(Tools::displayError('There are no carriers that deliver to one of the address you selected.'));
$this->errors[] = sprintf(Tools::displayError('There are no carriers that deliver to one of the address you selected.', !Tools::getValue('ajax')));
else
$this->errors[] = sprintf(Tools::displayError('There are no carriers that deliver to the address you selected.'));
$this->errors[] = sprintf(Tools::displayError('There are no carriers that deliver to the address you selected.', !Tools::getValue('ajax')));
}
else
{
Expand All @@ -275,7 +275,7 @@ public function processAddress()
CartRule::autoAddToCart($this->context);

if (!$this->context->cart->update())
$this->errors[] = Tools::displayError('An error occurred while updating your cart.');
$this->errors[] = Tools::displayError('An error occurred while updating your cart.', !Tools::getValue('ajax'));

if (!$this->context->cart->isMultiAddressDelivery())
$this->context->cart->setNoMultishipping(); // If there is only one delivery address, set each delivery address lines with the main delivery address
Expand Down

0 comments on commit 9771af9

Please sign in to comment.