Skip to main content

Questions tagged [system.xml]

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

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

Magento 2: Add Wysiwyg to dynamic fields in System Configuration

I need to add a wysiwyg editor to dynamic fields on the system configuration, the issue is that the editor never render, this is the code i have so far: system.xml <group id="diagnosis" ...
Carlos A Magaña Perez's user avatar
0 votes
2 answers
40 views

How to allow only numbers in certain input-field for Magento Admin Control-Table/Config-Table

I want to allow only numbers for a certain input field in a Magento Admin Control-Table/Config-Table. Has anyone done that before or has a hint? Greez
TheBasicBoi's user avatar
0 votes
2 answers
135 views

How can I set the value of a Yes/No Config field based on the value selected in another yes/no field in Magento 2 system.xml

I have a system.xml which has 2 yes/no fields. <field id="popup" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite=&...
user avatar
0 votes
1 answer
365 views

magento 2.4 system.xml validate decimal number

I have an input type text field in my system.xml . I'd like this field to be validated in a way that the user can put numbers (0 to 9) and dots but not commas nor any other symbol. In magento, I have ...
Lou Nik's user avatar
  • 455
0 votes
1 answer
145 views

magento 2.4 how to add a price field in system.xml

On my magento 2.4.4 I'm creating a new module with its configuration in system.xml. The file itself works fine, I've created a yes/no field to enable/disable my feature plus an input text to add some ...
Lou Nik's user avatar
  • 455
0 votes
1 answer
135 views

Magento 2 system configuration searchable dropdown how can i impliment

<field id="dropdown_example" translate="label" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1&...
Jaydip Pandey's user avatar
0 votes
1 answer
251 views

How to depend a field to a field having type="checkbox" in system.xml?

i am new to magento..i am facing issue while learning configuration of system.xml..i want to depend a field of type="dropdown" to field of type="checkbox"..any help would be ...
MihirBangia's user avatar
0 votes
1 answer
142 views

How to get value from "dynamic row field" column to another field in system.xml. How to compare this with Order Subtotal after proceed to checkout

How can to get value of "price" column in "custom Alert Message" Field. here is system.xml code ` <field id="ranges" translate="label" sortOrder="5"...
Magento beginner's user avatar
0 votes
1 answer
46 views

How can i associate one or more field with each customer group in system.xml in magento 2

I have a system.xml file in which i already have retrieved customer groups in a multiselectist field .Now i want to associate one field-To set some value for each customer group.How can i get these ...
Magento beginner's user avatar
1 vote
1 answer
2k views

Exception #0 (Exception): Warning: Undefined array key "id"

i have error when i go to stores->configuration after i create my system.xml file system.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Miron's user avatar
  • 79
1 vote
2 answers
213 views

how to pass js window varibles from templates to template files in magento? I want to get system config values in the web folder

I want to pass js window variables from view/frontend/templates/form.phtml to view /web/template/shipping-information.html and view/web/js/shipping-information.js How can I do it? it is because I want ...
Mohmad Ashik M A's user avatar
0 votes
1 answer
185 views

How to add slider/range in store configuration?

any reference for adding this type of slider in configuration?
Rutvik Monpara's user avatar
0 votes
2 answers
340 views

System.xml changes not reflecting on adminpanel

I am trying to create tabs in magento admin panel but it is not working. I tried running all the commands and cache clear. Please check if everything is fine with the code ` <system> <...
Charanjeet Singh's user avatar
0 votes
1 answer
346 views

How to enable/disable welcome email from admin configuration in store basis

Hi I referred this solution for disabling welcome email and it works perfectly.however i want the around plugin to work only if its enabled from admin backend that too in store basis. I added etc/...
Rejith's user avatar
  • 361
1 vote
1 answer
907 views

How to get Data from system.xml file

I created system.xml file where seller can select multiple options (e.g Days of the week). Now i need to use that data in checkout page as . Where customer can select one option (e.g any day from ...
Muhammad Uzair Aziz's user avatar
1 vote
1 answer
2k views

Magento 2 add & dynamic rows in system config

Is there any way to add & save dynamic rows in magento 2 system config? I want to add the below fields : Name Link Upload image Any help would be appreciated.
user avatar
0 votes
0 answers
68 views

System configuration loop fields

Do I need to list different fields for all websites in the system configuration? How can I do this? I have 3 websites. And I want to list different fields with YesNo source. <group id="...
Zalmoxis's user avatar
0 votes
2 answers
940 views

Disable the Config field after entering data

I am trying to disable the text field in the configuration field once admin has entered the data. I know it can be done via <frontend_model> but in that case the field gets disabled as soon as ...
nix's user avatar
  • 129
0 votes
1 answer
399 views

Magento 2 tree view in Stores->Configuration

I'm starting to try to program in Magento. I have a problem creating a category tree in the configuration of my module. I want to be able to choose a category. More than one. Just like in the photo ...
Przemysła Góra's user avatar
1 vote
1 answer
971 views

How can I add a new group to an existing section Admin Settings

So I'm trying to add a new group called Checkout Gifts inside the section checkout in the tab sales. I was able to add a section to an existing tab but when I tried the same approach to create a new ...
DeadSec's user avatar
  • 169
0 votes
1 answer
397 views

Loading Admin Settings into JS

so I'm trying to add some new configurations to my checkout page, and I added 3 new settings to the admin page, but now I would like to load them to my JS file, but I don't know what to do to achieve ...
DeadSec's user avatar
  • 169
0 votes
1 answer
474 views

Magento 2.4.2: Setting and getting custom config data works fine, but the text field in the admin backend is empty

I am able to set and get config data in a field under General table with the test code. The Magento backend displays the field as the screenshot below shows. The issue is this field is blank, but ...
CodeForGood's user avatar
0 votes
1 answer
178 views

Magento 2.4.2: Do I need to override system.xml in my custom module to add a new tab, section, group and field in the admin backend?

I need to set and get config data in Magento backend. I know that it is system.xml under module-backend that I need to add to. I am little confused as to how to override this file in my custom module. ...
CodeForGood's user avatar
0 votes
0 answers
96 views

Magento 2 : system config

app/code/Vendor/Paypal/etc/adminhtml/system.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=&...
devhs's user avatar
  • 507
0 votes
1 answer
164 views

Dynamic Admin Custom Fields Don't Save When Click Save Config Button

I Create Dynamic Table In Admin Panel, Each Row Contain 5 Fields That Will Be Display As Carousel In Front Page. I Manage To Create It. when I click Add Row Its Adding The Rows To The Table But When I ...
Yakir56's user avatar
0 votes
2 answers
1k views

Custom Admin Button OnClick Add more Group Of Fields to Section

I Created Custom IconSlider Module That Can Be controlled from Store-Configuration. Each slider Have the Same 3 Fields (Name,URL,Image). i added a few groups With that fields But every time i want to ...
Yakir56's user avatar
0 votes
1 answer
104 views

How to check system config field value before used in front end in Magetno 2?

I need to check the config field value before they used in fronted at any where Suppose Ex. customform/general/adminmail, the field i used in many extension so i am check that value befor they used ...
Jay Parmar's user avatar
0 votes
1 answer
352 views

How can I set custom validation using controller in system config file in Magento 2?

I want to set custom validation on system config file that "accept character do not allow any script tag" only accept like that ex. config/group/field, config/group/field Here is my ...
Jay Parmar's user avatar
0 votes
1 answer
679 views

Show/Hide the Configuration grid/list/field in magento 2

I am trying to show/hide the password text configuration filed based on the dropdown field and it's working fine & the code as follow. <depends> <field id=&...
Bojjaiah's user avatar
  • 3,772
0 votes
1 answer
362 views

Magento2.3.5 Disabled dynamic row system field

How can one add a disabled attribute to an input field in dynamic row system ref: https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/dynamic-row-system-config.html What I've tried: $...
Juliano Vargas's user avatar
1 vote
1 answer
740 views

Magento2.3.5 Dynamic Row Add New Column Removes Current Fields

I've added 4 dynamic row while back ref:https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/dynamic-row-system-config.html Now I've added a 5th column but all the row data that was ...
Juliano Vargas's user avatar
0 votes
0 answers
85 views

Save config.xml value on install/upgrade

I have just created system.xml and config.xml for my project - they work ok after implementation: The values don't get written to the database unless I press save in admin though - ran setup:upgrade ...
Scott Anderson's user avatar
2 votes
1 answer
2k views

Show/Hide configuration field in Magento 2

In Magento 2 if we need hide/show the field in the same group we will fallow as below. <section id="custom_general" translate="label" type="text" sortOrder="0&...
Bojjaiah's user avatar
  • 3,772
0 votes
2 answers
275 views

System Config Upload File Input Disabled

Here is the content of the system.xml file: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/...
Raphael's user avatar
1 vote
2 answers
1k views

Magento 2 Custom system config value not showing in custom email template

Able to get values of store phone number but not able to get custom config values(even it is working fine in root file when get custom config value) How to get value for this - {{config path="...
sumeet bajaj's user avatar
  • 1,316
1 vote
2 answers
2k views

Magento 2 - How to allow certain html elements in system.xml config field?

I try to add this HTML (<span style='color:red'>*</span>)to the content of a field with type text. But the html is getting stripped. How can I allow all secure html elements but disallow ...
Black's user avatar
  • 3,392
2 votes
2 answers
2k views

Display Customer Groups Dropdown in admin system configurations in custom module of Magento 2

I want to provide customer group based configuration in my custom group. So need to add customer group multiselect dropdown in system configuration at admin in Magento 2.x
Ronak Parmar's user avatar
0 votes
3 answers
583 views

How to disable custom plugin in admin

I have created a custom module to disable free shipping based on some conditions. I have to used Custom/ShippingRule/Plugin/Magento/Shipping/Model/Shipping.php to do the functionality. It is working ...
Ramesh KR's user avatar
  • 876
0 votes
1 answer
488 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=...
Niraj sapra's user avatar
2 votes
1 answer
1k 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:...
user avatar
3 votes
0 answers
127 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
1 vote
1 answer
1k 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:...
Asad Khan's user avatar
  • 1,486
0 votes
2 answers
715 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" ...
Rui Silva's user avatar
  • 374
1 vote
1 answer
346 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 ...
Ashwani Shukla's user avatar
0 votes
0 answers
109 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 ...
Deep Shah's user avatar
  • 577
2 votes
1 answer
535 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 ...
Jack Brooks's user avatar
1 vote
0 answers
243 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/...
senthil's user avatar
  • 1,729
0 votes
1 answer
514 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 ...
Jothi Subramanian's user avatar
0 votes
1 answer
410 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 ...
Bhavesh Prajapati's user avatar
2 votes
2 answers
1k 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="...
Attila Naghi's user avatar
  • 4,053

1
2 3 4 5 6