Customize Checkout Page And Remove Postal Code And Extra Fields












2














Hello Friends I Want to Customize My Checkout Page In Magento 2 and remove extra fields Zip/Postal Country Etc. I Using Magento 2.2.6 Version And My Theme Is Fastest.



I alsoedited checkout_index_index.xml File



Here's the codes



    <?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="checkout.root">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="checkout" xsi:type="array">
<item name="children" xsi:type="array">
<item name="steps" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shipping-step" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shippingAddress" xsi:type="array">
<item name="component" xsi:type="string">MilkJarCookies_OrderDeliveryDate/js/view/shipping</item>
<item name="children" xsi:type="array">
<item name="shipping-address-fieldset" xsi:type="array">
<item name="children" xsi:type="array">
<item name="country_id" xsi:type="array">
<item name="sortOrder" xsi:type="string">1001</item>
</item>
<item name="region_id" xsi:type="array">
<item name="sortOrder" xsi:type="string">1002</item>
</item>
<item name="region" xsi:type="array">
<item name="sortOrder" xsi:type="string">1002</item>
</item>
<item name="postcode" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
</item>
</item>
</item>
</item>
</item>









share|improve this question









New contributor




Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • after above change, do you run caching and deploy command and then check?
    – Dhiren Vasoya
    5 hours ago
















2














Hello Friends I Want to Customize My Checkout Page In Magento 2 and remove extra fields Zip/Postal Country Etc. I Using Magento 2.2.6 Version And My Theme Is Fastest.



I alsoedited checkout_index_index.xml File



Here's the codes



    <?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="checkout.root">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="checkout" xsi:type="array">
<item name="children" xsi:type="array">
<item name="steps" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shipping-step" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shippingAddress" xsi:type="array">
<item name="component" xsi:type="string">MilkJarCookies_OrderDeliveryDate/js/view/shipping</item>
<item name="children" xsi:type="array">
<item name="shipping-address-fieldset" xsi:type="array">
<item name="children" xsi:type="array">
<item name="country_id" xsi:type="array">
<item name="sortOrder" xsi:type="string">1001</item>
</item>
<item name="region_id" xsi:type="array">
<item name="sortOrder" xsi:type="string">1002</item>
</item>
<item name="region" xsi:type="array">
<item name="sortOrder" xsi:type="string">1002</item>
</item>
<item name="postcode" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
</item>
</item>
</item>
</item>
</item>









share|improve this question









New contributor




Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • after above change, do you run caching and deploy command and then check?
    – Dhiren Vasoya
    5 hours ago














2












2








2







Hello Friends I Want to Customize My Checkout Page In Magento 2 and remove extra fields Zip/Postal Country Etc. I Using Magento 2.2.6 Version And My Theme Is Fastest.



I alsoedited checkout_index_index.xml File



Here's the codes



    <?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="checkout.root">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="checkout" xsi:type="array">
<item name="children" xsi:type="array">
<item name="steps" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shipping-step" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shippingAddress" xsi:type="array">
<item name="component" xsi:type="string">MilkJarCookies_OrderDeliveryDate/js/view/shipping</item>
<item name="children" xsi:type="array">
<item name="shipping-address-fieldset" xsi:type="array">
<item name="children" xsi:type="array">
<item name="country_id" xsi:type="array">
<item name="sortOrder" xsi:type="string">1001</item>
</item>
<item name="region_id" xsi:type="array">
<item name="sortOrder" xsi:type="string">1002</item>
</item>
<item name="region" xsi:type="array">
<item name="sortOrder" xsi:type="string">1002</item>
</item>
<item name="postcode" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
</item>
</item>
</item>
</item>
</item>









share|improve this question









New contributor




Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Hello Friends I Want to Customize My Checkout Page In Magento 2 and remove extra fields Zip/Postal Country Etc. I Using Magento 2.2.6 Version And My Theme Is Fastest.



I alsoedited checkout_index_index.xml File



Here's the codes



    <?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="checkout.root">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="checkout" xsi:type="array">
<item name="children" xsi:type="array">
<item name="steps" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shipping-step" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shippingAddress" xsi:type="array">
<item name="component" xsi:type="string">MilkJarCookies_OrderDeliveryDate/js/view/shipping</item>
<item name="children" xsi:type="array">
<item name="shipping-address-fieldset" xsi:type="array">
<item name="children" xsi:type="array">
<item name="country_id" xsi:type="array">
<item name="sortOrder" xsi:type="string">1001</item>
</item>
<item name="region_id" xsi:type="array">
<item name="sortOrder" xsi:type="string">1002</item>
</item>
<item name="region" xsi:type="array">
<item name="sortOrder" xsi:type="string">1002</item>
</item>
<item name="postcode" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
</item>
</item>
</item>
</item>
</item>






magento2 checkout orders customize






share|improve this question









New contributor




Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 14 mins ago









Yann Martel

5311




5311






New contributor




Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 5 hours ago









Abdullah

111




111




New contributor




Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Abdullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • after above change, do you run caching and deploy command and then check?
    – Dhiren Vasoya
    5 hours ago


















  • after above change, do you run caching and deploy command and then check?
    – Dhiren Vasoya
    5 hours ago
















after above change, do you run caching and deploy command and then check?
– Dhiren Vasoya
5 hours ago




after above change, do you run caching and deploy command and then check?
– Dhiren Vasoya
5 hours ago










1 Answer
1






active

oldest

votes


















1














Try following code:




<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="checkout.root">
<arguments>
<argument name="jsLayout" xsi:type="array">
<item name="components" xsi:type="array">
<item name="checkout" xsi:type="array">
<item name="children" xsi:type="array">
<item name="steps" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shipping-step" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shippingAddress" xsi:type="array">
<item name="children" xsi:type="array">
<item name="shipping-address-fieldset" xsi:type="array">
<item name="children" xsi:type="array">
<item name="custom_new_field" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/form/element/abstract</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">false</item>
</item>
<item name="sortOrder" xsi:type="string">1105</item>
<item name="config" xsi:type="array">
<item name="tooltip" xsi:type="array">
<item name="description" xsi:type="string" translate="true">Custom New Field</item>
</item>
<item name="elementTmpl" xsi:type="string">ui/form/element/input</item>
<item name="template" xsi:type="string">ui/form/field</item>
<item name="customScope" xsi:type="string">shippingAddress.custom_new_field</item>
</item>
<item name="dataScope" xsi:type="string">shippingAddress.custom_attributes.custom_new_field</item>
<item name="provider" xsi:type="string">checkoutProvider</item>
<item name="label" xsi:type="string" translate="true">Custom New Field</item>
</item>
<item name="postcode" xsi:type="array">
<item name="config" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</item>
</argument>
</arguments>
</referenceBlock>
</body>
</page>






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
    });


    }
    });






    Abdullah is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f255725%2fcustomize-checkout-page-and-remove-postal-code-and-extra-fields%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Try following code:




    <?xml version="1.0"?>
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
    <referenceBlock name="checkout.root">
    <arguments>
    <argument name="jsLayout" xsi:type="array">
    <item name="components" xsi:type="array">
    <item name="checkout" xsi:type="array">
    <item name="children" xsi:type="array">
    <item name="steps" xsi:type="array">
    <item name="children" xsi:type="array">
    <item name="shipping-step" xsi:type="array">
    <item name="children" xsi:type="array">
    <item name="shippingAddress" xsi:type="array">
    <item name="children" xsi:type="array">
    <item name="shipping-address-fieldset" xsi:type="array">
    <item name="children" xsi:type="array">
    <item name="custom_new_field" xsi:type="array">
    <item name="component" xsi:type="string">Magento_Ui/js/form/element/abstract</item>
    <item name="validation" xsi:type="array">
    <item name="required-entry" xsi:type="boolean">false</item>
    </item>
    <item name="sortOrder" xsi:type="string">1105</item>
    <item name="config" xsi:type="array">
    <item name="tooltip" xsi:type="array">
    <item name="description" xsi:type="string" translate="true">Custom New Field</item>
    </item>
    <item name="elementTmpl" xsi:type="string">ui/form/element/input</item>
    <item name="template" xsi:type="string">ui/form/field</item>
    <item name="customScope" xsi:type="string">shippingAddress.custom_new_field</item>
    </item>
    <item name="dataScope" xsi:type="string">shippingAddress.custom_attributes.custom_new_field</item>
    <item name="provider" xsi:type="string">checkoutProvider</item>
    <item name="label" xsi:type="string" translate="true">Custom New Field</item>
    </item>
    <item name="postcode" xsi:type="array">
    <item name="config" xsi:type="array">
    <item name="visible" xsi:type="boolean">false</item>
    </item>
    </item>
    </item>
    </item>
    </item>
    </item>
    </item>
    </item>
    </item>
    </item>
    </item>
    </item>
    </item>
    </argument>
    </arguments>
    </referenceBlock>
    </body>
    </page>






    share|improve this answer


























      1














      Try following code:




      <?xml version="1.0"?>
      <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
      <body>
      <referenceBlock name="checkout.root">
      <arguments>
      <argument name="jsLayout" xsi:type="array">
      <item name="components" xsi:type="array">
      <item name="checkout" xsi:type="array">
      <item name="children" xsi:type="array">
      <item name="steps" xsi:type="array">
      <item name="children" xsi:type="array">
      <item name="shipping-step" xsi:type="array">
      <item name="children" xsi:type="array">
      <item name="shippingAddress" xsi:type="array">
      <item name="children" xsi:type="array">
      <item name="shipping-address-fieldset" xsi:type="array">
      <item name="children" xsi:type="array">
      <item name="custom_new_field" xsi:type="array">
      <item name="component" xsi:type="string">Magento_Ui/js/form/element/abstract</item>
      <item name="validation" xsi:type="array">
      <item name="required-entry" xsi:type="boolean">false</item>
      </item>
      <item name="sortOrder" xsi:type="string">1105</item>
      <item name="config" xsi:type="array">
      <item name="tooltip" xsi:type="array">
      <item name="description" xsi:type="string" translate="true">Custom New Field</item>
      </item>
      <item name="elementTmpl" xsi:type="string">ui/form/element/input</item>
      <item name="template" xsi:type="string">ui/form/field</item>
      <item name="customScope" xsi:type="string">shippingAddress.custom_new_field</item>
      </item>
      <item name="dataScope" xsi:type="string">shippingAddress.custom_attributes.custom_new_field</item>
      <item name="provider" xsi:type="string">checkoutProvider</item>
      <item name="label" xsi:type="string" translate="true">Custom New Field</item>
      </item>
      <item name="postcode" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="visible" xsi:type="boolean">false</item>
      </item>
      </item>
      </item>
      </item>
      </item>
      </item>
      </item>
      </item>
      </item>
      </item>
      </item>
      </item>
      </item>
      </argument>
      </arguments>
      </referenceBlock>
      </body>
      </page>






      share|improve this answer
























        1












        1








        1






        Try following code:




        <?xml version="1.0"?>
        <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <body>
        <referenceBlock name="checkout.root">
        <arguments>
        <argument name="jsLayout" xsi:type="array">
        <item name="components" xsi:type="array">
        <item name="checkout" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="steps" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="shipping-step" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="shippingAddress" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="shipping-address-fieldset" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="custom_new_field" xsi:type="array">
        <item name="component" xsi:type="string">Magento_Ui/js/form/element/abstract</item>
        <item name="validation" xsi:type="array">
        <item name="required-entry" xsi:type="boolean">false</item>
        </item>
        <item name="sortOrder" xsi:type="string">1105</item>
        <item name="config" xsi:type="array">
        <item name="tooltip" xsi:type="array">
        <item name="description" xsi:type="string" translate="true">Custom New Field</item>
        </item>
        <item name="elementTmpl" xsi:type="string">ui/form/element/input</item>
        <item name="template" xsi:type="string">ui/form/field</item>
        <item name="customScope" xsi:type="string">shippingAddress.custom_new_field</item>
        </item>
        <item name="dataScope" xsi:type="string">shippingAddress.custom_attributes.custom_new_field</item>
        <item name="provider" xsi:type="string">checkoutProvider</item>
        <item name="label" xsi:type="string" translate="true">Custom New Field</item>
        </item>
        <item name="postcode" xsi:type="array">
        <item name="config" xsi:type="array">
        <item name="visible" xsi:type="boolean">false</item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </argument>
        </arguments>
        </referenceBlock>
        </body>
        </page>






        share|improve this answer












        Try following code:




        <?xml version="1.0"?>
        <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <body>
        <referenceBlock name="checkout.root">
        <arguments>
        <argument name="jsLayout" xsi:type="array">
        <item name="components" xsi:type="array">
        <item name="checkout" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="steps" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="shipping-step" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="shippingAddress" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="shipping-address-fieldset" xsi:type="array">
        <item name="children" xsi:type="array">
        <item name="custom_new_field" xsi:type="array">
        <item name="component" xsi:type="string">Magento_Ui/js/form/element/abstract</item>
        <item name="validation" xsi:type="array">
        <item name="required-entry" xsi:type="boolean">false</item>
        </item>
        <item name="sortOrder" xsi:type="string">1105</item>
        <item name="config" xsi:type="array">
        <item name="tooltip" xsi:type="array">
        <item name="description" xsi:type="string" translate="true">Custom New Field</item>
        </item>
        <item name="elementTmpl" xsi:type="string">ui/form/element/input</item>
        <item name="template" xsi:type="string">ui/form/field</item>
        <item name="customScope" xsi:type="string">shippingAddress.custom_new_field</item>
        </item>
        <item name="dataScope" xsi:type="string">shippingAddress.custom_attributes.custom_new_field</item>
        <item name="provider" xsi:type="string">checkoutProvider</item>
        <item name="label" xsi:type="string" translate="true">Custom New Field</item>
        </item>
        <item name="postcode" xsi:type="array">
        <item name="config" xsi:type="array">
        <item name="visible" xsi:type="boolean">false</item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </item>
        </argument>
        </arguments>
        </referenceBlock>
        </body>
        </page>







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 4 hours ago









        Sohel Rana

        19.6k23752




        19.6k23752






















            Abdullah is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Abdullah is a new contributor. Be nice, and check out our Code of Conduct.













            Abdullah is a new contributor. Be nice, and check out our Code of Conduct.












            Abdullah is a new contributor. Be nice, and check out our Code of Conduct.
















            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f255725%2fcustomize-checkout-page-and-remove-postal-code-and-extra-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

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            Refactoring coordinates for Minecraft Pi buildings written in Python