Magento 2 core config.xml overrideconfig.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
Is "plugging out" electronic devices an American expression?
aging parents with no investments
How to answer pointed "are you quitting" questioning when I don't want them to suspect
Need help identifying/translating a plaque in Tangier, Morocco
Why airport relocation isn't done gradually?
What does 'script /dev/null' do?
What happens when a metallic dragon and a chromatic dragon mate?
Can the Produce Flame cantrip be used to grapple, or as an unarmed strike, in the right circumstances?
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
Unbreakable Formation vs. Cry of the Carnarium
What does "enim et" mean?
Lied on resume at previous job
What do you call words made from common English words?
Prime joint compound before latex paint?
New order #4: World
Eliminate empty elements from a list with a specific pattern
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
Add an angle to a sphere
Doomsday-clock for my fantasy planet
What to wear for invited talk in Canada
Symmetry in quantum mechanics
Does the average primeness of natural numbers tend to zero?
Finding files for which a command fails
What are the advantages and disadvantages of running one shots compared to campaigns?
Magento 2 core config.xml override
config.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 12 hours ago
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