Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [system.xml]

Denotes question related to the system.xml module configuration file.

3
votes
1answer
32 views

Retrive Configuration data via API

Is Magento giving any default REST API for retrieving configuration (system.xml) data ?. If yes then share URL. Else share the best approach for retrieving configuration data via REST API.
0
votes
0answers
3 views

Magento 2 Create Url Rewrite from configuration system.xml

How to create url rewrite from system.xml configuration for particular store view when saved. Best!
7
votes
2answers
156 views

How to show Categories in System.xml in magento 2

I'm getting all the categories in System.xml using the class Vender\Module\Model\Config\Source\Category <?php namespace Vender\Module\Model\Config\Source; use Magento\Framework\Data\...
1
vote
2answers
29 views

getting 404 on system configuration

I am using Magento 1 to create a system configuration left menu is created successfully but when I click on that getting 404. what I have tried Re-logging into the dashboard. Using ACL. Clearing var/...
2
votes
2answers
42 views

How to create a table in configuration system.xml file in Magento 2?

How can i create table in system.xml file is there any way? I had searched around but can't find any solution want to create like this
1
vote
1answer
28 views

Magento 2 Configuration depends

In my configuration, I have two field number x and number y. I want to add a condition in which the number y must be less than the number x. How can I write this condition in a configuration file (...
1
vote
1answer
35 views

Magento 2 : toggle whole group in system.xml based on field in another group

I have created two groups in system.xml. I need to show/hide group 2 depending on the "Module Enable" field in group 1. But when I use the following code it hides both the sections and does not save ...
1
vote
0answers
26 views

how to set default value for multi select field e.g specificcountry?

I've a field in system.xml <field id="specificcountry" translate="label" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0"> <label>Ship to ...
1
vote
3answers
149 views

How to implement Time Range Picker in Magento 2 Admin system.xml?

I found one similar solution that almost does what I want. DateTimePicker System.xml I have implemented its code and was able to display a DateTime Picker in my admin configuration. However, I ...
0
votes
1answer
29 views

Magento 2 Store View multiselect in system.xml

I am not able to add store view selection in system.xml I am only able to add in the ui form field component: When I tried to add in system.xml it gives the error: 1 exception(s): Exception #0 (...
0
votes
1answer
53 views

magento2 enable/disable value get and set value

I have a module which shows value in the frontend, and from admin system configuration I want to disable that module options are coming like yes/no no I want to get that value of enabling/ disable ...
1
vote
1answer
32 views

How to get Label and Value both from system.xml. Magento 2?

I want to get the value and label both from the system.xml I'm trying etc/adminhtml/system.xml <field id="link" translate="label" type="select" sortOrder="20" showInDefault="1" ...
1
vote
1answer
43 views

Magento2: How to disable password autofill on store-configuration?

I have 2 fields on my system.xml. The first one is an authentication key (obscured). The second one is an email. The thing is, because I use my email & it's also saved in my browser with a ...
1
vote
0answers
303 views

Exception #0 (Exception): Notice: Undefined index: id in \vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line 63

1 exception(s): Exception #0 (Exception): Notice: Undefined index: id in C:\wamp64\www\codility-magento-market-place\vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line 63 ...
1
vote
1answer
36 views

Detect change in system.xml field with observer

I need to config a observer to detect when a option created in system.xml change its value. The field is made by the code above: <config> <sections> <dev> &...
0
votes
1answer
12 views

Source Model for Catalog product tye

I am creating a bespoke extension and I want to allow the admin to choose to restrict by product types eg Simple, Configurable, Bundle etc The issue is I am not sure what source model to use. I have ...
1
vote
2answers
44 views

Display htmlContent in configuration in magento 2

i want to show some htmlContent in configuration. System.xml. how it could be?
0
votes
1answer
32 views

Magento 2. How to create StoreView in System.xml

How to create Store View in System.xml. I can explain it with image given below
1
vote
2answers
479 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 ...
0
votes
1answer
50 views

Render fields base on attributes to system.xml

Is there way to list all of catalog attributes in my custom catalog tab? each attribute as field label and a text input field, basically mapping a text to an attribute name / key or if there is a ...
-2
votes
1answer
90 views

Magento 2 How can I create two different sections under the same tab item in admin menu?

I have created two different modules, now I want to create one tab in admin system configuration and show both modules configurations in different tabs. I have two different modules within same "...
0
votes
0answers
25 views

Magento 2. How do I select all the products of specific category

I want to hide the price for specific category using System.xml now I don't know how to hide prices for all the products available in specific Category like I want to hide prices of Men then how can I ...
4
votes
1answer
57 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 ...
1
vote
1answer
62 views

Magento 2 Saving store configuration programatically in upgrade script

I want to save store configuration programtically but I'm just getting one problem after another. Firstly I wanted to use Writer class but since it only updates core_config_data table it doesn't work ...
1
vote
2answers
216 views

How to add placeholder in system.xml for custom admin configuration fields in magento 2

I am creating field by using this code in my system.xml file of custom module <field id="SenderCity" translate="label" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1"&...
0
votes
1answer
765 views

Magento2 system.xml Adding Section To Existing Tab

On Stores->Configuration->Sales trying to add one more section theres no groups yet: Lukas\DeliveryNotification\etc\adminhtml\system.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento,...
0
votes
1answer
39 views

Is it possible to append a system configuration to existing configuration section group via a custom module

I've tried to add a configuration item to sales/carriers/fedex in my custom moduel, but seems not work <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
1
vote
2answers
346 views

Magento2 select by default one radio button in system configuration

In my custom module system.xml I added <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <...
0
votes
0answers
62 views

Magento2: change output template of field in system.xml

I have a file upload field in my system.xml file, declared in this way: <field id="custom_file_upload" translate="label" type="Magento\Config\Block\System\Config\Form\Field\File" sortOrder="6" ...
2
votes
0answers
46 views

How to trim text before saving in system.xml

In my custom module in system.xml in Admin I have field: <field id="user_key" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1"> <label&...
1
vote
0answers
31 views

magento 1.9 How to change css only for my Brasilian shop throught store configuration system.xml? [closed]

I have a multiple stores. In one of my stores (Brasilian) i want to remove the bulletpoints from an on the registration page. Somehow I need to do that via store configuration system.xml file, but I ...
1
vote
0answers
62 views

ifconfig to disable part of an extension

I have added a Column to the New Order -> Customer Grid. I am having a really tough time getting the system config to disable this code if turned off. I was hoping I could use a simple ifconfig in the ...
0
votes
1answer
59 views

Magento2 what is use of canRestore property in system.xml? [duplicate]

Can anyone let me know what is exact use of canRestore property defined in system.xml field in Magento2?
1
vote
1answer
447 views

How to override comment field in system.xml in magento2?

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 <?...
0
votes
1answer
120 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 ...
0
votes
0answers
18 views

Magento 2 System Config Static Image set and image Click Than That Image Prieview

I want to set static Image at system config and click on that image preview, if any one know that, than tell me how to create. I can analysis but system config only create the form field, but I want ...
2
votes
1answer
52 views

Get entire config group with scopeConfig

Currently when I want to get an entire admin page worth of module configuration, i.e. a <section> or <group>, I just end up doing something like: $emailOnSuccess = $this->scopeConfig-&...
6
votes
1answer
192 views

Custom Module for Custom Column using Plugin Yes/No option

I have been digging all day trying to figure out a way to enable/disable the plugins of my custom module with system configuration yes/no. Basically, I have a custom module that adds the Company ...
0
votes
2answers
293 views

Magento 1.9 : 404 Error Page not found for configruation [closed]

I created system xml and configuration tab but it shows 404 error. Any hint?
1
vote
2answers
577 views

What does “canRestore” attribute mean in system.xml?

Maybe someone already saw an <field> attribute canRestore="1": [...] <field id="provider" translate="label" type="text" sortOrder="100" canRestore="1" ...
2
votes
2answers
70 views

Magento 2.1.9 - Custom Module tab not showing

I have followed different posts in order to get the solution and the tab working, but It doesn't show up. I have followed this ones: Custom admin configuration tab not showing Magento CE 2.1 ...
1
vote
1answer
88 views

system settings withing Ui Component Form

I want to show a certain text (that is set with a configuration setting from system.xml) within my UI component Form. The UI component is used in the frontend. Do i provide it with a DataProvider? ...
0
votes
1answer
62 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 ...
2
votes
3answers
78 views

Add system section from other extension

I developed a extension which has configuration options in the backend. Is it possible to add another section to it from another extension? This is the system.xml file from the first extension: <...
0
votes
3answers
50 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
0
votes
0answers
90 views

Magento2 : How to get system.xml field path in Block

I have a module that add configuration fields in system.xml. system.xml <field id="bla" translate="label" type="text" sortOrder="22" showInDefault="1" showInWebsite="0" showInStore="...
1
vote
1answer
31 views

How to define variable in system configuration field and update them in controller?

In system.xml I've a field 'twilio/general/message' which saves following message: Use {{otp}} as otp to verify your mobile number. In controller I'm getting field's value as $message = $this->...
0
votes
0answers
79 views

Proper way to get label from system.xml

I have a form in the store -> configuration what I've created in my system.xml. Before save I want to validate it. When an error happens, I want to inform the user what field was not valid. How can ...
0
votes
1answer
991 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/...
2
votes
1answer
401 views

Why I get This DOM Error?

My system.xml in /etc/adminhtml is the reason for this error <field id="vendor_role" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1"> <...