How to remove required and non-required fields in checkout for Magento 2?jQuery returning undefined for value in billing step on checkoutHow to make address fields not required in checkout?Magento 2 - Change the order of the Shipping fields on the Checkout pageMagento 2 manipulate shipping address fields in chekout via knockout.jsMagento 2 checkout required css classesRemove telephone as requiredMagento 2 : Required fields in checkout are no longer requiredMagento 2: “regionId is a required field.”Magento 2 Add a comment to checkout fieldsAddress Information And Customer address are not showing in magento 2

What does a yield inside a yield do?

Why is `abs()` implemented differently?

Why was the battle set up *outside* Winterfell?

Why do we use caret (^) as the symbol for ctrl/control?

What was the state of the German rail system in 1944?

Am I getting DDOS from crawlers?

I caught several of my students plagiarizing. Could it be my fault as a teacher?

Number of seconds in 6 weeks

Short story with physics professor who "brings back the dead" (Asimov or Bradbury?)

What is the most remote airport from the center of the city it supposedly serves?

Roll Dice to get a random number between 1 and 150

A non-technological, repeating, phenomenon in the sky, holding its position in the sky for hours

Reconstruct a matrix from its traces

Pressure inside an infinite ocean?

What is a "listed natural gas appliance"?

What word means "to make something obsolete"?

Did we get closer to another plane than we were supposed to, or was the pilot just protecting our delicate sensibilities?

Why is B♯ higher than C♭ in 31-ET?

How to improve/restore vintage Peugeot bike, or is it even worth it?

What does this colon mean? It is not labeling, it is not ternary operator

Is this homebrew life-stealing melee cantrip unbalanced?

If a prion is a protein, why is it not disassembled by the digestive system?

What happens to matryoshka Mordenkainen's Magnificent Mansions?

Besides the up and down quark, what other quarks are present in daily matter around us?



How to remove required and non-required fields in checkout for Magento 2?


jQuery returning undefined for value in billing step on checkoutHow to make address fields not required in checkout?Magento 2 - Change the order of the Shipping fields on the Checkout pageMagento 2 manipulate shipping address fields in chekout via knockout.jsMagento 2 checkout required css classesRemove telephone as requiredMagento 2 : Required fields in checkout are no longer requiredMagento 2: “regionId is a required field.”Magento 2 Add a comment to checkout fieldsAddress Information And Customer address are not showing in magento 2






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








3















I need to remove some fields in Magento 2 in the checkout, for example fax and other. At the same time, i need to remove also some required fields, for example e-mail. In my place some old people do not use e-mail, therefore when they place an order they type thier phone, so the manager call to customer to now details of order. So, in my situation, i need to make required only this field in checkout:



  • Telephone

And i need to shows only following fields as non-required:
- Name, Surname
- E-mail
- City



So, totaly 4 fields must be shown to customer, and the others (fax, address, etc.) must be hidden (or better disabled).
I'm only begginer in Magento, so kindly ask you to give me some guide how can i do this and explain in details. Also, please, say to me all the path to file that i need to edit. I have some knowledge of PHP, for some CMS before i write modules, but a cannot understand which file to edit to hide and disable required fields in case of Magento 2. Thx.










share|improve this question




























    3















    I need to remove some fields in Magento 2 in the checkout, for example fax and other. At the same time, i need to remove also some required fields, for example e-mail. In my place some old people do not use e-mail, therefore when they place an order they type thier phone, so the manager call to customer to now details of order. So, in my situation, i need to make required only this field in checkout:



    • Telephone

    And i need to shows only following fields as non-required:
    - Name, Surname
    - E-mail
    - City



    So, totaly 4 fields must be shown to customer, and the others (fax, address, etc.) must be hidden (or better disabled).
    I'm only begginer in Magento, so kindly ask you to give me some guide how can i do this and explain in details. Also, please, say to me all the path to file that i need to edit. I have some knowledge of PHP, for some CMS before i write modules, but a cannot understand which file to edit to hide and disable required fields in case of Magento 2. Thx.










    share|improve this question
























      3












      3








      3


      5






      I need to remove some fields in Magento 2 in the checkout, for example fax and other. At the same time, i need to remove also some required fields, for example e-mail. In my place some old people do not use e-mail, therefore when they place an order they type thier phone, so the manager call to customer to now details of order. So, in my situation, i need to make required only this field in checkout:



      • Telephone

      And i need to shows only following fields as non-required:
      - Name, Surname
      - E-mail
      - City



      So, totaly 4 fields must be shown to customer, and the others (fax, address, etc.) must be hidden (or better disabled).
      I'm only begginer in Magento, so kindly ask you to give me some guide how can i do this and explain in details. Also, please, say to me all the path to file that i need to edit. I have some knowledge of PHP, for some CMS before i write modules, but a cannot understand which file to edit to hide and disable required fields in case of Magento 2. Thx.










      share|improve this question














      I need to remove some fields in Magento 2 in the checkout, for example fax and other. At the same time, i need to remove also some required fields, for example e-mail. In my place some old people do not use e-mail, therefore when they place an order they type thier phone, so the manager call to customer to now details of order. So, in my situation, i need to make required only this field in checkout:



      • Telephone

      And i need to shows only following fields as non-required:
      - Name, Surname
      - E-mail
      - City



      So, totaly 4 fields must be shown to customer, and the others (fax, address, etc.) must be hidden (or better disabled).
      I'm only begginer in Magento, so kindly ask you to give me some guide how can i do this and explain in details. Also, please, say to me all the path to file that i need to edit. I have some knowledge of PHP, for some CMS before i write modules, but a cannot understand which file to edit to hide and disable required fields in case of Magento 2. Thx.







      magento2 checkout






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 16 '16 at 11:42









      V. KorovinV. Korovin

      163




      163




















          2 Answers
          2






          active

          oldest

          votes


















          0














          To remove fields in the checkout you can use this in checkout_index_index.xml, it doesn't matter if it was required or not, gone is gone:



          <item name="telephone" xsi:type="array">
          <item name="config" xsi:type="array">
          <item name="componentDisabled" xsi:type="boolean">true</item>
          </item>
          </item>


          checkout_index_index.xml should be added to




          public_html/app/design/frontend/%Vendor%/%Themename%/Magento_Checkout/layout




          You can read more about this here.






          share|improve this answer






























            0














            Add this code in the checkout_index_index.xml for remove the require entry at the respective item name. For example, i have removed required for firstname.



            <item name="firstname" xsi:type="array">
            <item name="validation" xsi:type="array">
            <item name="required-entry" xsi:type="boolean">false</item>
            </item>
            </item>





            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%2f111164%2fhow-to-remove-required-and-non-required-fields-in-checkout-for-magento-2%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














              To remove fields in the checkout you can use this in checkout_index_index.xml, it doesn't matter if it was required or not, gone is gone:



              <item name="telephone" xsi:type="array">
              <item name="config" xsi:type="array">
              <item name="componentDisabled" xsi:type="boolean">true</item>
              </item>
              </item>


              checkout_index_index.xml should be added to




              public_html/app/design/frontend/%Vendor%/%Themename%/Magento_Checkout/layout




              You can read more about this here.






              share|improve this answer



























                0














                To remove fields in the checkout you can use this in checkout_index_index.xml, it doesn't matter if it was required or not, gone is gone:



                <item name="telephone" xsi:type="array">
                <item name="config" xsi:type="array">
                <item name="componentDisabled" xsi:type="boolean">true</item>
                </item>
                </item>


                checkout_index_index.xml should be added to




                public_html/app/design/frontend/%Vendor%/%Themename%/Magento_Checkout/layout




                You can read more about this here.






                share|improve this answer

























                  0












                  0








                  0







                  To remove fields in the checkout you can use this in checkout_index_index.xml, it doesn't matter if it was required or not, gone is gone:



                  <item name="telephone" xsi:type="array">
                  <item name="config" xsi:type="array">
                  <item name="componentDisabled" xsi:type="boolean">true</item>
                  </item>
                  </item>


                  checkout_index_index.xml should be added to




                  public_html/app/design/frontend/%Vendor%/%Themename%/Magento_Checkout/layout




                  You can read more about this here.






                  share|improve this answer













                  To remove fields in the checkout you can use this in checkout_index_index.xml, it doesn't matter if it was required or not, gone is gone:



                  <item name="telephone" xsi:type="array">
                  <item name="config" xsi:type="array">
                  <item name="componentDisabled" xsi:type="boolean">true</item>
                  </item>
                  </item>


                  checkout_index_index.xml should be added to




                  public_html/app/design/frontend/%Vendor%/%Themename%/Magento_Checkout/layout




                  You can read more about this here.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 10 '18 at 10:52









                  SanneSanne

                  842316




                  842316























                      0














                      Add this code in the checkout_index_index.xml for remove the require entry at the respective item name. For example, i have removed required for firstname.



                      <item name="firstname" xsi:type="array">
                      <item name="validation" xsi:type="array">
                      <item name="required-entry" xsi:type="boolean">false</item>
                      </item>
                      </item>





                      share|improve this answer



























                        0














                        Add this code in the checkout_index_index.xml for remove the require entry at the respective item name. For example, i have removed required for firstname.



                        <item name="firstname" xsi:type="array">
                        <item name="validation" xsi:type="array">
                        <item name="required-entry" xsi:type="boolean">false</item>
                        </item>
                        </item>





                        share|improve this answer

























                          0












                          0








                          0







                          Add this code in the checkout_index_index.xml for remove the require entry at the respective item name. For example, i have removed required for firstname.



                          <item name="firstname" xsi:type="array">
                          <item name="validation" xsi:type="array">
                          <item name="required-entry" xsi:type="boolean">false</item>
                          </item>
                          </item>





                          share|improve this answer













                          Add this code in the checkout_index_index.xml for remove the require entry at the respective item name. For example, i have removed required for firstname.



                          <item name="firstname" xsi:type="array">
                          <item name="validation" xsi:type="array">
                          <item name="required-entry" xsi:type="boolean">false</item>
                          </item>
                          </item>






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Apr 10 '18 at 11:16









                          D SinghD Singh

                          526213




                          526213



























                              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%2f111164%2fhow-to-remove-required-and-non-required-fields-in-checkout-for-magento-2%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

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

                              Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                              Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?