Questions tagged [system.xml]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Add dynamic mass action in sales grid order magento 2 [duplicate]

I wrote this system.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file....
0
votes
1answer
19 views

Magento 2 system xml config get groups name programtically

I have a custom phtml file in system config and been added to 3 groups: group_1, group_2, group_3 in phtml I have: <input id="my_value" type="number" name="groups[group_1][groups][my_settings]...
3
votes
3answers
70 views

Unable to save blank multiselect value in system configuration in Magento 2

I have created multiselect in system.xml with backend_model and customize afterSave function and return parent::afterSave(). <field id="populatavailablebanknetbanking" translate="label" type="...
0
votes
0answers
14 views

Get configValue in _prepareToRender function of a block

I want to get the configValue of system.xml in this block <?php namespace Module\Vendor\Block\Adminhtml\Menu\Field; use Magento\Config\Block\System\Config\Form\Field\FieldArray\...
2
votes
0answers
32 views

Take value of a field in a block and place it in another field

I have a problem taking values from a system.xml field to show them in another field. This is the system.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
35 views

How to Create Cart Price Rule Conditon in backend Configrations(system.xml)?

How to Create Cart Price Rule Conditon in backend Configrations system.xml
1
vote
2answers
25 views

Email template 'test_email_template' is not defined in magento 2 admin

system.xml <?xml version="1.0"?> <!-- /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
17 views

Magento2 config data

If I retrieve some data from config: $allowedCurrencies = explode( ',', $this->scopeConfig->getValue( \Magento\Directory\Model\Currency::XML_PATH_CURRENCY_ALLOW, ...
0
votes
2answers
42 views

Magento 2 system configuration state multiselect dropdown

First i have created country drop-down in back-end system configuration, using source model as <source_model>Magento\Directory\Model\Config\Source\Country</source_model> Next based on ...
1
vote
1answer
31 views

system.xml What is the difference in adding a new configuration option process for different option types (secret, file)?

From the official M2 Developer certification guide I'm stuck at this question. How would you add a new system configuration option? What is the difference in this process for different option ...
2
votes
1answer
25 views

Is there an official detailed documentation of the possible nodes,values and attributes than can be found in system.xml?

Is there an official detailed documentation of the possible nodes,values and attributes than can be found in system.xml I can figure out the meaning of some of them myself, but some of them elude me. ...
3
votes
1answer
40 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
4 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
165 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
34 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
44 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
46 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
59 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
210 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
35 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
94 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
35 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
97 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
458 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
38 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
63 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
48 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
725 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
71 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
112 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
29 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
83 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
71 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
307 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
1k 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
59 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
372 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
67 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
53 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
33 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
71 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
61 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
539 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
136 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
19 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
84 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
206 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
316 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?