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

                              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