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

                              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