Questions tagged [system-config]

Questions about using and extending the system configuration in the admin panel

Filter by
Sorted by
Tagged with
13 votes
3 answers
3k views

How to insert an <iframe> in an Admin Panel <field>?

I'm creating a custom module which displays Google Maps in the frontend of Magento. To get those maps the Admin would have to enter and save the URL of the map location in the Admin Panel. This all ...
MatthijsIJ's user avatar
  • 3,622
12 votes
2 answers
1k views

How is the start page of System Configuration (admin/system_config/index) defined?

I often notice that the start page of the system configuration (System > Configuration in admin panel) differs from installation to installation. Instead of showing the General > General section,...
Fabian Schmengler's user avatar
12 votes
1 answer
3k views

system.xml dependencies across groups/fieldsets

The system.xml allows us to make the visibility of individual fields dependent on values from other fields. The goto article is of course from Alan Storm: In Depth Magento System Configuration It ...
jmk's user avatar
  • 771
10 votes
5 answers
10k views

Magento2.2.3 - Admin store configuration is save but not display in admin panel

I want to change store configuration in Magento2.2.3. But when I try to save the configuration from admin it saved in the database (core_config_data table). But not getting changed in admin store ...
Emipro Technologies Pvt. Ltd.'s user avatar
8 votes
3 answers
9k views

How to get store config inside a theme template

I am trying to add the store's phone number setup in Stores > Configuration > General > General > Store Information to the header in my theme. In a module I think this could be done using getValue() ...
Alex's user avatar
  • 540
7 votes
2 answers
4k views

dynamic key => value pair adminhtml setting for custom module

I have a custom module with adminhtml setting (system.xml), which allows the the user to assign a unique "code" to a specific shipping method. It looks something like this: As you can see, this is ...
Latheesan's user avatar
  • 1,038
6 votes
5 answers
25k views

Get config value for specific store from admin area

I'm building a custom module for both Magento 1.9.x and 2.x. In the module's settings I want to get one of the config value i.e. I have a text field and when the user save the settings, I use the ...
Vixent's user avatar
  • 349
6 votes
6 answers
5k views

Role resource tree not displaying in magento2

Magento 2.0.2 I am trying to add a new user role, but when I go to the Role Resource tab it doesn't display the Resources tree. I have no errors displaying. What is the next step to try and figure out ...
Manish's user avatar
  • 3,106
6 votes
1 answer
4k views

System configuration custom source model error

I'm trying to create an System configuration section with custom field values This is my code: system.xml <?xml version="1.0"?> <config> <tabs> <macerierconf ...
Macerier's user avatar
  • 163
6 votes
1 answer
5k views

{{base_url}} is not recommended to use in a production environment to declare the Base Unsecure URL / Base Secure URL

{{base_url}} is not recommended to use in a production environment to declare the Base Unsecure URL / Base Secure URL. It is highly recommended to change this value in your Magento configuration. I ...
Helphin's user avatar
  • 974
5 votes
2 answers
476 views

Set Magento Config Data For Script Duration Only

Is it possible to set a Magento configuration option for the duration of a single script only? I'm trying to programatically and recursively create orders in Magento. I want to enable the Flat Rate ...
Jongosi's user avatar
  • 1,511
5 votes
1 answer
10k views

Conditionally show block in layout XML

<referenceContainer name="header-wrapper"> <block class="VES\Sociallogin\Block\Buttons" ifconfig="section/group/field/type_multiselect" value="something" as="block.buttons.header" ...
mrtuvn's user avatar
  • 3,273
5 votes
1 answer
2k views

Implement "Use system value" in custom module

In the magento backend under Stores -> Configuration some of the fields have the "Use system value" checkbox next to them and some don't have it. Checking the checkbox "restores" the field to the ...
maginfortis's user avatar
5 votes
2 answers
2k views

Get system config option inside source model of another option

In my custom module I have two custom option in the system configuration. Values of the second option depend on the value of the first option. My problem is that inside the source model of the second ...
zitix's user avatar
  • 2,192
5 votes
1 answer
739 views

How to add a multiselect field to system config field table?

I want to add a table to a config section, where one column is a multiselect field. Code is simliar to https://www.integer-net.com/how-to-create-tables-in-magento-system-configuration/, but Magento ...
sv3n's user avatar
  • 11.7k
5 votes
1 answer
799 views

Magento1 Mage::getStoreConfig non cached value

Is there a way to get a non-cached config value from Magento using Mage::getStoreConfig without having to first flush the entire config cache?
Haim's user avatar
  • 2,134
4 votes
1 answer
12k views

Magento 2: Get admin config values

I have done this in Magento 1 but I am struggling with Magento 2. I am building a module to observe failed admin logins and email. My module.xml located in etc/adminhtml/module.xml <section id="...
Barry Connolly's user avatar
4 votes
1 answer
4k views

Magento 2 : How to check multiple if config in layout?

Here is my code to add toplinks in my custom module <referenceBlock name="header.links"> <block class="Magento\Framework\View\Element\Html\Link" ifconfig="hello/general/enable" name="...
Piyush's user avatar
  • 5,893
4 votes
2 answers
6k views

Magento 2 toggle switch (yes/no) in admin config of custom module using system.xml or in any programmatic way

I understand that we can create a toggle switch using form with ui_component. However, I want to create an admin configuration for my custom module using system.xml configuration. Is there any way ...
fmsthird's user avatar
  • 4,592
4 votes
2 answers
3k views

Magento 2 : Specific Range Validation in system configuration field

I'm new in magento. I develop one module in Magento 2.2.2. I want to do like that in system configuration that, user can enter value between 0 to 100 in that field. User can't enter text value and ...
Michael Jones's user avatar
4 votes
3 answers
1k views

Magento2 : How to add new text field in Store->Configuration->General->store Email Address?

Its being created under System->Config->General->Customers: <code> <config> <system> <section id="trade_customer" translate="label" type="text" sortOrder="100" ...
Dinesh Rajput's user avatar
4 votes
1 answer
3k views

Admin config with extendable amount of fields

I want to create an admin config with "exception dates". Since the number of these dates can vary, I cannot just put a constant number of input fields in the config. Is there a way to automatically ...
Metal Mathematician's user avatar
4 votes
1 answer
2k views

Page not found 404 when accessing custom module in system configuration

When i try to access my system > configuration > i got an error saying page not found 404 here's my code: config.xml : <?xml version="1.0"?> <config> <modules> <...
Idham Choudry's user avatar
4 votes
1 answer
3k views

Config value not rendering in Magento 2

In my custom module have config section values are saving but not rendering. Could you please let me know where I went wrong? My code is: system.xml <field id="customer_header" translate="label" ...
Bojjaiah's user avatar
  • 3,992
4 votes
1 answer
2k views

Magento 2 Scope Interface Model

I have recently gone through magento's core ScopeInterface file which is located in Magento\Store\Model. My question is why magento define SCOPE_STORES & SCOPE_STORE similar as WEBSITE and for ...
Himanshu's user avatar
  • 1,761
4 votes
1 answer
2k views

Magento 2: Custom validation for system.xml

Is it possible to create a custom validation for fields in configuration? (Stores > Settings > configuration) I created a system.xml file but the default values for the validate tag are not enough ...
Thomas F's user avatar
  • 115
3 votes
3 answers
2k views

Dependent Groups on System Configuration

I know that to create a dependency for fields it's possible to use the node <depends /> That said, I've been trying several ways to create a group dependency but I can't seem to find a way to ...
changeling's user avatar
3 votes
2 answers
1k views

Magento 2 event observer custom config save given error

I have a custom section tab in configuration my section url is: http://dev.test/admin/admin/system_config/edit/section/vendor_module/key/????????? exception(s): Exception #0 (Magento\Framework\...
Juliano Vargas's user avatar
3 votes
0 answers
123 views

Add color picker in system.xml in serialized grid in Magento 2

I want to assign the color code to a particular customer group by the system.xml file. I have successfully created the grid, but I am facing difficulty adding the color picker in the color column of ...
D Singh's user avatar
  • 1,144
3 votes
1 answer
1k views

Magento2- Dynamic row system config store data in database but after save not display in backed

My config file after save config data After save data It also show error in console as there is no any field after save data it does not give me unserialaize data my php file to render data in ...
Arjun Soni's user avatar
3 votes
0 answers
491 views

use system config value to disable code from requirejs-config.js

I would like to create a configuration setting in my module's adminhtml/system.xml to disable it's features. I know how I can system config values to disable code in LayoutXML or PHP but is it ...
Holly's user avatar
  • 4,863
3 votes
1 answer
3k views

Warning: simplexml_load_string(): Entity: line 88: parser error

I am having problem with Magento log There are many log that say simplexml_load_string (): parser error. I have spend 4H to find the issue and finally got the issue. Issue with Magento cache if ...
Vaibhav Ahalpara's user avatar
2 votes
4 answers
55k views

Magento 2 - How to config mail sending?

In Magento 2, How to config mail sending ? I used the gmail host to test. I set below but I try use feature forgot password on front-end and then I can't see email in client's mail box. View "forgot ...
MrTo-Kane's user avatar
  • 3,656
2 votes
2 answers
5k views

Magento 2: How to show admin system configuration options conditionally?

I have a dropdown in Magento 2 config setting. Now I want the setting to get displayed only when there are any options available for the dropdown, else it should be not shown. I also want to display a ...
Pankaj Bhope's user avatar
  • 1,546
2 votes
1 answer
9k views

Custom admin module system configuration not working - 404 Error

I am working on a custom magento admin module, which can be configured through (System -> Configuration -> My Module). Here are my xml from etc dir: app/code/community/Mycompany/Mymodule/etc/config....
Latheesan's user avatar
  • 1,038
2 votes
1 answer
3k views

Only one base currency is displaying in magento admin panel?

I have a magento store that is pre made by some one. In that in admin panel system configuration in curreny setup base currency, I have found only one currency "Australian dollar".How can i enable or ...
Sanket Kulkarni's user avatar
2 votes
1 answer
2k views

depend not working in system.xml

I created system.xml file like below and set all fields depend on active field but some of them doesn't work and display even active field is disabled system.xml <fields> <active ...
sIiiS's user avatar
  • 632
2 votes
1 answer
221 views

Inside admin when i click on system i'm throwing an error on m2 2.2.5

I've tried to change the ID name but it did not work. 1 exception(s): Exception #0 (InvalidArgumentException): Element with id "system_cron_template_use_separate_process" already exists Exception #0 ...
getData's user avatar
  • 327
2 votes
1 answer
133 views

validation class not calling in system.xml if I defined type image

if I define 'type=file' than validation is calling but image icon is not displaying on screen. but if I define 'type=image' than validations not calling and image icon is displaying on screen. I want ...
Ritika's user avatar
  • 89
2 votes
1 answer
2k views

Base URL is not working properly

Our url is omitting the first '/', like so: ourdomain.comindex.php when it should be ourdomain.com/index.php. I've looked everywhere in the config, and haven't found a reason why it should be doing ...
dhagerty's user avatar
2 votes
1 answer
739 views

How to get country of origin of the store from configuration

I need to programmatically get the country, zip code and state of the store that is at: Stores->Configuration->SALES->Shipping Settings->Origin
Hudson Alves Triunfante's user avatar
2 votes
1 answer
866 views

Magento system configuration issue

How can I fix the next error please: When i go to Store>Configuration>Store email address and try to change from Name: Owner E-mail: [email protected] to Name: Shop e-mail: [email protected] i get ...
Anas Mansuri's user avatar
  • 2,627
2 votes
1 answer
58 views

What is the scope of source model extend and implement?

What is the scope of source model extend and implement between these two? \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource \Magento\Framework\Data\OptionSourceInterface Attribute options ...
Muhammad Hossain's user avatar
2 votes
1 answer
5k views

Magento 2: `magento app:config:import` doesn't import system configuration

I'd like to import system config through the app:config:import command. I have update app/etc/config.php file with described customer/captch/enable config path: <?php return array ( 'system' =&...
Kirby's user avatar
  • 733
2 votes
2 answers
251 views

Getting page error 404 while calling Mage::getStoreConfig with current storeId

Using Magento 1.9.3 Mage::getStoreConfig is redirecting magento admin to 404 page instead of retrieving the store field value. In controller $store = $this->getRequest()->getParam('website'); ...
Aboodred1's user avatar
  • 483
2 votes
1 answer
2k views

Call Helper methods in phtml file Custom Module in Magento 2.x

In /var/www/html/magento2/app/code/Custommodule/ReviewRating/Block/HomehorizontalWidget.php <?php namespace Custommodule\ReviewRating\Block; class HomehorizontalWidget extends \Magento\...
inrsaurabh's user avatar
  • 1,676
2 votes
2 answers
2k views

Magento 2 - Showing iframe in admin configuration panel

I want the users who download and install my extension from the marketplace to go through a registration/login flow. Since the normal system.xml file supports only static pages and doing the entire ...
satnam's user avatar
  • 85
2 votes
1 answer
163 views

Translation conflict between modules within the same system_config section

I created my own section (say "Company") under admin system_config <config> <sections> <company translate="label"> <label>Company</label> ...
LittleBigDev's user avatar
2 votes
1 answer
620 views

ACL for custom config group - section disppeared?

I'v tried to add a new section to Store -> Config -> Catalog Section -> Catalog with custom ACL settings. I changed (default) adminrole permissions from "All" to "Custom" and left only the ...
sv3n's user avatar
  • 11.7k
2 votes
0 answers
437 views

What is the event observer for system config page load in Magento 2

We know that we can use custom_admin_system_config_changed_section_general for system config page save event. But is there any observer to the config page load event? Thanks.
subhas's user avatar
  • 53