Magento 2 change validation messsage in checkout address fieldsValidation error in checkout page shipping addressData population in UI formValidation Error with jQuery-UI Autocomplete and KnockoutJs - Magento 2Address validation in magento 2 checkout page and address bookMagento 2: How to add a Color Picker in Grid?Magento 2.2.0 - checkout_index_index.xml shippingAdditional not workingMagento 2 Checkout billing address validation messageMagento 2.2.1: Add Custom Upload file attribute in CheckoutCheckout email domain validationMagento 2 how to add extra validation to new Billing address form fields in checkout page

How do Canadians get a visa to go to Saudi Arabia?

Skipping same old introductions

Adjective for when skills are not improving and I'm depressed about it

"Will flex for food". What does this phrase mean?

Is the EU really banning "toxic propellants" in 2020? How is that going to work?

Can living where magnetic ore is abundant provide any protection from cosmic radiation?

How to derive trigonometric Cartesian equation from parametric

Oath of redemption: Does Emmissary of Peace reflect damage taken from Aura of the Guardian?

Went to a big 4 but got fired for underperformance in a year recently - Now every one thinks I'm pro - How to balance expectations?

Why have both: BJT and FET transistors on IC output?

How did Biff return to 2015 from 1955 without a lightning strike?

Has the US government provided details on plans to deal with AIDS and childhood cancer?

UX writing: When to use "we"?

Why do we need a voltage divider when we get the same voltage at the output as the input?

I don't understand functional equations. A complicated question.

A conjectural trigonometric identity

How can a class have multiple methods without breaking the single responsibility principle

Is there a general term for the items in a directory?

Feedback diagram

When did J.K. Rowling decide to make Harry and Ginny a couple?

Best Ergonomic Design for a handheld ranged weapon

How to compare files with diffrent extensions and delete extra files?

Is it moral to remove/hide certain parts of a photo, as a photographer?

Can I say "Gesundheit" if someone is coughing?



Magento 2 change validation messsage in checkout address fields


Validation error in checkout page shipping addressData population in UI formValidation Error with jQuery-UI Autocomplete and KnockoutJs - Magento 2Address validation in magento 2 checkout page and address bookMagento 2: How to add a Color Picker in Grid?Magento 2.2.0 - checkout_index_index.xml shippingAdditional not workingMagento 2 Checkout billing address validation messageMagento 2.2.1: Add Custom Upload file attribute in CheckoutCheckout email domain validationMagento 2 how to add extra validation to new Billing address form fields in checkout page






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Working on Magento 2 checkout validation following is the code



<?php
namespace VendorNameModuleNameBlock;

class LayoutProcessor

/**
* @param MagentoCheckoutBlockCheckoutLayoutProcessor $subject
* @param array $jsLayout
* @return array
*/
public function afterProcess(
MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
array $jsLayout
)
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['street'] = [
'component' => 'Magento_Ui/js/form/components/group',
'label' => __('Address'),
'required' => true,
'dataScope' => 'shippingAddress.street',
'provider' => 'checkoutProvider',
'sortOrder' => 60,
'type' => 'group',
'children' => [
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '0',
'provider' => 'checkoutProvider',
'validation' => true,
'additionalClasses' => 'additional',
'label' => __('Street')
],
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '1',
'provider' => 'checkoutProvider',
'validation' => true,
'label' => __('Number')
],
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '2',
'provider' => 'checkoutProvider',
'validation' => true,
'label' => __('District')
]
]

];

return $jsLayout;




How to change the vallidation message for the fields Please help










share|improve this question
























  • which message for which field are you looking for change?

    – Rakesh Jesadiya
    Jun 23 '17 at 10:46











  • error message in street input field

    – Paras Arora
    Jun 23 '17 at 10:50











  • what message are you looking for show in this field?

    – Rakesh Jesadiya
    Jun 23 '17 at 10:51











  • "Please enter less or equal than 30 symbol" to "30 characters max"

    – Paras Arora
    Jun 23 '17 at 10:59

















0















Working on Magento 2 checkout validation following is the code



<?php
namespace VendorNameModuleNameBlock;

class LayoutProcessor

/**
* @param MagentoCheckoutBlockCheckoutLayoutProcessor $subject
* @param array $jsLayout
* @return array
*/
public function afterProcess(
MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
array $jsLayout
)
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['street'] = [
'component' => 'Magento_Ui/js/form/components/group',
'label' => __('Address'),
'required' => true,
'dataScope' => 'shippingAddress.street',
'provider' => 'checkoutProvider',
'sortOrder' => 60,
'type' => 'group',
'children' => [
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '0',
'provider' => 'checkoutProvider',
'validation' => true,
'additionalClasses' => 'additional',
'label' => __('Street')
],
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '1',
'provider' => 'checkoutProvider',
'validation' => true,
'label' => __('Number')
],
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '2',
'provider' => 'checkoutProvider',
'validation' => true,
'label' => __('District')
]
]

];

return $jsLayout;




How to change the vallidation message for the fields Please help










share|improve this question
























  • which message for which field are you looking for change?

    – Rakesh Jesadiya
    Jun 23 '17 at 10:46











  • error message in street input field

    – Paras Arora
    Jun 23 '17 at 10:50











  • what message are you looking for show in this field?

    – Rakesh Jesadiya
    Jun 23 '17 at 10:51











  • "Please enter less or equal than 30 symbol" to "30 characters max"

    – Paras Arora
    Jun 23 '17 at 10:59













0












0








0








Working on Magento 2 checkout validation following is the code



<?php
namespace VendorNameModuleNameBlock;

class LayoutProcessor

/**
* @param MagentoCheckoutBlockCheckoutLayoutProcessor $subject
* @param array $jsLayout
* @return array
*/
public function afterProcess(
MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
array $jsLayout
)
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['street'] = [
'component' => 'Magento_Ui/js/form/components/group',
'label' => __('Address'),
'required' => true,
'dataScope' => 'shippingAddress.street',
'provider' => 'checkoutProvider',
'sortOrder' => 60,
'type' => 'group',
'children' => [
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '0',
'provider' => 'checkoutProvider',
'validation' => true,
'additionalClasses' => 'additional',
'label' => __('Street')
],
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '1',
'provider' => 'checkoutProvider',
'validation' => true,
'label' => __('Number')
],
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '2',
'provider' => 'checkoutProvider',
'validation' => true,
'label' => __('District')
]
]

];

return $jsLayout;




How to change the vallidation message for the fields Please help










share|improve this question














Working on Magento 2 checkout validation following is the code



<?php
namespace VendorNameModuleNameBlock;

class LayoutProcessor

/**
* @param MagentoCheckoutBlockCheckoutLayoutProcessor $subject
* @param array $jsLayout
* @return array
*/
public function afterProcess(
MagentoCheckoutBlockCheckoutLayoutProcessor $subject,
array $jsLayout
)
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['street'] = [
'component' => 'Magento_Ui/js/form/components/group',
'label' => __('Address'),
'required' => true,
'dataScope' => 'shippingAddress.street',
'provider' => 'checkoutProvider',
'sortOrder' => 60,
'type' => 'group',
'children' => [
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '0',
'provider' => 'checkoutProvider',
'validation' => true,
'additionalClasses' => 'additional',
'label' => __('Street')
],
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '1',
'provider' => 'checkoutProvider',
'validation' => true,
'label' => __('Number')
],
[
'component' => 'Magento_Ui/js/form/element/abstract',
'config' => [
'customScope' => 'shippingAddress',
'template' => 'ui/form/field',
'elementTmpl' => 'ui/form/element/input'
],
'dataScope' => '2',
'provider' => 'checkoutProvider',
'validation' => true,
'label' => __('District')
]
]

];

return $jsLayout;




How to change the vallidation message for the fields Please help







magento-2.1 checkout validation






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 23 '17 at 10:35









Paras AroraParas Arora

4724 silver badges21 bronze badges




4724 silver badges21 bronze badges















  • which message for which field are you looking for change?

    – Rakesh Jesadiya
    Jun 23 '17 at 10:46











  • error message in street input field

    – Paras Arora
    Jun 23 '17 at 10:50











  • what message are you looking for show in this field?

    – Rakesh Jesadiya
    Jun 23 '17 at 10:51











  • "Please enter less or equal than 30 symbol" to "30 characters max"

    – Paras Arora
    Jun 23 '17 at 10:59

















  • which message for which field are you looking for change?

    – Rakesh Jesadiya
    Jun 23 '17 at 10:46











  • error message in street input field

    – Paras Arora
    Jun 23 '17 at 10:50











  • what message are you looking for show in this field?

    – Rakesh Jesadiya
    Jun 23 '17 at 10:51











  • "Please enter less or equal than 30 symbol" to "30 characters max"

    – Paras Arora
    Jun 23 '17 at 10:59
















which message for which field are you looking for change?

– Rakesh Jesadiya
Jun 23 '17 at 10:46





which message for which field are you looking for change?

– Rakesh Jesadiya
Jun 23 '17 at 10:46













error message in street input field

– Paras Arora
Jun 23 '17 at 10:50





error message in street input field

– Paras Arora
Jun 23 '17 at 10:50













what message are you looking for show in this field?

– Rakesh Jesadiya
Jun 23 '17 at 10:51





what message are you looking for show in this field?

– Rakesh Jesadiya
Jun 23 '17 at 10:51













"Please enter less or equal than 30 symbol" to "30 characters max"

– Paras Arora
Jun 23 '17 at 10:59





"Please enter less or equal than 30 symbol" to "30 characters max"

– Paras Arora
Jun 23 '17 at 10:59










2 Answers
2






active

oldest

votes


















0














You can change validation message via magento translations.



More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/translations/xlate.html



Here is ways how to add translations:



- add new translation to theme




app/design/frontend/Vendor/theme/i18n/en_US.csv (low priority: 3)




More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html



- create your own language package




app/code/Vendor/MyLocale/en_US.csv (priority: 2)




More information here http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-i18n.html#config-cli-subcommands-xlate-pack



- use Inline Translation in admin (high priority: 1)



Priority defines which translation dictionary will loaded first.




JS translations stored in static files so you need to re-deploy static content. Or you can just remove js-translation.json files. In magento root folder run




find pub/static/frontend -name js-translation.json -exec rm -rf ;







share|improve this answer


































    0














    You should be able to translate the error messages via i18n package.
    But there is a bug in Magento up to 2.1.7 at least that won't let you translate these error messages.
    You can read this thread for possible solutions. Although I tried all of them and for me none worked so far.



    https://github.com/magento/magento2/issues/4883






    share|improve this answer



























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f180465%2fmagento-2-change-validation-messsage-in-checkout-address-fields%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      You can change validation message via magento translations.



      More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/translations/xlate.html



      Here is ways how to add translations:



      - add new translation to theme




      app/design/frontend/Vendor/theme/i18n/en_US.csv (low priority: 3)




      More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html



      - create your own language package




      app/code/Vendor/MyLocale/en_US.csv (priority: 2)




      More information here http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-i18n.html#config-cli-subcommands-xlate-pack



      - use Inline Translation in admin (high priority: 1)



      Priority defines which translation dictionary will loaded first.




      JS translations stored in static files so you need to re-deploy static content. Or you can just remove js-translation.json files. In magento root folder run




      find pub/static/frontend -name js-translation.json -exec rm -rf ;







      share|improve this answer































        0














        You can change validation message via magento translations.



        More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/translations/xlate.html



        Here is ways how to add translations:



        - add new translation to theme




        app/design/frontend/Vendor/theme/i18n/en_US.csv (low priority: 3)




        More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html



        - create your own language package




        app/code/Vendor/MyLocale/en_US.csv (priority: 2)




        More information here http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-i18n.html#config-cli-subcommands-xlate-pack



        - use Inline Translation in admin (high priority: 1)



        Priority defines which translation dictionary will loaded first.




        JS translations stored in static files so you need to re-deploy static content. Or you can just remove js-translation.json files. In magento root folder run




        find pub/static/frontend -name js-translation.json -exec rm -rf ;







        share|improve this answer





























          0












          0








          0







          You can change validation message via magento translations.



          More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/translations/xlate.html



          Here is ways how to add translations:



          - add new translation to theme




          app/design/frontend/Vendor/theme/i18n/en_US.csv (low priority: 3)




          More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html



          - create your own language package




          app/code/Vendor/MyLocale/en_US.csv (priority: 2)




          More information here http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-i18n.html#config-cli-subcommands-xlate-pack



          - use Inline Translation in admin (high priority: 1)



          Priority defines which translation dictionary will loaded first.




          JS translations stored in static files so you need to re-deploy static content. Or you can just remove js-translation.json files. In magento root folder run




          find pub/static/frontend -name js-translation.json -exec rm -rf ;







          share|improve this answer















          You can change validation message via magento translations.



          More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/translations/xlate.html



          Here is ways how to add translations:



          - add new translation to theme




          app/design/frontend/Vendor/theme/i18n/en_US.csv (low priority: 3)




          More information here http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/theme-create.html



          - create your own language package




          app/code/Vendor/MyLocale/en_US.csv (priority: 2)




          More information here http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-i18n.html#config-cli-subcommands-xlate-pack



          - use Inline Translation in admin (high priority: 1)



          Priority defines which translation dictionary will loaded first.




          JS translations stored in static files so you need to re-deploy static content. Or you can just remove js-translation.json files. In magento root folder run




          find pub/static/frontend -name js-translation.json -exec rm -rf ;








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 23 '17 at 10:58

























          answered Jun 23 '17 at 10:52









          Nicholas MillerNicholas Miller

          9334 silver badges13 bronze badges




          9334 silver badges13 bronze badges


























              0














              You should be able to translate the error messages via i18n package.
              But there is a bug in Magento up to 2.1.7 at least that won't let you translate these error messages.
              You can read this thread for possible solutions. Although I tried all of them and for me none worked so far.



              https://github.com/magento/magento2/issues/4883






              share|improve this answer





























                0














                You should be able to translate the error messages via i18n package.
                But there is a bug in Magento up to 2.1.7 at least that won't let you translate these error messages.
                You can read this thread for possible solutions. Although I tried all of them and for me none worked so far.



                https://github.com/magento/magento2/issues/4883






                share|improve this answer



























                  0












                  0








                  0







                  You should be able to translate the error messages via i18n package.
                  But there is a bug in Magento up to 2.1.7 at least that won't let you translate these error messages.
                  You can read this thread for possible solutions. Although I tried all of them and for me none worked so far.



                  https://github.com/magento/magento2/issues/4883






                  share|improve this answer













                  You should be able to translate the error messages via i18n package.
                  But there is a bug in Magento up to 2.1.7 at least that won't let you translate these error messages.
                  You can read this thread for possible solutions. Although I tried all of them and for me none worked so far.



                  https://github.com/magento/magento2/issues/4883







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 23 '17 at 11:08









                  sterossteros

                  89712 silver badges33 bronze badges




                  89712 silver badges33 bronze badges






























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f180465%2fmagento-2-change-validation-messsage-in-checkout-address-fields%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                      Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                      Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form