<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>configuration-service - Tag Vibe</title>
	<atom:link href="https://www.tagvibe.com/tag/configuration-service/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tagvibe.com</link>
	<description>Connect. Create. Conquer.</description>
	<lastBuildDate>Mon, 06 May 2024 08:56:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://www.tagvibe.com/wp-content/uploads/2024/05/cropped-cropped-logo-tagvibe-1-32x32.png</url>
	<title>configuration-service - Tag Vibe</title>
	<link>https://www.tagvibe.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Configuration layer in Magento 2</title>
		<link>https://www.tagvibe.com/configuration-layer-in-magento-2/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 17 Mar 2023 20:00:22 +0000</pubDate>
				<category><![CDATA[Magento2]]></category>
		<category><![CDATA[configuration-service]]></category>
		<category><![CDATA[magento2]]></category>
		<category><![CDATA[system-config]]></category>
		<guid isPermaLink="false">https://tagvibe.com/?p=326</guid>

					<description><![CDATA[<p>In Magento 2, the configuration layer is a critical component of the system that allows developers and store owners to manage various settings for their store. The configuration layer is implemented using the Configuration module, which is part of the Magento\Framework\App namespace. The configuration layer is designed to provide a hierarchical structure for managing different configuration settings. The hierarchy starts at the default level and extends to the store level. This hierarchical structure allows the settings to be inherited from the default level to the store level, making it easy to manage settings for multiple stores. The configuration settings are stored in the database in the core_config_data table. This table contains a row for each configuration setting and stores information such as the configuration path, the value of the configuration, and the scope of the configuration (i.e. website, store view, or default). The Configuration module also provides an API for retrieving and modifying configuration settings. This API can be used by developers to read and modify configuration settings programmatically. The configuration layer is used extensively throughout Magento 2, and it is an integral part of the system architecture. It is used to manage a wide range of settings, including store-specific settings, system-wide settings, and module-specific settings. Overall, the configuration layer in Magento 2 is a critical component of the system architecture, and it provides a flexible and hierarchical structure for managing configuration settings. Here is some more information about the configuration layer in Magento 2: The configuration layer in Magento 2 allows developers to set configuration settings at different levels of scope. The available scopes are &#8220;Default&#8221;, &#8220;Website&#8221;, and &#8220;Store View&#8221;. This means that a configuration setting can be applied to the entire Magento installation (Default scope), to a specific website, or to a specific store view. When a setting is applied at a higher scope, it is inherited by lower scopes. For example, if a configuration setting is set at the website level, all store views under that website will inherit that setting. Each configuration setting in Magento 2 has a unique configuration path. This path is used to identify the setting and to retrieve or modify its value. The configuration path is a combination of a group name, a field name, and (optionally) a website code or a store code. For example, the configuration path for the store name setting is &#8220;general/store_information/name&#8221;. The configuration settings in Magento 2 are organized into different groups based on their functionality. For example, there are groups for General Settings, Catalog Settings, Sales Settings, etc. These groups are defined in XML files located in the etc/adminhtml/system.xml and etc/frontend/system.xml files of each module. Each group contains one or more fields, which are the individual configuration settings. The configuration layer in Magento 2 allows developers to override the default configuration settings by creating custom XML files. These files can be placed in the app/code/[Vendor]/[Module]/etc directory of a custom module, and they can be used to set custom values for specific configuration settings. When Magento 2 loads the configuration settings, it will merge the custom XML files with the default XML files, and apply the custom values for any overridden settings. Overall, the configuration layer in Magento 2 provides a flexible and hierarchical structure for managing configuration settings, and it is an essential component of the system architecture. It allows developers to customize the behavior of the system and provides store owners with the ability to manage their stores efficiently. Example of how to use the configuration layer in Magento 2: Let&#8217;s say you want to change the maximum order amount allowed for your store. By default, Magento 2 sets the maximum order amount to 10,000. To change this setting, follow these steps: Now, let&#8217;s say you want to change the maximum order amount for a specific website. To do this, follow these steps: These changes will now apply to the specific website you selected, and any store views under that website. If you want to apply the same changes to all websites or store views, you can follow the same steps and select the &#8220;Default Config&#8221; scope from the dropdown menu in step 2. Alternatively, you can use the configuration override feature to set a custom value for the &#8220;Maximum Order Total&#8221; setting in a custom module. To do this, you can create an XML file with the following content: This XML file sets the &#8220;Maximum Order Total&#8221; value for the &#8220;ccsave&#8221; payment method to 40,000. You can place this file in the app/code/[Vendor]/[Module]/etc directory of your custom module and enable the module in the Magento 2 admin panel.</p>
<p>The post <a href="https://www.tagvibe.com/configuration-layer-in-magento-2/">Configuration layer in Magento 2</a> first appeared on <a href="https://www.tagvibe.com">Tag Vibe</a>.</p>]]></description>
										<content:encoded><![CDATA[<p class="gtfy-67">In Magento 2, the configuration layer is a critical component of the system that allows developers and store owners to manage various settings for their store. The configuration layer is implemented using the Configuration module, which is part of the Magento\Framework\App namespace.</p>



<p class="gtfy-70">The configuration layer is designed to provide a hierarchical structure for managing different configuration settings. The hierarchy starts at the default level and extends to the store level. This hierarchical structure allows the settings to be inherited from the default level to the store level, making it easy to manage settings for multiple stores.</p>



<p class="gtfy-73">The configuration settings are stored in the database in the core_config_data table. This table contains a row for each configuration setting and stores information such as the configuration path, the value of the configuration, and the scope of the configuration (i.e. website, store view, or default).</p>



<p class="gtfy-76">The Configuration module also provides an API for retrieving and modifying configuration settings. This API can be used by developers to read and modify configuration settings programmatically.</p>



<p class="gtfy-79">The configuration layer is used extensively throughout Magento 2, and it is an integral part of the system architecture. It is used to manage a wide range of settings, including store-specific settings, system-wide settings, and module-specific settings.</p>



<p class="gtfy-82">Overall, the configuration layer in Magento 2 is a critical component of the system architecture, and it provides a flexible and hierarchical structure for managing configuration settings.</p>



<p class="gtfy-85">Here is some more information about the configuration layer in Magento 2:</p>



<ol class="wp-block-list gtfy-89">
<li class="gtfy-88 gutenify-list-item">Configuration Scope:</li>
</ol>



<p class="gtfy-92">The configuration layer in Magento 2 allows developers to set configuration settings at different levels of scope. The available scopes are &#8220;Default&#8221;, &#8220;Website&#8221;, and &#8220;Store View&#8221;. This means that a configuration setting can be applied to the entire Magento installation (Default scope), to a specific website, or to a specific store view. When a setting is applied at a higher scope, it is inherited by lower scopes. For example, if a configuration setting is set at the website level, all store views under that website will inherit that setting.</p>



<ol class="wp-block-list gtfy-96" start="2">
<li class="gtfy-95 gutenify-list-item">Configuration Path:</li>
</ol>



<p class="gtfy-99">Each configuration setting in Magento 2 has a unique configuration path. This path is used to identify the setting and to retrieve or modify its value. The configuration path is a combination of a group name, a field name, and (optionally) a website code or a store code. For example, the configuration path for the store name setting is &#8220;general/store_information/name&#8221;.</p>



<ol class="wp-block-list gtfy-103" start="3">
<li class="gtfy-102 gutenify-list-item">Configuration Structure:</li>
</ol>



<p class="gtfy-106">The configuration settings in Magento 2 are organized into different groups based on their functionality. For example, there are groups for General Settings, Catalog Settings, Sales Settings, etc. These groups are defined in XML files located in the etc/adminhtml/system.xml and etc/frontend/system.xml files of each module. Each group contains one or more fields, which are the individual configuration settings.</p>



<ol class="wp-block-list gtfy-110" start="4">
<li class="gtfy-109 gutenify-list-item">Configuration Override:</li>
</ol>



<p class="gtfy-113">The configuration layer in Magento 2 allows developers to override the default configuration settings by creating custom XML files. These files can be placed in the app/code/[Vendor]/[Module]/etc directory of a custom module, and they can be used to set custom values for specific configuration settings. When Magento 2 loads the configuration settings, it will merge the custom XML files with the default XML files, and apply the custom values for any overridden settings.</p>



<p class="gtfy-116">Overall, the configuration layer in Magento 2 provides a flexible and hierarchical structure for managing configuration settings, and it is an essential component of the system architecture. It allows developers to customize the behavior of the system and provides store owners with the ability to manage their stores efficiently.</p>



<h1 class="wp-block-heading gtfy-119">Example of how to use the configuration layer in Magento 2:</h1>



<p class="gtfy-122">Let&#8217;s say you want to change the maximum order amount allowed for your store. By default, Magento 2 sets the maximum order amount to 10,000. To change this setting, follow these steps:</p>



<ol class="wp-block-list gtfy-129">
<li class="gtfy-125 gutenify-list-item">Log in to the Magento 2 admin panel and navigate to &#8220;Stores&#8221; &gt; &#8220;Configuration&#8221; &gt; &#8220;Sales&#8221;.</li>



<li class="gtfy-126 gutenify-list-item">Click on the &#8220;Payment Methods&#8221; tab and then click on the &#8220;Credit Card&#8221; section to expand it.</li>



<li class="gtfy-127 gutenify-list-item">Scroll down to the &#8220;Maximum Order Total&#8221; setting and change the value to your desired maximum order amount (e.g. 20,000).</li>



<li class="gtfy-128 gutenify-list-item">Click the &#8220;Save Config&#8221; button to save your changes.</li>
</ol>



<p class="gtfy-132">Now, let&#8217;s say you want to change the maximum order amount for a specific website. To do this, follow these steps:</p>



<ol class="wp-block-list gtfy-139">
<li class="gtfy-135 gutenify-list-item">Log in to the Magento 2 admin panel and navigate to &#8220;Stores&#8221; &gt; &#8220;Configuration&#8221;.</li>



<li class="gtfy-136 gutenify-list-item">From the &#8220;Scope&#8221; dropdown menu, select the website for which you want to change the maximum order amount.</li>



<li class="gtfy-137 gutenify-list-item">Follow the same steps as above to locate the &#8220;Maximum Order Total&#8221; setting under the &#8220;Credit Card&#8221; section, and update the value to your desired maximum order amount (e.g. 30,000).</li>



<li class="gtfy-138 gutenify-list-item">Click the &#8220;Save Config&#8221; button to save your changes.</li>
</ol>



<p class="gtfy-142">These changes will now apply to the specific website you selected, and any store views under that website. If you want to apply the same changes to all websites or store views, you can follow the same steps and select the &#8220;Default Config&#8221; scope from the dropdown menu in step 2.</p>



<p class="gtfy-145">Alternatively, you can use the configuration override feature to set a custom value for the &#8220;Maximum Order Total&#8221; setting in a custom module. To do this, you can create an XML file with the following content:</p>



<div class="wp-block-kevinbatdorf-code-block-pro gtfy-148" style="font-size:.875rem;line-height:1.25rem"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="&lt;config xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:module:Magento_Store:etc/config.xsd&quot;&gt;
    &lt;default&gt;
        &lt;payment&gt;
            &lt;ccsave&gt;
                &lt;order_total&gt;40000&lt;/order_total&gt;
            &lt;/ccsave&gt;
        &lt;/payment&gt;
    &lt;/default&gt;
&lt;/config&gt;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff"><code><span class="line"><span style="color: #81A1C1">&lt;config</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">xmlns</span><span style="color: #ECEFF4">:</span><span style="color: #8FBCBB">xsi</span><span style="color: #D8DEE9FF">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">http://www.w3.org/2001/XMLSchema-instance</span><span style="color: #ECEFF4">&quot;</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">xsi</span><span style="color: #ECEFF4">:</span><span style="color: #8FBCBB">noNamespaceSchemaLocation</span><span style="color: #D8DEE9FF">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">urn:magento:module:Magento_Store:etc/config.xsd</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #81A1C1">&lt;default&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">        </span><span style="color: #81A1C1">&lt;payment&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">            </span><span style="color: #81A1C1">&lt;ccsave&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">                </span><span style="color: #81A1C1">&lt;order_total&gt;</span><span style="color: #D8DEE9FF">40000</span><span style="color: #81A1C1">&lt;/order_total&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">            </span><span style="color: #81A1C1">&lt;/ccsave&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">        </span><span style="color: #81A1C1">&lt;/payment&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #81A1C1">&lt;/default&gt;</span></span>
<span class="line"><span style="color: #81A1C1">&lt;/config&gt;</span></span></code></pre></div>



<p class="gtfy-151">This XML file sets the &#8220;Maximum Order Total&#8221; value for the &#8220;ccsave&#8221; payment method to 40,000. You can place this file in the app/code/[Vendor]/[Module]/etc directory of your custom module and enable the module in the Magento 2 admin panel.</p><p>The post <a href="https://www.tagvibe.com/configuration-layer-in-magento-2/">Configuration layer in Magento 2</a> first appeared on <a href="https://www.tagvibe.com">Tag Vibe</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
