Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.Forem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur tempus urna at turpis condimentum lobortis.
In Magento 2, the “System Configuration” tab refers to the section in the Magento Admin Panel where you can configure various settings and options for your Magento store. It provides a user-friendly interface for managing the store’s general settings, payment methods, shipping methods, tax settings, email configuration, and more.
To access the System Configuration tab in Magento 2, follow these steps:
The System Configuration page is organized into different sections, each focusing on a specific aspect of the Magento store. Some commonly used sections include:
Within each section, you’ll find a set of configuration fields that you can modify according to your requirements. After making changes, be sure to click on the “Save Config” button to save your configuration updates.
Step 1: Create a system configuration layout file
Create adminhtml_system_config_edit.xml in app/code/Dolphin/Customize/view/adminhtml/layout directory with the following code.
<?xml version="1.0" encoding="UTF-8"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd"> <head> <css src="Dolphin_Statusgridcolor::css/tab.css"/> </head> </page>
Step 2: Create css file
Create tab.css in app/code/Dolphin/Customize/view/adminhtml/web/css directory with the following code.
.admin__page-nav.dws-config-tab._collapsed._show ._collapsible strong:before { content: ""; background: url(../images/tab/plugin.png) no-repeat scroll 0 0 transparent; width: 100%; height: 50px; display: inline-block; vertical-align: bottom; } .admin__page-nav.dws-config-tab._collapsed._show ._collapsible strong { font-size: 0; }
Step 3: Create a system configuration file
Create system.xml file inside the app/code/Dolphin/Customize/etc/adminhtml directory with the following code.
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <system> <tab id="dolphin" translate="label" sortOrder="10" class="dws-config-tab"> <label>Dolphin</label> </tab> <section id="statuscolor" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1"> <class>separator-top</class> <label>Status Color</label> <tab>dolphin</tab> <resource>Dolphin_Statusgridcolor::statusgridcolor_config</resource> <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0"> <label>General Configuration</label> <field id="enable" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0"> <label>Module Enable</label> <source_model>Magento\Config\Model\Config\Source\Yesno</source_model> </field> <field id="statuscolor" translate="label" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Ranges</label> <frontend_model>Dolphin\Statusgridcolor\Block\Adminhtml\Form\Field\StatusColors</frontend_model> <backend_model>Magento\Config\Model\Config\Backend\Serialized\ArraySerialized</backend_model> </field> <!-- <field id="select_color" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Select Color</label> <frontend_model>Dolphin\Statusgridcolor\Block\Adminhtml\ColorPicker</frontend_model> </field> --> </group> </section> </system> </config>
Now execute the below command and go to the system configuration page:
php bin/magento s:up
php bin/magento s:d:c
php bin/magento s:s:d -f
php bin/magento c:c
Result:-
I Hope, This instruction will be helpful for you.
If you have any difficulties regarding this blog, do consider posting them in the Comments section below!
I’m here to help.
Thank you!