Questions tagged [system.xml]
Denotes question related to the system.xml module configuration file.
269
questions
0
votes
1
answer
70
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 ...
0
votes
0
answers
34
views
Magento 2 -custom field Product Price in admin
how can create new field sku,price,sale price and a button update price dynamically, admin have option set and update price dynamically.
i have tried below code etc/adminhtml/system.xml.? help me how ...
0
votes
0
answers
138
views
Magento2 admin , how can create new custom product field "sku,"price", "sale price" and a button for "update price" dynamically
I want when admin select custom field product sku, able to Change price, sale price and a button for update price dynamically.
I created only field by etc/adminhtml/system.xml but unable to its ...
0
votes
1
answer
63
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"...
0
votes
1
answer
39
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 ...
0
votes
0
answers
25
views
How can we add magento pagebuider for any textarea field in system.xml i.e for store->configuration->tab->field?
I want to add magento page builder for my custom textarea field in system.xml
0
votes
0
answers
27
views
How to Create Custom Shaped progressbar in Magento2
How to create dynamic Custom Shaped(or circular) progressbar in magento2.
For example: I have total 100 products out of these 40 them are soldout then how to show the progressbar for this.The ...
1
vote
1
answer
858
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-...
0
votes
0
answers
114
views
Magento 2 add & dynamic rows in system config for category tree
magento2 category tree add in dynamic row on system configuration section
because i want to set meta roboust in category page by configuration
1
vote
2
answers
31
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 ...
0
votes
1
answer
96
views
How to add slider/range in store configuration?
any reference for adding this type of slider in configuration?
0
votes
2
answers
209
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>
<...
0
votes
1
answer
224
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/...
1
vote
1
answer
722
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 ...
2
votes
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.
0
votes
0
answers
50
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="...
0
votes
2
answers
648
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 ...
0
votes
1
answer
306
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 ...
1
vote
1
answer
656
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 ...
0
votes
1
answer
222
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 ...
0
votes
1
answer
388
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 ...
0
votes
1
answer
166
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. ...
0
votes
0
answers
80
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=&...
0
votes
1
answer
124
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 ...
0
votes
2
answers
732
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 ...
0
votes
1
answer
97
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 ...
0
votes
1
answer
323
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 ...
0
votes
1
answer
542
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=&...
0
votes
1
answer
262
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:
$...
0
votes
1
answer
433
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 ...
0
votes
0
answers
80
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 ...
2
votes
1
answer
1k
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&...
0
votes
2
answers
239
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/...
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="...
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 ...
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
0
votes
3
answers
441
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 ...
0
votes
1
answer
377
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=...
2
votes
1
answer
847
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
0
answers
121
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 ...
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:...
0
votes
2
answers
471
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
1
answer
318
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
0
answers
102
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
1
answer
497
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 ...
1
vote
0
answers
200
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
1
answer
433
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
1
answer
335
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 ...
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="...
1
vote
0
answers
56
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" ...