Questions tagged [system-config]

Questions about using and extending the system configuration in the admin panel

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

Magento 2 : how to create dynamic filed in admin system configuration?

I want a multi-select drop down in system configuration with dynamic field. So How to create ? Please check this image.
user avatar
0 votes
0 answers
35 views

system.xml text area not saving large data

I have a text area inside system.xml file and it is working fine for small data but for large data, it is not saving and truncating data, maybe there is a DB column length limitation. How to resolve ...
user avatar
  • 121
0 votes
1 answer
44 views

admin configuration with automatically add certain product to cart for free

I'm trying to create admin configuration with two SKU's fields, where later you can choose main product and second product will automatically add to cart for free. So, I created system.xml file first: ...
user avatar
  • 3
0 votes
1 answer
32 views

How to add magento ui image uploader in store/system config?

I need to insert an image uploader like this.
user avatar
0 votes
2 answers
42 views

Custom ui form with Magento core_config_data table

I was required to manage custom core_config_data (system config) values with a separate form from the Magento Admin side. How I can retrieve the values saved in the table with the data provider?
user avatar
  • 35
0 votes
0 answers
28 views

Country as select field and based on country selected respected states in magento 2

There are two fields country and state. I want the country as select field and based on selected country add selected respected states for that country are listed in multi-select. Thank you in ...
user avatar
  • 473
0 votes
1 answer
2k views

Office 365 SMTP Authentication unsuccessful, the request did not meet the criteria

I'm trying to configure SMTP settings on the Magento store as follows: but when I test, I have this error:
user avatar
  • 103
0 votes
0 answers
29 views

Magento2: How to create global configuration of a custom product attribute?

I am using Magento 2.3.1. I have created a custom product attribute using data patch, attributed created successfully and I am able to save value in this. Now I want to create global option for this ...
user avatar
0 votes
0 answers
31 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=&...
user avatar
  • 367
0 votes
1 answer
34 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 ...
user avatar
2 votes
1 answer
115 views

How to get country of origin of the store from configuration

I need to programmatically get the country, zip code and state of the store that is at: Stores->Configuration->SALES->Shipping Settings->Origin
user avatar
0 votes
2 answers
247 views

Programaitically Insert Values for Dynamically Created Rows

I am working on creating an Magento REST API which passes values to dynamic rows of Stores->config. Dynamic rows were already created through frontend & backend Models. I just need to insert ...
user avatar
  • 1,935
0 votes
1 answer
28 views

Magento 2: Predefine configuration values in config.php

I am trying to predefine the values for field in Configuration > Sales > Sales Email I am not sure how to predefine it & check if it works. Any thoughts ?
user avatar
  • 367
0 votes
1 answer
30 views

Display admin configuration field by other field text value

In Magento2 admin configuration we can display field conditionally like below, <field id="do_3Dsecure" translate="label" type="select" sortOrder="1" ...
user avatar
0 votes
0 answers
38 views

Is there any way to change getConfig method (AbstractHelper class) to be a static method?

I'm new to Magento 2 and from what I know, in order to retrieve config values, you need to extend the AbstractHelper class and create a method: public function getConfig($config_path) { return $...
user avatar
0 votes
3 answers
166 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 ...
user avatar
  • 828
0 votes
1 answer
281 views

Magento 2: How to fetch system config value in an email template

I am trying to fetch system config value inside an html file for email template. But below code is not working {{config path="design/footer/copyright"}} Can someone suggest if there is ...
user avatar
0 votes
0 answers
18 views

Load Config Collection including config.xml values

I need to load all configs with some filter, including values, that defined in config.xml files. Here's some code to make some clarity about what I need to do: public function __construct( \...
user avatar
1 vote
0 answers
38 views

Magento 2 - images in store config (per radio button)

I have currently installed Magento 2.3.x and I want to create a radio field in system config with an image (please look at the screenshot below). What is the best practice to do that? I am not so ...
user avatar
3 votes
0 answers
91 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 ...
user avatar
  • 1,036
1 vote
1 answer
157 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 ...
user avatar
1 vote
1 answer
49 views

Want to Learn magento 2.3.5

I am Working as PHP Developer and want to learn about magento 2.3.5 from scratch so can anyone having material related to magento 2.3.5 then please send me for self learning and any demo of modules as ...
user avatar
  • 473
0 votes
2 answers
34 views

Magento Error website

Getting The below error in website Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in /home/bhuwalfashion/public_html/lib/Zend/Cache/Backend/File.php on line 30 Does anyone know how ...
user avatar
1 vote
1 answer
142 views

Dropdown 'selected' not working in config

I created dropdown in a table similar to Store > Config > Catalog > Invenotry, everything is working perfectly except selected is not working in my dropdown, however values are stored in a ...
user avatar
0 votes
2 answers
68 views

Select option in configuration not store in database

I am following the answer to creating a table with dropdown in Store>Configuration. Its looks good but not storing my selected dropdown value in core_config_data table. currently its storing null ...
user avatar
1 vote
1 answer
935 views

Magento2- Dynamic row system config store data in database but after save not display in backed

My config file after save config data After save data It also show error in console as there is no any field after save data it does not give me unserialaize data my php file to render data in ...
user avatar
0 votes
3 answers
2k views

Magento 2 - Type Error occurred when creating object: Magento\Framework\Interception\Config\Config after upgrade to 2.3.2?

After I ran the update from Magento 2.2.8 to Magento 2.3.2, I am getting this error whenever I run a CLI command like upgrade or cache, main.CRITICAL: Type Error occurred when creating object: ...
user avatar
  • 245
1 vote
0 answers
108 views

Magento 2: How to scan and delete all the system config values that start with some prefix

Required to delete all the possible values from core_config_data that are having path starts with "Softtech" via Helper/CoreConfig.php to call Model/HandleConfig.php i.e. Softtech/settings/enable ...
user avatar
  • 1,725
1 vote
2 answers
166 views

Magento 2 : To find out whether Single Store Mode value changed or not

Is there any class/file from module-config module that can be useful whether single_store_mode value has been changed from yes to no or vice-versa. Have checked admin_config related events but these ...
user avatar
  • 1,725
0 votes
1 answer
34 views

Magento 2 system configuration changes not applying

Magento 2 I am trying to change ups licence number and user is after saving it not showing values it showing blank can any one tell why it happening
user avatar
0 votes
1 answer
19 views

Magento 2: How can i configure magento shipping option?

i have tried to access "magento shipping" shipping method but i can not able to get any require credentials and also not found any support about pricing list if its a paid service. Is there anyone ...
user avatar
  • 992
0 votes
1 answer
20 views

How to get configuration value from default

I want to get a config value from core_config but the default level I know we can get it by using scope config but I want default
user avatar
0 votes
0 answers
70 views

Magento 2 system config get frequency full value

in magento system config xml one can use: <field id="frequency" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Frequency<...
user avatar
0 votes
1 answer
22 views

Magento 2: How to create gird in configuration

I am trying to create a new configuration for checking postcodes. Is it possible to add so many postcodes rather than creating one text field So I can pick which ever postcode by using type="select"
user avatar
0 votes
0 answers
42 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 ...
user avatar
0 votes
0 answers
163 views

Magento 2 System Config Plugin

I have created a custom tab in system config and added 1 field Module Enable Yes/No and 1 Dynamic fields which is depends on Module Enable. When Module Enable is set Yes I created various dynamic ...
user avatar
0 votes
1 answer
205 views

How to create a custom system field in magento 1?

Magento 1.9 I want to create a new tab in System > Configuration. In this tab, I need a group tab and in this group tab i want a textarea which is connected to a field of my database. If i edit my ...
user avatar
0 votes
0 answers
33 views

Magento 2 system config Concatenate data to existing field with plugin beforeSave or aroundSave

I have a drop down field containing fruits where I would like to concatenate some data e.G: Using a Plugin save the data like so: Bananas are high in potassium Where are high in potassium is the ...
user avatar
0 votes
1 answer
359 views

Magento 2 Dynamically Add file uploader in system config

How to add a file uploader render in a dynamically added rows? something like: But in dynamically added Like: Let say before or after drop down and the input text field? Best!
user avatar
0 votes
1 answer
662 views

Creating a dynamic row file upload and drop down option in system config

I've checked the example here: https://devdocs.magento.com/guides/v2.3/ext-best-practices/tutorials/dynamic-row-system-config.html Which add text inputs, But how to add other types of input such as ...
user avatar
1 vote
1 answer
384 views

Magento 2 : window.checkoutConfig returns empty, So Checkout page is not loaded without configuration values

Here My Checkout page is not loading which throws following issue It also shows like below while hit checkout page. Can anyone please suggest me the solution for this. Thanks in advance
user avatar
  • 2,376
0 votes
1 answer
272 views

Magento 2 How to show column on the basis of admin config value in admin custom grid by using UiComponent?

I had created a Custom Admin Grid by using uiComponent in which I am showing Order Details, please check below Screenshot I had created System Configuration to show IGST, CST, SGST field or not, if ...
user avatar
  • 934
0 votes
1 answer
151 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]...
user avatar
4 votes
3 answers
348 views

Magento2 : How to add new text field in Store->Configuration->General->store Email Address?

Its being created under System->Config->General->Customers: <code> <config> <system> <section id="trade_customer" translate="label" type="text" sortOrder="100" ...
user avatar
0 votes
1 answer
2k views

Get config value in html using knockoutjs

I am trying to get config value to html file. My aim is to check if the config value is enabled of it is show a button and if it’s continue normally with out button the button. I am not sure how to ...
user avatar
1 vote
2 answers
734 views

Magento 2 event observer custom config save given error

I have a custom section tab in configuration my section url is: http://dev.test/admin/admin/system_config/edit/section/vendor_module/key/????????? exception(s): Exception #0 (Magento\Framework\...
user avatar
0 votes
0 answers
29 views

How to display numbers of row in table to section in configuration system

I want to count the rows of table and display it to field in section system, can someone help me how to resolve this. Thanks!
user avatar
2 votes
1 answer
714 views

Magento system configuration issue

How can I fix the next error please: When i go to Store>Configuration>Store email address and try to change from Name: Owner E-mail: owner@exemple.com to Name: Shop e-mail: shop@domain.com i get ...
user avatar
  • 2,517
2 votes
1 answer
42 views

What is the scope of source model extend and implement?

What is the scope of source model extend and implement between these two? \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource \Magento\Framework\Data\OptionSourceInterface Attribute options ...
user avatar
1 vote
1 answer
184 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 (...
user avatar
  • 1,128