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;
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
add a comment |
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
add a comment |
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
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
magento-2.1 configuration
edited Jan 4 '17 at 19:04
Douglas Radburn
asked Jan 4 '17 at 16:12
Douglas RadburnDouglas Radburn
1,8851027
1,8851027
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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.
add a comment |
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?
Hi! The sequence node is currently<sequence> <module name="Magento_Customer"/> </sequence>
– Douglas Radburn
Jan 4 '17 at 19:03
add a comment |
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.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%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
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 13 '17 at 10:53
mikesteeghsmikesteeghs
12510
12510
add a comment |
add a comment |
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?
Hi! The sequence node is currently<sequence> <module name="Magento_Customer"/> </sequence>
– Douglas Radburn
Jan 4 '17 at 19:03
add a comment |
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?
Hi! The sequence node is currently<sequence> <module name="Magento_Customer"/> </sequence>
– Douglas Radburn
Jan 4 '17 at 19:03
add a comment |
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?
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?
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered yesterday
Joel DaveyJoel Davey
38028
38028
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f153141%2fmagento-2-core-config-xml-override%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown