Magento 2 core config.xml override The 2019 Stack Overflow Developer Survey Results Are Inconfig.xml vs local.xmlHow to override config.xmlMagento Extension config.xml conflictsAdd IFCONFIG in config.xmlConfig.xml override not workingHow can we edit config.xml file of a core module?How to Override `Config.xml`magento 2 override core module blocksOverride Magento 2 core JS file Without affecting core functioniltiesAddress Information And Customer address are not showing in magento 2

Confusion about non-derivable continuous functions

Does light intensity oscillate really fast since it is a wave?

Realistic Alternatives to Dust: What Else Could Feed a Plankton Bloom?

Time travel alters history but people keep saying nothing's changed

Could JWST stay at L2 "forever"?

How to manage monthly salary

Deadlock Graph and Interpretation, solution to avoid

Can't find the latex code for the ⍎ (down tack jot) symbol

Spanish for "widget"

Why could you hear an Amstrad CPC working?

Should I use my personal or workplace e-mail when registering to external websites for work purpose?

Idiomatic way to prevent slicing?

Is bread bad for ducks?

Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Where to refill my bottle in India?

How long do I have to send payment?

Is flight data recorder erased after every flight?

How come people say “Would of”?

Falsification in Math vs Science

How to reverse every other sublist of a list?

Does it makes sense to buy a new cycle to learn riding?

Is domain driven design an anti-SQL pattern?



Magento 2 core config.xml override



The 2019 Stack Overflow Developer Survey Results Are Inconfig.xml vs local.xmlHow to override config.xmlMagento Extension config.xml conflictsAdd IFCONFIG in config.xmlConfig.xml override not workingHow can we edit config.xml file of a core module?How to Override `Config.xml`magento 2 override core module blocksOverride Magento 2 core JS file Without affecting core functioniltiesAddress 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'd like to override the address layout defined in MagentoCustomeretcconfig.xml -> default | customer | address_templates | oneline | html



In Magento 1, we could re-define a config.xml file in the local pool or in a module, and everything got mashed together and our new values over-rode it.



However, this doesn't seem to work in Magento 2, assuming from the documentation that config.xml only affects the scope of the module? So, I've tried adding:



Vendor/Namespace/etc/config.xml or Vendor/Namespace/etc/frontend/config.xml with the following content:



<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<customer>
<address_templates>
<html><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/dependdepend firstname<br/>/depend
depend companyvar company<br />/depend
if street1var street1<br />/if
depend street2var street2<br />/depend
depend street3var street3<br />/depend
depend street4var street4<br />/depend
if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if<br/>
var country<br/>
depend telephoneTelephone: var telephone/depend
depend fax<br/>F: var fax/depend
depend vat_id<br/>VAT: var vat_id/depend]]>
</html>
</address_templates>
</customer>
</default>
</config>


However, I don't get the change (Telephone: instead of T: in this quick example).



EDIT: module.xml looks like this:



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_Namespace" setup_version="0.1.0">
<sequence>
<module name="Magento_Customer"/>
</sequence>
</module>




Do I need to create my own renderer for this and add a preference to use it, or am I missing something?










share|improve this question






























    3















    I'd like to override the address layout defined in MagentoCustomeretcconfig.xml -> default | customer | address_templates | oneline | html



    In Magento 1, we could re-define a config.xml file in the local pool or in a module, and everything got mashed together and our new values over-rode it.



    However, this doesn't seem to work in Magento 2, assuming from the documentation that config.xml only affects the scope of the module? So, I've tried adding:



    Vendor/Namespace/etc/config.xml or Vendor/Namespace/etc/frontend/config.xml with the following content:



    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
    <default>
    <customer>
    <address_templates>
    <html><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/dependdepend firstname<br/>/depend
    depend companyvar company<br />/depend
    if street1var street1<br />/if
    depend street2var street2<br />/depend
    depend street3var street3<br />/depend
    depend street4var street4<br />/depend
    if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if<br/>
    var country<br/>
    depend telephoneTelephone: var telephone/depend
    depend fax<br/>F: var fax/depend
    depend vat_id<br/>VAT: var vat_id/depend]]>
    </html>
    </address_templates>
    </customer>
    </default>
    </config>


    However, I don't get the change (Telephone: instead of T: in this quick example).



    EDIT: module.xml looks like this:



    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Vendor_Namespace" setup_version="0.1.0">
    <sequence>
    <module name="Magento_Customer"/>
    </sequence>
    </module>




    Do I need to create my own renderer for this and add a preference to use it, or am I missing something?










    share|improve this question


























      3












      3








      3


      1






      I'd like to override the address layout defined in MagentoCustomeretcconfig.xml -> default | customer | address_templates | oneline | html



      In Magento 1, we could re-define a config.xml file in the local pool or in a module, and everything got mashed together and our new values over-rode it.



      However, this doesn't seem to work in Magento 2, assuming from the documentation that config.xml only affects the scope of the module? So, I've tried adding:



      Vendor/Namespace/etc/config.xml or Vendor/Namespace/etc/frontend/config.xml with the following content:



      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
      <default>
      <customer>
      <address_templates>
      <html><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/dependdepend firstname<br/>/depend
      depend companyvar company<br />/depend
      if street1var street1<br />/if
      depend street2var street2<br />/depend
      depend street3var street3<br />/depend
      depend street4var street4<br />/depend
      if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if<br/>
      var country<br/>
      depend telephoneTelephone: var telephone/depend
      depend fax<br/>F: var fax/depend
      depend vat_id<br/>VAT: var vat_id/depend]]>
      </html>
      </address_templates>
      </customer>
      </default>
      </config>


      However, I don't get the change (Telephone: instead of T: in this quick example).



      EDIT: module.xml looks like this:



      <?xml version="1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
      <module name="Vendor_Namespace" setup_version="0.1.0">
      <sequence>
      <module name="Magento_Customer"/>
      </sequence>
      </module>




      Do I need to create my own renderer for this and add a preference to use it, or am I missing something?










      share|improve this question
















      I'd like to override the address layout defined in MagentoCustomeretcconfig.xml -> default | customer | address_templates | oneline | html



      In Magento 1, we could re-define a config.xml file in the local pool or in a module, and everything got mashed together and our new values over-rode it.



      However, this doesn't seem to work in Magento 2, assuming from the documentation that config.xml only affects the scope of the module? So, I've tried adding:



      Vendor/Namespace/etc/config.xml or Vendor/Namespace/etc/frontend/config.xml with the following content:



      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
      <default>
      <customer>
      <address_templates>
      <html><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/dependdepend firstname<br/>/depend
      depend companyvar company<br />/depend
      if street1var street1<br />/if
      depend street2var street2<br />/depend
      depend street3var street3<br />/depend
      depend street4var street4<br />/depend
      if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if<br/>
      var country<br/>
      depend telephoneTelephone: var telephone/depend
      depend fax<br/>F: var fax/depend
      depend vat_id<br/>VAT: var vat_id/depend]]>
      </html>
      </address_templates>
      </customer>
      </default>
      </config>


      However, I don't get the change (Telephone: instead of T: in this quick example).



      EDIT: module.xml looks like this:



      <?xml version="1.0"?>
      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
      <module name="Vendor_Namespace" setup_version="0.1.0">
      <sequence>
      <module name="Magento_Customer"/>
      </sequence>
      </module>




      Do I need to create my own renderer for this and add a preference to use it, or am I missing something?







      magento-2.1 configuration






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 4 '17 at 19:04







      Douglas Radburn

















      asked Jan 4 '17 at 16:12









      Douglas RadburnDouglas Radburn

      1,8851027




      1,8851027




















          3 Answers
          3






          active

          oldest

          votes


















          2














          It is possible to change this in the admin of Magento. At Stores > Configuration > Customers > Customer Configuration, you can find the 'Address Templates'. You can change the T: to Telephone: for HTML and PDF over there.






          share|improve this answer






























            0














            In the module.xml file of your M2 module you can set a sequence node which is basically the same as the depends node present in M1 app/etc/company_mymodule.xml file for the module company_mymodule. Have you set this sequence in your M2 module's config.xml?






            share|improve this answer























            • Hi! The sequence node is currently <sequence> <module name="Magento_Customer"/> </sequence>

              – Douglas Radburn
              Jan 4 '17 at 19:03


















            0














            Create your module and add the sequence so it runs after Magento_Customer





            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
            <module name="MyModule_Customer" >
            <sequence>
            <module name="Magento_Customer"/>
            </sequence>
            </module>
            </config>


            Add the config.xml in app/code/MyModule/Customer/etc/config.xml



            <?xml version="1.0"?>
            <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
            <default>
            <customer>
            <address_templates>
            <text>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend
            depend companyvar company/depend
            if street1var street1
            /if
            depend street2var street2/depend
            depend street3var street3/depend
            depend street4var street4/depend
            if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if
            var country
            depend telephoneT: var telephone/depend
            depend faxF: var fax/depend
            depend vat_idVAT: var vat_id/depend</text>
            <oneline>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend, var street, var city, var region var postcode, var country</oneline>
            <html><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/dependdepend firstname<br />/depend
            depend companyvar company<br />/depend
            if street1var street1<br />/if
            depend street2var street2<br />/depend
            depend street3var street3<br />/depend
            depend street4var street4<br />/depend
            if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if<br />
            var country<br />
            depend telephoneT: var telephone/depend
            depend fax<br />F: var fax/depend
            depend vat_id<br />VAT: var vat_id/depend]]></html>
            <pdf><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend|
            depend companyvar company|/depend
            if street1var street1|/if
            depend street2var street2|/depend
            depend street3var street3|/depend
            depend street4var street4|/depend
            if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if|
            var country|
            depend telephoneT: var telephone|/depend
            depend faxF: var fax|/depend|
            depend vat_idVAT: var vat_id/depend|]]></pdf>
            </address_templates>
            </customer>
            </default>
            </config>


            In the above I have removed the telephone link, which is on the default XML template in /vendor/magento/module-customer/etc/config.xml



            Run grunt refresh and do a cache:clean and/or static content deployment.






            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%2f153141%2fmagento-2-core-config-xml-override%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              It is possible to change this in the admin of Magento. At Stores > Configuration > Customers > Customer Configuration, you can find the 'Address Templates'. You can change the T: to Telephone: for HTML and PDF over there.






              share|improve this answer



























                2














                It is possible to change this in the admin of Magento. At Stores > Configuration > Customers > Customer Configuration, you can find the 'Address Templates'. You can change the T: to Telephone: for HTML and PDF over there.






                share|improve this answer

























                  2












                  2








                  2







                  It is possible to change this in the admin of Magento. At Stores > Configuration > Customers > Customer Configuration, you can find the 'Address Templates'. You can change the T: to Telephone: for HTML and PDF over there.






                  share|improve this answer













                  It is possible to change this in the admin of Magento. At Stores > Configuration > Customers > Customer Configuration, you can find the 'Address Templates'. You can change the T: to Telephone: for HTML and PDF over there.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 13 '17 at 10:53









                  mikesteeghsmikesteeghs

                  12510




                  12510























                      0














                      In the module.xml file of your M2 module you can set a sequence node which is basically the same as the depends node present in M1 app/etc/company_mymodule.xml file for the module company_mymodule. Have you set this sequence in your M2 module's config.xml?






                      share|improve this answer























                      • Hi! The sequence node is currently <sequence> <module name="Magento_Customer"/> </sequence>

                        – Douglas Radburn
                        Jan 4 '17 at 19:03















                      0














                      In the module.xml file of your M2 module you can set a sequence node which is basically the same as the depends node present in M1 app/etc/company_mymodule.xml file for the module company_mymodule. Have you set this sequence in your M2 module's config.xml?






                      share|improve this answer























                      • Hi! The sequence node is currently <sequence> <module name="Magento_Customer"/> </sequence>

                        – Douglas Radburn
                        Jan 4 '17 at 19:03













                      0












                      0








                      0







                      In the module.xml file of your M2 module you can set a sequence node which is basically the same as the depends node present in M1 app/etc/company_mymodule.xml file for the module company_mymodule. Have you set this sequence in your M2 module's config.xml?






                      share|improve this answer













                      In the module.xml file of your M2 module you can set a sequence node which is basically the same as the depends node present in M1 app/etc/company_mymodule.xml file for the module company_mymodule. Have you set this sequence in your M2 module's config.xml?







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Jan 4 '17 at 17:02









                      Paras SoodParas Sood

                      2,3551719




                      2,3551719












                      • Hi! The sequence node is currently <sequence> <module name="Magento_Customer"/> </sequence>

                        – Douglas Radburn
                        Jan 4 '17 at 19:03

















                      • Hi! The sequence node is currently <sequence> <module name="Magento_Customer"/> </sequence>

                        – Douglas Radburn
                        Jan 4 '17 at 19:03
















                      Hi! The sequence node is currently <sequence> <module name="Magento_Customer"/> </sequence>

                      – Douglas Radburn
                      Jan 4 '17 at 19:03





                      Hi! The sequence node is currently <sequence> <module name="Magento_Customer"/> </sequence>

                      – Douglas Radburn
                      Jan 4 '17 at 19:03











                      0














                      Create your module and add the sequence so it runs after Magento_Customer





                      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                      <module name="MyModule_Customer" >
                      <sequence>
                      <module name="Magento_Customer"/>
                      </sequence>
                      </module>
                      </config>


                      Add the config.xml in app/code/MyModule/Customer/etc/config.xml



                      <?xml version="1.0"?>
                      <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
                      <default>
                      <customer>
                      <address_templates>
                      <text>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend
                      depend companyvar company/depend
                      if street1var street1
                      /if
                      depend street2var street2/depend
                      depend street3var street3/depend
                      depend street4var street4/depend
                      if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if
                      var country
                      depend telephoneT: var telephone/depend
                      depend faxF: var fax/depend
                      depend vat_idVAT: var vat_id/depend</text>
                      <oneline>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend, var street, var city, var region var postcode, var country</oneline>
                      <html><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/dependdepend firstname<br />/depend
                      depend companyvar company<br />/depend
                      if street1var street1<br />/if
                      depend street2var street2<br />/depend
                      depend street3var street3<br />/depend
                      depend street4var street4<br />/depend
                      if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if<br />
                      var country<br />
                      depend telephoneT: var telephone/depend
                      depend fax<br />F: var fax/depend
                      depend vat_id<br />VAT: var vat_id/depend]]></html>
                      <pdf><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend|
                      depend companyvar company|/depend
                      if street1var street1|/if
                      depend street2var street2|/depend
                      depend street3var street3|/depend
                      depend street4var street4|/depend
                      if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if|
                      var country|
                      depend telephoneT: var telephone|/depend
                      depend faxF: var fax|/depend|
                      depend vat_idVAT: var vat_id/depend|]]></pdf>
                      </address_templates>
                      </customer>
                      </default>
                      </config>


                      In the above I have removed the telephone link, which is on the default XML template in /vendor/magento/module-customer/etc/config.xml



                      Run grunt refresh and do a cache:clean and/or static content deployment.






                      share|improve this answer



























                        0














                        Create your module and add the sequence so it runs after Magento_Customer





                        <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                        <module name="MyModule_Customer" >
                        <sequence>
                        <module name="Magento_Customer"/>
                        </sequence>
                        </module>
                        </config>


                        Add the config.xml in app/code/MyModule/Customer/etc/config.xml



                        <?xml version="1.0"?>
                        <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
                        <default>
                        <customer>
                        <address_templates>
                        <text>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend
                        depend companyvar company/depend
                        if street1var street1
                        /if
                        depend street2var street2/depend
                        depend street3var street3/depend
                        depend street4var street4/depend
                        if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if
                        var country
                        depend telephoneT: var telephone/depend
                        depend faxF: var fax/depend
                        depend vat_idVAT: var vat_id/depend</text>
                        <oneline>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend, var street, var city, var region var postcode, var country</oneline>
                        <html><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/dependdepend firstname<br />/depend
                        depend companyvar company<br />/depend
                        if street1var street1<br />/if
                        depend street2var street2<br />/depend
                        depend street3var street3<br />/depend
                        depend street4var street4<br />/depend
                        if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if<br />
                        var country<br />
                        depend telephoneT: var telephone/depend
                        depend fax<br />F: var fax/depend
                        depend vat_id<br />VAT: var vat_id/depend]]></html>
                        <pdf><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend|
                        depend companyvar company|/depend
                        if street1var street1|/if
                        depend street2var street2|/depend
                        depend street3var street3|/depend
                        depend street4var street4|/depend
                        if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if|
                        var country|
                        depend telephoneT: var telephone|/depend
                        depend faxF: var fax|/depend|
                        depend vat_idVAT: var vat_id/depend|]]></pdf>
                        </address_templates>
                        </customer>
                        </default>
                        </config>


                        In the above I have removed the telephone link, which is on the default XML template in /vendor/magento/module-customer/etc/config.xml



                        Run grunt refresh and do a cache:clean and/or static content deployment.






                        share|improve this answer

























                          0












                          0








                          0







                          Create your module and add the sequence so it runs after Magento_Customer





                          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                          <module name="MyModule_Customer" >
                          <sequence>
                          <module name="Magento_Customer"/>
                          </sequence>
                          </module>
                          </config>


                          Add the config.xml in app/code/MyModule/Customer/etc/config.xml



                          <?xml version="1.0"?>
                          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
                          <default>
                          <customer>
                          <address_templates>
                          <text>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend
                          depend companyvar company/depend
                          if street1var street1
                          /if
                          depend street2var street2/depend
                          depend street3var street3/depend
                          depend street4var street4/depend
                          if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if
                          var country
                          depend telephoneT: var telephone/depend
                          depend faxF: var fax/depend
                          depend vat_idVAT: var vat_id/depend</text>
                          <oneline>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend, var street, var city, var region var postcode, var country</oneline>
                          <html><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/dependdepend firstname<br />/depend
                          depend companyvar company<br />/depend
                          if street1var street1<br />/if
                          depend street2var street2<br />/depend
                          depend street3var street3<br />/depend
                          depend street4var street4<br />/depend
                          if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if<br />
                          var country<br />
                          depend telephoneT: var telephone/depend
                          depend fax<br />F: var fax/depend
                          depend vat_id<br />VAT: var vat_id/depend]]></html>
                          <pdf><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend|
                          depend companyvar company|/depend
                          if street1var street1|/if
                          depend street2var street2|/depend
                          depend street3var street3|/depend
                          depend street4var street4|/depend
                          if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if|
                          var country|
                          depend telephoneT: var telephone|/depend
                          depend faxF: var fax|/depend|
                          depend vat_idVAT: var vat_id/depend|]]></pdf>
                          </address_templates>
                          </customer>
                          </default>
                          </config>


                          In the above I have removed the telephone link, which is on the default XML template in /vendor/magento/module-customer/etc/config.xml



                          Run grunt refresh and do a cache:clean and/or static content deployment.






                          share|improve this answer













                          Create your module and add the sequence so it runs after Magento_Customer





                          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                          <module name="MyModule_Customer" >
                          <sequence>
                          <module name="Magento_Customer"/>
                          </sequence>
                          </module>
                          </config>


                          Add the config.xml in app/code/MyModule/Customer/etc/config.xml



                          <?xml version="1.0"?>
                          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
                          <default>
                          <customer>
                          <address_templates>
                          <text>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend
                          depend companyvar company/depend
                          if street1var street1
                          /if
                          depend street2var street2/depend
                          depend street3var street3/depend
                          depend street4var street4/depend
                          if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if
                          var country
                          depend telephoneT: var telephone/depend
                          depend faxF: var fax/depend
                          depend vat_idVAT: var vat_id/depend</text>
                          <oneline>depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend, var street, var city, var region var postcode, var country</oneline>
                          <html><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/dependdepend firstname<br />/depend
                          depend companyvar company<br />/depend
                          if street1var street1<br />/if
                          depend street2var street2<br />/depend
                          depend street3var street3<br />/depend
                          depend street4var street4<br />/depend
                          if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if<br />
                          var country<br />
                          depend telephoneT: var telephone/depend
                          depend fax<br />F: var fax/depend
                          depend vat_id<br />VAT: var vat_id/depend]]></html>
                          <pdf><![CDATA[depend prefixvar prefix /dependvar firstname depend middlenamevar middlename /dependvar lastnamedepend suffix var suffix/depend|
                          depend companyvar company|/depend
                          if street1var street1|/if
                          depend street2var street2|/depend
                          depend street3var street3|/depend
                          depend street4var street4|/depend
                          if cityvar city, /ifif regionvar region, /ifif postcodevar postcode/if|
                          var country|
                          depend telephoneT: var telephone|/depend
                          depend faxF: var fax|/depend|
                          depend vat_idVAT: var vat_id/depend|]]></pdf>
                          </address_templates>
                          </customer>
                          </default>
                          </config>


                          In the above I have removed the telephone link, which is on the default XML template in /vendor/magento/module-customer/etc/config.xml



                          Run grunt refresh and do a cache:clean and/or static content deployment.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered yesterday









                          Joel DaveyJoel Davey

                          38028




                          38028



























                              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%2f153141%2fmagento-2-core-config-xml-override%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?