Questions tagged [system-config]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
140 views

Magento2: How to validate a specific system-configuration field on the server-side before save?

I have a custom module with some system configuration fields that needs to be validated on the server side (API credentials, etc...). At the moment, I'm using an observer on the ...
0
votes
1answer
274 views

Display decrypted or empty value in configuration

I have a configuration value that I encrypt upon save, but when I look at it again in the configuration (UI), I get the encrypted string. I would like to show an empty string (production) or the ...
5
votes
1answer
513 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?
2
votes
0answers
234 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.
1
vote
1answer
345 views

Use system value is not showing up

Hi I am new to magento2 and learning currently the basics. I have an module and set up some system configuration for it but the checkbox Use system value is not showing up next to the field. I have ...
2
votes
2answers
194 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'); ...
1
vote
0answers
46 views

Magento 2.2.x admin config, multiple times

I have a question, does anyone know if it is possible to add an admin config field to each payment method without declaring it for each system config section separately? For example, I have an admin ...
3
votes
2answers
937 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 ...
1
vote
2answers
408 views

CMS page id from system configurations Magento 1.9

In my custom module, I have a field in the system configwith cmspages. I need to get the id of the selected cms page, not the identifier, so I can get the content of a cms page in a phtml file. I ...
0
votes
1answer
147 views

How to prevent LastPass to autofill Magento's admin configuration while edit?

The problem happens when you modify something in admin configuration in Magento 2 admin panel. The LastPass will autofill obscured fields and you will lose your data in these fields. How to prevent ...
1
vote
2answers
955 views

In etc/config.xml This element is not expected. Expected is one of ( default, stores, websites )

Magento version : 2.1.11 I am using a custom module at custom-module/etc/config.xml there is below file. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
3answers
78 views

Can't get templates from store config?

I tried : $store = Mage::app()->getStore(); $configValue = Mage::getStoreConfig('design/themes/templates', $store); but it returned null. Where is my fault? p.s. Value set
3
votes
0answers
166 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 ...
0
votes
1answer
36 views

How to duplicate my magento website keeping configuration to start another project?

I have a magento website and I would like to start another project with distinct domain ,products and the appareance, keeeping all configuration. I am using magento 1.9 Could your help me to ...
5
votes
4answers
3k 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 ...
0
votes
0answers
165 views

Get Config Path value based on website scope

From a CMS Page, block or transactional email it's possible to get a config path value for the website url with: {{config path="general/store_information/country_id"}} Is it possible to get this ...
1
vote
0answers
124 views

HTTP Error 500 when trying access Admin System Configuration

In the system log I get the following error: 2018-04-09T14:03:13+00:00 ERR (3): Warning: include(Mage/Mailchimp/Helper/Data.php): failed to open stream: No such file or directory in /Applications/...
4
votes
1answer
512 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 ...
1
vote
1answer
439 views

Magento 2 : Error when i click the admin->configuration

I am getting this error when I click on stores->configuration Notice: Undefined index: id in D:\xampp\htdocs\tork\vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line ...
1
vote
1answer
536 views

Dynamic number of text fields when a value from dropdown is selected in Magento 2 system configuration backend

I have one drop down with fixed set of values lets call 1 to 5. when i select any number that many number of textboxes should be visible in the admin system configuration in magento 2. for example. ...
0
votes
1answer
2k views

get System configuration fields values - custom module

I have a module for Homepage Banner. I have stated two system config fields inside the module- etc/adminhtml/system.xml. I need the values of these fields in frontend phtml file "view/frontend/...
1
vote
1answer
1k views

save data from a module if save config buton is click in admin configuration

save data from a module in database if save config button is click in admin configuration. Basically I want to disabled a module if disabled from admin. Actually disable functionality is not working. ...
-1
votes
1answer
285 views

Magento ver. 1.9.3.7 not saving info when updated in Admin. It says: “The configuration has been saved.” but does NOT save it [closed]

Magento ver. 1.9.3.7 Porto theme I did a fresh install of Magento ver. 1.9.3.7. I installed the Porto theme on top of it. Everything has been working great (I changed some settings around in the ...
1
vote
0answers
1k views

System configuration:array serialization in magento 2

I have created system configuration for my custom module like below Group 1 It works fine for a group 1 and generates a unique id for each row. But while adding the second group, It adds the same ...
1
vote
2answers
3k views

How to add default values for system configuration in magento 2

How to add default values for system configuration in magento 2. I need to create and assign default values for system configuration(system.xml) for my custom module. I have already created ...
0
votes
1answer
1k views

Undefined index: label vendor/magento/framework/Data/Form/Element/Select.php on line 68

I'm getting this error when going to a custom extension's (IWD_Opc) admin configuration page. Undefined index: label in .../vendor/magento/framework/Data/Form/Element/Select.php on line 68 Any ideas ...
5
votes
2answers
797 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 ...
1
vote
1answer
506 views

How to get system configuration values dynamically in xml file in magento 2

I have created admin grid and form using Ui component, Now I need to get system configuaration values in my form.xml. Please provide me a solution I need to get width,height,image size from below ...
1
vote
1answer
370 views

Get configuration for custom module

I'm trying to get a configuration for my custom module My Custom module overrides \Magento\Swatches\Block\Product\Renderer\Configurable With the following Code: namespace Vendor\swatchExtender\...
2
votes
1answer
1k 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\...
0
votes
1answer
160 views

Is there any chance to call phtml file into system.xml file?

Hello, I have to know that any chance to call phtml file into system.xml if yes then how is it possible? Thanks.
1
vote
2answers
313 views

Where is “Search Engine Robots” configuration panel in Magento 2.2?

I see, that "Search Engine Robots" should be in "Stores / Configuration / General / Design" path. I see that this panel was there in Magento 2.1. But I cannot see "Design" section at all in the fresh ...
0
votes
0answers
497 views

How can I enable system configuration values that are disabled

In the magento backend under stores->configuration, I can't edit most of the system settings anymore. Usually I was able to uncheck "use system value" and then change the corresponding value as I ...
0
votes
2answers
88 views

magento 2 admin config text fields side by side

How to add 2 or 3 text fields inline at the admin configuration of Magento 2? As I checked everywhere, I am able to add text fields one by one. How Can I do this as my admin config fields look like ...
5
votes
5answers
17k 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 ...
0
votes
1answer
327 views

Add a external link to system configuration tab

Is it possiible to add an external link to system config tab? Usually, when you create new section, you can add link to system config only, but in my case, I want to add a link to custom module grid.
4
votes
1answer
2k 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 ...
0
votes
3answers
923 views

I have create system.xml for system config value but not work

I have created one extension now i released i have also need some system config value where user can easily to handle this module. so i have created system.xml in adminhtml folder but its not work ...
1
vote
1answer
683 views

How to add JS/CSS from layout.xml only if multible conditions are met?

I have three fields in admin config section that have to be checked. If at least one of them is set to true the files should load. layout.xml <reference name="head"> <action method="...
0
votes
3answers
1k views

Blank page when trying to configure payment methods in Magento 2

I'm using Magento 2, when navigating to Stores > Configuration > Sells > Payment Methods it shows a completely blank page. I've already enabled dev mode and in other situations errors shows directly ...
5
votes
1answer
590 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 ...
0
votes
1answer
930 views

Magento2 : How to save system config programmatically [duplicate]

I made a module to add configuration fields to system (system.xml). Some of these fields are dynamic arrays (cf here) which are generated using an extend of \Magento\Config\Model\Config\Backend\...
4
votes
1answer
2k 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="...
0
votes
1answer
836 views

Magento 2 redirect going back to admin

I have a controller that is executed in the system configuration. The desired result is that the code is executed and is redirected back to its original page. When the url keys are active, the page ...
0
votes
2answers
2k views

Head Miscellaneous Scripts section

I have a very strange problem. I need to add some common script to my website, and I use Miscellaneous Scripts for that on system > configuration > design > html head everything worked fine, but ...
2
votes
2answers
1k 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 ...
0
votes
2answers
2k views

System Config page at backend is showing Blank page

It shows blank page when navigating to System -> Configuration as shown in below image- and after changing in 'current configuration scope' dropdown to any website view or store view it shows 404 ...
2
votes
2answers
4k 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 ...
2
votes
2answers
2k views

Magento 2 System Configurations not showing

I am trying to bring some system configurations for my custom module in the backend. I wrote the following code for the configurations but I am not getting any results. Tm/Productpoll/etc/acl.xml &...
1
vote
1answer
636 views

Need to list the mail template in my custom module config in Magento 2?

I have create one module for my custom use. now i want to list the mail template in store config in magento 2. i have try some code but its not working for me. <field id="pickup_template" ...