How to override comment field in system.xml in magento2?system.xml field dependencyHow to add dynamic image url in comment in system.xml magentoGet custom field in system.xmlHow to validate field type checkboxes in system.xmlHow to overwrite System.xml?main.CRITICAL: Plugin class doesn't existCustom field validation in system.xmlMagento 2 Add new field to Magento_User admin formMagento2: change output template of field in system.xmlMagento 2.2.5: Add, Update and Delete existing products Custom Options
Does the C++ standard guarantee that a failed insertion into an associative container will not modify the rvalue-reference argument?
What are the advantages of this gold finger shape?
Scam? Phone call from "Department of Social Security" asking me to call back
What would cause a nuclear power plant to break down after 2000 years, but not sooner?
Why do my bicycle brakes get worse and feel more 'squishy" over time?
Why do so many people play out of turn on the last lead?
Bringing Power Supplies on Plane?
Suspension compromise for urban use
How can I find an old paper when the usual methods fail?
Why aren't rockets built with truss structures inside their fuel & oxidizer tanks to increase structural strength?
Adding things to bunches of things vs multiplication
Go to last file in vim
If a person claims to know anything could it be disproven by saying 'prove that we are not in a simulation'?
Why don't modern jet engines use forced exhaust mixing?
How do figure out how powerful I am, when my abilities far exceed my knowledge?
Locked room poison mystery!
how to script out the user defined table types?
Number in overlapping range
Can anybody tell me who this Pokemon is?
What was the intention with the Commodore 128?
The more + the + comparative degree
Output the list of musical notes
Weird resistor with dots around it on the schematic
How to gracefully leave a company you helped start?
How to override comment field in system.xml in magento2?
system.xml field dependencyHow to add dynamic image url in comment in system.xml magentoGet custom field in system.xmlHow to validate field type checkboxes in system.xmlHow to overwrite System.xml?main.CRITICAL: Plugin class doesn't existCustom field validation in system.xmlMagento 2 Add new field to Magento_User admin formMagento2: change output template of field in system.xmlMagento 2.2.5: Add, Update and Delete existing products Custom Options
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have override system.xml file.
My label is overridden but comment field is not overridden. It's still take from core file. Any help should be appreciated. Thanks.
Core system.xml file code
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
<system>
<tab id="lsc" translate="label" sortOrder="100">
<label>SLI Systems LSC</label>
</tab>
<section id="sli_feed_generation" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Feed Generation</label>
<tab>lsc</tab>
<resource>Sli_Feed::config_feed</resource>
<group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="enabled" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="log_level" translate="label comment" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Log Level</label>
<comment>Please set to "Debug" if SLI support is required.</comment>
<source_model>SLIFeedModelConfigSourceLog</source_model>
</field>
<field id="version" translate="label" type="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Version</label>
<frontend_model>SLIFeedBlockSystemConfigVersion</frontend_model>
</field>
</group>
<group id="feed" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Feed Settings</label>
<field id="advanced_pricing" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced Pricing</label>
<comment>Enable if need advanced prices from: Catalog Price Rules, Group or Tiered Pricing.</comment>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="include_out_of_stock" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Include Out of Stock Items</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="generate" translate="label comment" type="button" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Generate Feed</label>
<frontend_model>SLIFeedBlockSystemConfigGenerate</frontend_model>
<comment>Manually generates feed. If FTP is enabled, also sends the feed.</comment>
</field>
</group>
<group id="ftp" translate="label" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Settings</label>
<field id="enabled" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="user" translate="label comment" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP User</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="password" translate="label comment" type="obscure" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Password</label>
<backend_model>MagentoConfigModelConfigBackendEncrypted</backend_model>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="host" translate="label comment" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Host</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="upload_path" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Upload Path</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
</group>
<group id="product" translate="label" type="select" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product Attributes</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Attributes to include</label>
<frontend_model>SLIFeedBlockSystemConfigFormFieldFeedAttributesConfig</frontend_model>
<backend_model>MagentoConfigModelConfigBackendSerializedArraySerialized</backend_model>
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
<li><small>child_ids</small></li>
<li><small>created_at</small></li>
<li><small>entity_id</small></li>
<li><small>final_price</small></li>
<li><small>has_options</small></li>
<li><small>is_salable</small></li>
<li><small>is_virtual</small></li>
<li><small>max_price</small></li>
<li><small>min_price</small></li>
<li><small>minimal_price</small></li>
<li><small>name</small></li>
<li><small>price</small></li>
<li><small>special_from_date</small></li>
<li><small>special_price</small></li>
<li><small>special_to_date</small></li>
<li><small>request_path</small></li>
<li><small>required_options</small></li>
<li><small>sku</small></li>
<li><small>tax_class_id</small></li>
<li><small>tier_price</small></li>
<li><small>type_id</small></li>
<li><small>updated_at</small></li>
<li><small>url_key</small></li>
<li><small>visibility</small></li>
<li><small>image</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
my custom system.xml code
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sli_feed_generation" >
<group id="product">
<label>Product Attributes AData</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
please see:
module.xml
<?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="Tatva_SLIFeed" setup_version="0.0.1">
<sequence>
<module name="SLI_Feed" />
</sequence>
</module>
magento2 system.xml
add a comment |
I have override system.xml file.
My label is overridden but comment field is not overridden. It's still take from core file. Any help should be appreciated. Thanks.
Core system.xml file code
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
<system>
<tab id="lsc" translate="label" sortOrder="100">
<label>SLI Systems LSC</label>
</tab>
<section id="sli_feed_generation" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Feed Generation</label>
<tab>lsc</tab>
<resource>Sli_Feed::config_feed</resource>
<group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="enabled" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="log_level" translate="label comment" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Log Level</label>
<comment>Please set to "Debug" if SLI support is required.</comment>
<source_model>SLIFeedModelConfigSourceLog</source_model>
</field>
<field id="version" translate="label" type="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Version</label>
<frontend_model>SLIFeedBlockSystemConfigVersion</frontend_model>
</field>
</group>
<group id="feed" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Feed Settings</label>
<field id="advanced_pricing" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced Pricing</label>
<comment>Enable if need advanced prices from: Catalog Price Rules, Group or Tiered Pricing.</comment>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="include_out_of_stock" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Include Out of Stock Items</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="generate" translate="label comment" type="button" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Generate Feed</label>
<frontend_model>SLIFeedBlockSystemConfigGenerate</frontend_model>
<comment>Manually generates feed. If FTP is enabled, also sends the feed.</comment>
</field>
</group>
<group id="ftp" translate="label" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Settings</label>
<field id="enabled" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="user" translate="label comment" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP User</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="password" translate="label comment" type="obscure" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Password</label>
<backend_model>MagentoConfigModelConfigBackendEncrypted</backend_model>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="host" translate="label comment" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Host</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="upload_path" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Upload Path</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
</group>
<group id="product" translate="label" type="select" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product Attributes</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Attributes to include</label>
<frontend_model>SLIFeedBlockSystemConfigFormFieldFeedAttributesConfig</frontend_model>
<backend_model>MagentoConfigModelConfigBackendSerializedArraySerialized</backend_model>
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
<li><small>child_ids</small></li>
<li><small>created_at</small></li>
<li><small>entity_id</small></li>
<li><small>final_price</small></li>
<li><small>has_options</small></li>
<li><small>is_salable</small></li>
<li><small>is_virtual</small></li>
<li><small>max_price</small></li>
<li><small>min_price</small></li>
<li><small>minimal_price</small></li>
<li><small>name</small></li>
<li><small>price</small></li>
<li><small>special_from_date</small></li>
<li><small>special_price</small></li>
<li><small>special_to_date</small></li>
<li><small>request_path</small></li>
<li><small>required_options</small></li>
<li><small>sku</small></li>
<li><small>tax_class_id</small></li>
<li><small>tier_price</small></li>
<li><small>type_id</small></li>
<li><small>updated_at</small></li>
<li><small>url_key</small></li>
<li><small>visibility</small></li>
<li><small>image</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
my custom system.xml code
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sli_feed_generation" >
<group id="product">
<label>Product Attributes AData</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
please see:
module.xml
<?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="Tatva_SLIFeed" setup_version="0.0.1">
<sequence>
<module name="SLI_Feed" />
</sequence>
</module>
magento2 system.xml
add a comment |
I have override system.xml file.
My label is overridden but comment field is not overridden. It's still take from core file. Any help should be appreciated. Thanks.
Core system.xml file code
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
<system>
<tab id="lsc" translate="label" sortOrder="100">
<label>SLI Systems LSC</label>
</tab>
<section id="sli_feed_generation" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Feed Generation</label>
<tab>lsc</tab>
<resource>Sli_Feed::config_feed</resource>
<group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="enabled" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="log_level" translate="label comment" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Log Level</label>
<comment>Please set to "Debug" if SLI support is required.</comment>
<source_model>SLIFeedModelConfigSourceLog</source_model>
</field>
<field id="version" translate="label" type="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Version</label>
<frontend_model>SLIFeedBlockSystemConfigVersion</frontend_model>
</field>
</group>
<group id="feed" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Feed Settings</label>
<field id="advanced_pricing" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced Pricing</label>
<comment>Enable if need advanced prices from: Catalog Price Rules, Group or Tiered Pricing.</comment>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="include_out_of_stock" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Include Out of Stock Items</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="generate" translate="label comment" type="button" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Generate Feed</label>
<frontend_model>SLIFeedBlockSystemConfigGenerate</frontend_model>
<comment>Manually generates feed. If FTP is enabled, also sends the feed.</comment>
</field>
</group>
<group id="ftp" translate="label" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Settings</label>
<field id="enabled" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="user" translate="label comment" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP User</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="password" translate="label comment" type="obscure" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Password</label>
<backend_model>MagentoConfigModelConfigBackendEncrypted</backend_model>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="host" translate="label comment" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Host</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="upload_path" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Upload Path</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
</group>
<group id="product" translate="label" type="select" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product Attributes</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Attributes to include</label>
<frontend_model>SLIFeedBlockSystemConfigFormFieldFeedAttributesConfig</frontend_model>
<backend_model>MagentoConfigModelConfigBackendSerializedArraySerialized</backend_model>
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
<li><small>child_ids</small></li>
<li><small>created_at</small></li>
<li><small>entity_id</small></li>
<li><small>final_price</small></li>
<li><small>has_options</small></li>
<li><small>is_salable</small></li>
<li><small>is_virtual</small></li>
<li><small>max_price</small></li>
<li><small>min_price</small></li>
<li><small>minimal_price</small></li>
<li><small>name</small></li>
<li><small>price</small></li>
<li><small>special_from_date</small></li>
<li><small>special_price</small></li>
<li><small>special_to_date</small></li>
<li><small>request_path</small></li>
<li><small>required_options</small></li>
<li><small>sku</small></li>
<li><small>tax_class_id</small></li>
<li><small>tier_price</small></li>
<li><small>type_id</small></li>
<li><small>updated_at</small></li>
<li><small>url_key</small></li>
<li><small>visibility</small></li>
<li><small>image</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
my custom system.xml code
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sli_feed_generation" >
<group id="product">
<label>Product Attributes AData</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
please see:
module.xml
<?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="Tatva_SLIFeed" setup_version="0.0.1">
<sequence>
<module name="SLI_Feed" />
</sequence>
</module>
magento2 system.xml
I have override system.xml file.
My label is overridden but comment field is not overridden. It's still take from core file. Any help should be appreciated. Thanks.
Core system.xml file code
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
<system>
<tab id="lsc" translate="label" sortOrder="100">
<label>SLI Systems LSC</label>
</tab>
<section id="sli_feed_generation" translate="label" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Feed Generation</label>
<tab>lsc</tab>
<resource>Sli_Feed::config_feed</resource>
<group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="enabled" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="log_level" translate="label comment" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Log Level</label>
<comment>Please set to "Debug" if SLI support is required.</comment>
<source_model>SLIFeedModelConfigSourceLog</source_model>
</field>
<field id="version" translate="label" type="label" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Version</label>
<frontend_model>SLIFeedBlockSystemConfigVersion</frontend_model>
</field>
</group>
<group id="feed" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Feed Settings</label>
<field id="advanced_pricing" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced Pricing</label>
<comment>Enable if need advanced prices from: Catalog Price Rules, Group or Tiered Pricing.</comment>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="include_out_of_stock" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Include Out of Stock Items</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="generate" translate="label comment" type="button" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Generate Feed</label>
<frontend_model>SLIFeedBlockSystemConfigGenerate</frontend_model>
<comment>Manually generates feed. If FTP is enabled, also sends the feed.</comment>
</field>
</group>
<group id="ftp" translate="label" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Settings</label>
<field id="enabled" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>MagentoConfigModelConfigSourceYesno</source_model>
</field>
<field id="user" translate="label comment" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP User</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="password" translate="label comment" type="obscure" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Password</label>
<backend_model>MagentoConfigModelConfigBackendEncrypted</backend_model>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="host" translate="label comment" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Host</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
<field id="upload_path" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>FTP Upload Path</label>
<comment>Provided by SLI.</comment>
<depends>
<field id="enabled">1</field>
</depends>
</field>
</group>
<group id="product" translate="label" type="select" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Product Attributes</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Attributes to include</label>
<frontend_model>SLIFeedBlockSystemConfigFormFieldFeedAttributesConfig</frontend_model>
<backend_model>MagentoConfigModelConfigBackendSerializedArraySerialized</backend_model>
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
<li><small>child_ids</small></li>
<li><small>created_at</small></li>
<li><small>entity_id</small></li>
<li><small>final_price</small></li>
<li><small>has_options</small></li>
<li><small>is_salable</small></li>
<li><small>is_virtual</small></li>
<li><small>max_price</small></li>
<li><small>min_price</small></li>
<li><small>minimal_price</small></li>
<li><small>name</small></li>
<li><small>price</small></li>
<li><small>special_from_date</small></li>
<li><small>special_price</small></li>
<li><small>special_to_date</small></li>
<li><small>request_path</small></li>
<li><small>required_options</small></li>
<li><small>sku</small></li>
<li><small>tax_class_id</small></li>
<li><small>tier_price</small></li>
<li><small>type_id</small></li>
<li><small>updated_at</small></li>
<li><small>url_key</small></li>
<li><small>visibility</small></li>
<li><small>image</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
my custom system.xml code
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sli_feed_generation" >
<group id="product">
<label>Product Attributes AData</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
please see:
module.xml
<?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="Tatva_SLIFeed" setup_version="0.0.1">
<sequence>
<module name="SLI_Feed" />
</sequence>
</module>
magento2 system.xml
magento2 system.xml
edited Sep 10 '18 at 6:21
Rutvee Sojitra
asked Sep 7 '18 at 6:07
Rutvee SojitraRutvee Sojitra
2,3381 gold badge5 silver badges23 bronze badges
2,3381 gold badge5 silver badges23 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Vendor/ModuleName/etc/adminhtml/system.xml
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sli_feed_generation" >
<group id="product">
<label>Product Attributes AData</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
Vendor/ModuleName/etc/module.xml
<?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_YourModule" setup_version="1.0.0">
<sequence>
<module name="Core_ModuleName"/>
</sequence>
</module>
</config>
Note : Core_ModuleName is overridden module name.
Hope, It will helpful for you.
What you suggest is i have already tried. it's not working for comment field If i am changing label it worked!!!
– Rutvee Sojitra
Sep 7 '18 at 7:00
I use your comment in my code and test. It's update successfully. Remove var & generated folder and check it.
– Rohan Hapani
Sep 7 '18 at 7:23
I have added screenshot please check I have removed all cache folder and generated folder
– Rutvee Sojitra
Sep 7 '18 at 8:16
what is your magento version?
– Rohan Hapani
Sep 7 '18 at 8:55
And please make sure that in module.xml this is correct or not. <module name="Sli_Feed"/>
– Rohan Hapani
Sep 7 '18 at 8:56
|
show 2 more comments
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%2f241238%2fhow-to-override-comment-field-in-system-xml-in-magento2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Vendor/ModuleName/etc/adminhtml/system.xml
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sli_feed_generation" >
<group id="product">
<label>Product Attributes AData</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
Vendor/ModuleName/etc/module.xml
<?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_YourModule" setup_version="1.0.0">
<sequence>
<module name="Core_ModuleName"/>
</sequence>
</module>
</config>
Note : Core_ModuleName is overridden module name.
Hope, It will helpful for you.
What you suggest is i have already tried. it's not working for comment field If i am changing label it worked!!!
– Rutvee Sojitra
Sep 7 '18 at 7:00
I use your comment in my code and test. It's update successfully. Remove var & generated folder and check it.
– Rohan Hapani
Sep 7 '18 at 7:23
I have added screenshot please check I have removed all cache folder and generated folder
– Rutvee Sojitra
Sep 7 '18 at 8:16
what is your magento version?
– Rohan Hapani
Sep 7 '18 at 8:55
And please make sure that in module.xml this is correct or not. <module name="Sli_Feed"/>
– Rohan Hapani
Sep 7 '18 at 8:56
|
show 2 more comments
Vendor/ModuleName/etc/adminhtml/system.xml
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sli_feed_generation" >
<group id="product">
<label>Product Attributes AData</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
Vendor/ModuleName/etc/module.xml
<?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_YourModule" setup_version="1.0.0">
<sequence>
<module name="Core_ModuleName"/>
</sequence>
</module>
</config>
Note : Core_ModuleName is overridden module name.
Hope, It will helpful for you.
What you suggest is i have already tried. it's not working for comment field If i am changing label it worked!!!
– Rutvee Sojitra
Sep 7 '18 at 7:00
I use your comment in my code and test. It's update successfully. Remove var & generated folder and check it.
– Rohan Hapani
Sep 7 '18 at 7:23
I have added screenshot please check I have removed all cache folder and generated folder
– Rutvee Sojitra
Sep 7 '18 at 8:16
what is your magento version?
– Rohan Hapani
Sep 7 '18 at 8:55
And please make sure that in module.xml this is correct or not. <module name="Sli_Feed"/>
– Rohan Hapani
Sep 7 '18 at 8:56
|
show 2 more comments
Vendor/ModuleName/etc/adminhtml/system.xml
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sli_feed_generation" >
<group id="product">
<label>Product Attributes AData</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
Vendor/ModuleName/etc/module.xml
<?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_YourModule" setup_version="1.0.0">
<sequence>
<module name="Core_ModuleName"/>
</sequence>
</module>
</config>
Note : Core_ModuleName is overridden module name.
Hope, It will helpful for you.
Vendor/ModuleName/etc/adminhtml/system.xml
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="sli_feed_generation" >
<group id="product">
<label>Product Attributes AData</label>
<field id="attributes_select" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<comment>
<![CDATA[
The following attributes are automatically added to the feed: <br />
<ul style="margin-left: 2em;">
<li><small>attribute_set_id</small></li>
<li><small>categories</small></li>
</ul>
]]>
</comment>
</field>
</group>
</section>
</system>
Vendor/ModuleName/etc/module.xml
<?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_YourModule" setup_version="1.0.0">
<sequence>
<module name="Core_ModuleName"/>
</sequence>
</module>
</config>
Note : Core_ModuleName is overridden module name.
Hope, It will helpful for you.
answered Sep 7 '18 at 6:55
Rohan HapaniRohan Hapani
8,7254 gold badges21 silver badges66 bronze badges
8,7254 gold badges21 silver badges66 bronze badges
What you suggest is i have already tried. it's not working for comment field If i am changing label it worked!!!
– Rutvee Sojitra
Sep 7 '18 at 7:00
I use your comment in my code and test. It's update successfully. Remove var & generated folder and check it.
– Rohan Hapani
Sep 7 '18 at 7:23
I have added screenshot please check I have removed all cache folder and generated folder
– Rutvee Sojitra
Sep 7 '18 at 8:16
what is your magento version?
– Rohan Hapani
Sep 7 '18 at 8:55
And please make sure that in module.xml this is correct or not. <module name="Sli_Feed"/>
– Rohan Hapani
Sep 7 '18 at 8:56
|
show 2 more comments
What you suggest is i have already tried. it's not working for comment field If i am changing label it worked!!!
– Rutvee Sojitra
Sep 7 '18 at 7:00
I use your comment in my code and test. It's update successfully. Remove var & generated folder and check it.
– Rohan Hapani
Sep 7 '18 at 7:23
I have added screenshot please check I have removed all cache folder and generated folder
– Rutvee Sojitra
Sep 7 '18 at 8:16
what is your magento version?
– Rohan Hapani
Sep 7 '18 at 8:55
And please make sure that in module.xml this is correct or not. <module name="Sli_Feed"/>
– Rohan Hapani
Sep 7 '18 at 8:56
What you suggest is i have already tried. it's not working for comment field If i am changing label it worked!!!
– Rutvee Sojitra
Sep 7 '18 at 7:00
What you suggest is i have already tried. it's not working for comment field If i am changing label it worked!!!
– Rutvee Sojitra
Sep 7 '18 at 7:00
I use your comment in my code and test. It's update successfully. Remove var & generated folder and check it.
– Rohan Hapani
Sep 7 '18 at 7:23
I use your comment in my code and test. It's update successfully. Remove var & generated folder and check it.
– Rohan Hapani
Sep 7 '18 at 7:23
I have added screenshot please check I have removed all cache folder and generated folder
– Rutvee Sojitra
Sep 7 '18 at 8:16
I have added screenshot please check I have removed all cache folder and generated folder
– Rutvee Sojitra
Sep 7 '18 at 8:16
what is your magento version?
– Rohan Hapani
Sep 7 '18 at 8:55
what is your magento version?
– Rohan Hapani
Sep 7 '18 at 8:55
And please make sure that in module.xml this is correct or not. <module name="Sli_Feed"/>
– Rohan Hapani
Sep 7 '18 at 8:56
And please make sure that in module.xml this is correct or not. <module name="Sli_Feed"/>
– Rohan Hapani
Sep 7 '18 at 8:56
|
show 2 more comments
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%2f241238%2fhow-to-override-comment-field-in-system-xml-in-magento2%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