// changed English strings, especially focusing on colons harmonization
This commit is contained in:
@@ -73,23 +73,23 @@ class GuestTrackingControllerCore extends FrontController
|
||||
$email = Tools::getValue('email');
|
||||
|
||||
if (empty($order_reference) && empty($id_order))
|
||||
$this->errors[] = Tools::displayError('Please provide your Order Reference');
|
||||
$this->errors[] = Tools::displayError('Please provide your order\'s reference number.');
|
||||
else if (empty($email))
|
||||
$this->errors[] = Tools::displayError('Please provide your e-mail address');
|
||||
$this->errors[] = Tools::displayError('Please provide a valid email address.');
|
||||
else if (!Validate::isEmail($email))
|
||||
$this->errors[] = Tools::displayError('Please provide a valid e-mail address');
|
||||
$this->errors[] = Tools::displayError('Please provide a valid email address.');
|
||||
else if (!Customer::customerExists($email, false, false))
|
||||
$this->errors[] = Tools::displayError('There is no account associated with this e-mail address');
|
||||
$this->errors[] = Tools::displayError('There is no account associated with this email address.');
|
||||
else if (Customer::customerExists($email, false, true))
|
||||
{
|
||||
$this->errors[] = Tools::displayError('Your guest account has already been transformed into a customer account.').' '.
|
||||
Tools::displayError('Please login to your customer account to view this order, this section is reserved for guest accounts');
|
||||
Tools::displayError('Please login to your customer account to view this order. This section is reserved for guest accounts.');
|
||||
$this->context->smarty->assign('show_login_link', true);
|
||||
}
|
||||
else if (!count($order_collection))
|
||||
$this->errors[] = Tools::displayError('Invalid Order Reference');
|
||||
$this->errors[] = Tools::displayError('Invalid order reference');
|
||||
else if (!$order_collection->getFirst()->isAssociatedAtGuest($email))
|
||||
$this->errors[] = Tools::displayError('Invalid Order Reference');
|
||||
$this->errors[] = Tools::displayError('Invalid order reference');
|
||||
else
|
||||
{
|
||||
$this->assignOrderTracking($order_collection);
|
||||
@@ -99,10 +99,10 @@ class GuestTrackingControllerCore extends FrontController
|
||||
if (!Validate::isLoadedObject($customer))
|
||||
$this->errors[] = Tools::displayError('Invalid customer');
|
||||
else if (!Tools::getValue('password'))
|
||||
$this->errors[] = Tools::displayError('Invalid password');
|
||||
$this->errors[] = Tools::displayError('Invalid password.');
|
||||
else if (!$customer->transformToCustomer($this->context->language->id, Tools::getValue('password')))
|
||||
// @todo clarify error message
|
||||
$this->errors[] = Tools::displayError('An error occurred while transforming guest to customer.');
|
||||
$this->errors[] = Tools::displayError('An error occurred while transforming a guest into a registered customer.');
|
||||
else
|
||||
$this->context->smarty->assign('transformSuccess', true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user