Questions tagged [system.xml]

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

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

Magento2 on changing particular config value from system config (yes/no) call a custom script to update product category

Magento2. I need to update some of the products category via custom script when a particular system config value is enabled or disabled For e.g. I kept yes/no dropdown under system config. When I ...
0
votes
1answer
20 views

magento 2 how to get shipping method in system configuration

system.xml <field id="shippingmethod" translate="label" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore=...
1
vote
1answer
25 views

How to find config column in core_config_data table?

I want to add values to this field from "core_config_data" table, how do i identify it ? <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
3
votes
1answer
29 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 ...
0
votes
0answers
19 views

Create dynamic field with Drag-able feature in system configuration in magento 2

I want to implement a dynamic field with a drag-able feature in a system configuration in Magento 2. Can I implement this feature or not?
0
votes
1answer
43 views

How to get PDF file URL uploaded in system.xml. Magento 2

I'm trying to upload PDF file via system.xml my code is <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
37 views

Get system config data in custom module

I've seen a couple of things about this but I can't seem to get the value I have <field id="template" translate="label" type="select" sortOrder="3" ...
1
vote
1answer
24 views

Magento 2 : Fetch system.xml group id in source model

In Magento 2, I want to fetch group id from system.xml in my custom sourceModel But I am unable to find a solution online. Please do let me know if it's possible or not. I know there's an alternate ...
0
votes
0answers
22 views

How to send email admin dynamically when order placed

In this I want to create custom module for Send email to admin from one email sending field to get email id and send email on that id after order placed successfully using event and observer and one ...
2
votes
1answer
44 views

Can you redirect CMS page to custom frontend route magento 2.3.5

I am trying to redirect a cms page to a new route which I have created for frontend. I am not sure if we can redirect to the new custom module route frontend with a config in admin area. My aim is I ...
0
votes
0answers
27 views

I want to enable or disable Module according to system.xml field value

I want to enable or disable module according to the yes/no field value of system configuration file. i have developed one system configuration setting in that i have created in admin-side. please ...
1
vote
0answers
14 views

Magento 2 system configuration image file upload into my custom directory with the size validation

I am working a Magento Extension, as per my requirement I've to upload an image from the system configuration field. I have done the image upload, once the image uploaded the file stored in (root/pub/...
0
votes
1answer
42 views

how to get html code in config values magento 2

I have created a field in admin configuration .I want to use the value of the field.If the value of the field is <b>test</b> it displays <b>test</b> not as test.how can I get ...
0
votes
1answer
33 views

Magento 2 : Set Dynamic User Define Time for Run cronjob?

We are developing one Extension in which we provide the facility to the user to set his custom time for run corn job. for this functionality, we provide fields in-store configuration like: Custom ...
0
votes
0answers
17 views

Magento 2.3.4 Add store code per store view instead

I have 1 websites 1 store and 2 store view websites/Stores/Store View: 1- UK/England/English 2-UK/Ireland/Irish URL E.G is: https://domain.com/ Now I need to show store code in url only for ...
2
votes
2answers
117 views

Source model issue from system xml in Magento 2

I've created two dropdowns field in the system.xml , both of them have the same options, except that one has an extra option: None. This is the xml: <field id="printing_option" translate="...
1
vote
0answers
35 views

How can we clone groups like clone field in system.xml in Mageno 2?

In system.xml file, for cloning the fields we use clone_fields and clone_model. Here is the example: <group id="placeholder" translate="label" sortOrder="300" showInDefault="1" showInWebsite="1" ...
0
votes
0answers
24 views

I want to add multi select state dropdown field in system configuration based on country selection in magento2

Hello I have custom module configuration , in that i want to add multiple state selection functionality based on selected country id .. I have used below code in my system.xml but i only got select ...
2
votes
2answers
61 views

Custom system.xml source model, ReflectionException class does not exist

Writing a new module and in my system.xml I can put the following: <field id="environment" translate="label" type="select" showInDefault="1" showInWebsite="1" showInStore="1"> <label>...
2
votes
0answers
28 views

Magento 2: How to implement method _saveSection() of vendor\magento\module-config\Controller\Adminhtml\System\Config\Save.php

The definition of function says it further checks the method _saveVendorModule in the current class ($this) for custom logic. Does anyone has used this before to add or override some logic? /** * ...
0
votes
1answer
209 views

Magento 2.3: system.xml and config.xml: Default values not showing up in the admin

I'm developing a module for Magento 2.3 and can't get default config values to show up in the admin. To the best of my knowledge, I've followed all the documentation I can find. It's kind of driving ...
1
vote
1answer
66 views

What does “clone_fields” and “clone_model” attribute mean in vendor\magento\module-catalog\etc\adminhtml\system.xml?

<group id="placeholder" translate="label" sortOrder="300" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Product Image Placeholders</label> <clone_fields>1&...
0
votes
1answer
23 views

Can you perform Magento UI_Component Validation with value from store config?

Is it possible to get the minimum text length value from store config system.xml? <field name="mytext" sortOrder="20" formElement="input"> <argument name="data" xsi:type="array"> ...
0
votes
1answer
155 views

How to get only one Specific Country's States/Province in dropdown?

I'm working on Magento 2.3.2, I override a Shipping Method file which is system.xml for adding custom fields. Here it is: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
85 views

Dynamic element in system.xml field

I have a list of elements printed with a field type='checkboxes' but when I try to save only one of the results saved. As a solution to this problem, we tried to print each element with a checkbox ...
0
votes
1answer
81 views

How to Set Store Config (system configuration)

We can get system configuration values using Mage::getStoreConfig($xmlPath); But how can we set such configuration field programatically? I would expect some method like Mage::setStoreConfig($...
0
votes
0answers
23 views

Magento 2.3 Dynamic comment in system.xml group?

I need a way of adding a group comment that is dynamic, as I need to pass the stores URL (it gets added as a return URL for a 3rd party service) It seems like it used to be possible, using a model ...
1
vote
1answer
145 views

Magento 2: Get value from Cron system.xml

I would like to take the value of the ahead schedule of this system.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:...
1
vote
1answer
141 views

How to Validate Comma Seprated Values in Admin Configuration

I want to Add Validation of Comma Separated Values in Admin Configurations I Know How to Add Custom Validation Using Js is just need the Regex (Regular Expression)
0
votes
1answer
69 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]...
4
votes
3answers
505 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="...
2
votes
0answers
44 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
46 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
57 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/...
1
vote
4answers
2k 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
86 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
27 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
226 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.
7
votes
2answers
388 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
100 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
294 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
51 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
443 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
391 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 ...
3
votes
3answers
1k 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
2answers
271 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
509 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
214 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
436 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 ...
2
votes
0answers
957 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
2 3 4 5