HelenaJ Posted March 14, 2014 Share Posted March 14, 2014 Hi, I need to add more text in the error message of the carrier. How do I do it? I want to add a email contact ... Link to comment Share on other sites More sharing options...
dioniz Posted March 14, 2014 Share Posted March 14, 2014 In BO go to Localization > Translations and under Modify translations choose Error message translations. Search for your text and replace or add Link to comment Share on other sites More sharing options...
HelenaJ Posted March 14, 2014 Author Share Posted March 14, 2014 Won't let me save the changes ... gives the error 404 when I click "Save". I started a new store because of this mistake and it happened again in this store, I have no idea why. Therefore, I want to change directly in code, is it possible? (Sorry my English) Link to comment Share on other sites More sharing options...
dioniz Posted March 14, 2014 Share Posted March 14, 2014 Code is in root > controllers > front > OrderController.php Link to comment Share on other sites More sharing options...
HelenaJ Posted March 14, 2014 Author Share Posted March 14, 2014 Thanks...but it can't be that. I have to find another way to solve my problem, because if I change this way, I get no translations. I need to add an alternative contact if there is not a carrier set for that address. Do you understand? Link to comment Share on other sites More sharing options...
dioniz Posted March 14, 2014 Share Posted March 14, 2014 (edited) Try to add this code to root > translations > en > errors.php and add your text to it: $_ERRORS['78c46e5c6e68799668e5b0af361e8e5d'] = 'There are no carriers that deliver to some addresses you selected.'; Edited March 14, 2014 by dioniz (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted March 14, 2014 Share Posted March 14, 2014 There are actually 3 versions of almost same text. Here they are: $_ERRORS['34bff86ac3ed2450ae5b4c562f353115'] = 'There are no carriers that deliver to one of the address you selected.'; $_ERRORS['78c46e5c6e68799668e5b0af361e8e5d'] = 'There are no carriers that deliver to some addresses you selected.'; $_ERRORS['d049e05d0babc4c1643c4b36397be24d'] = 'There are no carriers that deliver to the address you selected.'; Link to comment Share on other sites More sharing options...
HelenaJ Posted March 14, 2014 Author Share Posted March 14, 2014 Ok, Solved! For the other languages use the same error code? Link to comment Share on other sites More sharing options...
dioniz Posted March 14, 2014 Share Posted March 14, 2014 Yep Link to comment Share on other sites More sharing options...
HelenaJ Posted March 14, 2014 Author Share Posted March 14, 2014 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts