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;
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
add a comment |
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
add a comment |
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
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
magento2 checkout
asked Apr 16 '16 at 11:42
V. KorovinV. Korovin
163
163
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
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>
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Apr 10 '18 at 10:52
SanneSanne
842316
842316
add a comment |
add a comment |
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>
add a comment |
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>
add a comment |
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>
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>
answered Apr 10 '18 at 11:16
D SinghD Singh
526213
526213
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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