Questions tagged [system-config]
Questions about using and extending the system configuration in the admin panel
167 questions
0
votes
1
answer
2k
views
How to add a custom block in Magento 2 System Configuration Group?
I am trying to add a text block in Magento 2 system configuration group.
I want to write some hints for the users in a separate group. As it can be done in Magento 1.
Here is my screenshot what I ...
0
votes
3
answers
2k
views
I have create system.xml for system config value but not work
I have created one extension now i released i have also need some system config value where user can easily to handle this module. so i have created system.xml in adminhtml folder but its not work ...
3
votes
1
answer
2k
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 ...
0
votes
2
answers
3k
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: ...
0
votes
3
answers
2k
views
Blank page when trying to configure payment methods in Magento 2
I'm using Magento 2, when navigating to Stores > Configuration > Sells > Payment Methods it shows a completely blank page. I've already enabled dev mode and in other situations errors shows directly ...
0
votes
2
answers
2k
views
Magento 2 redirect going back to admin
I have a controller that is executed in the system configuration. The desired result is that the code is executed and is redirected back to its original page. When the url keys are active, the page ...
0
votes
0
answers
5k
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:
0
votes
0
answers
53
views
Magento 2. Show System Config Field Only In Certain Websites
To better understand what I mean by a 'System Config Field' check the picture bellow from here
I already know that I can configure the visibility of a Field based on the scope (Default/Website/Store/...
6
votes
6
answers
5k
views
Role resource tree not displaying in magento2
Magento 2.0.2 I am trying to add a new user role, but when I go to the Role Resource tab it doesn't display the Resources tree. I have no errors displaying. What is the next step to try and figure out ...
0
votes
1
answer
165
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 ...
3
votes
2
answers
1k
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\...
0
votes
1
answer
289
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
1
answer
430
views
How to add magento ui image uploader in store/system config?
I need to insert an image uploader like this.
1
vote
1
answer
2k
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.
2
votes
4
answers
55k
views
Magento 2 - How to config mail sending?
In Magento 2, How to config mail sending ? I used the gmail host to test. I set below but I try use feature forgot password on front-end and then I can't see email in client's mail box.
View "forgot ...
0
votes
2
answers
1k
views
Troubleshooting "Base table or view not found"
I run into the following when trying to enable Flat Categories in the admin config. I don't know why mm is being referenced as a table and do not see it declared as a table in any of our modules.
...
0
votes
1
answer
1k
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 ...
1
vote
1
answer
511
views
Get System Config Values in JS file without use of phtml
I want to get System Config Value in my JS file directly without using phtml template.
thanks in advance.
0
votes
1
answer
1k
views
How to get window.checkoutConfig value in html file using data-bind
I made my custom delivery method programmatically. It also appears in the Magento 2 admin config section. It is a multi-select field with values of days of the week. In my js file below:
define(
[
...
0
votes
2
answers
364
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>
<...
1
vote
2
answers
920
views
System Configuration multi date selection Magento 2.4
I need to add option to select multiple dates in system configure. I can add single date input field in system configure. but I doesn't have any idea about to add multi date picker in system configure....
0
votes
1
answer
3k
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 ...
0
votes
1
answer
202
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:
...
0
votes
2
answers
290
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?
2
votes
1
answer
60
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 ...
0
votes
0
answers
98
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
106
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 ...
3
votes
1
answer
932
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
2
votes
1
answer
6k
views
Magento 2: `magento app:config:import` doesn't import system configuration
I'd like to import system config through the app:config:import command.
I have update app/etc/config.php file with described customer/captch/enable config path:
<?php return array (
'system' =&...
0
votes
2
answers
876
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 ...
2
votes
1
answer
692
views
ACL for custom config group - section disppeared?
I'v tried to add a new section to Store -> Config -> Catalog Section -> Catalog with custom ACL settings.
I changed (default) adminrole permissions from "All" to "Custom" and left only the ...
0
votes
1
answer
103
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 ?
0
votes
1
answer
357
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" ...
10
votes
5
answers
11k
views
Magento2.2.3 - Admin store configuration is save but not display in admin panel
I want to change store configuration in Magento2.2.3.
But when I try to save the configuration from admin it saved in the database (core_config_data table).
But not getting changed in admin store ...
4
votes
2
answers
4k
views
Magento 2 : Specific Range Validation in system configuration field
I'm new in magento. I develop one module in Magento 2.2.2.
I want to do like that in system configuration that, user can enter value between 0 to 100 in that field.
User can't enter text value and ...
4
votes
2
answers
7k
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 ...
1
vote
1
answer
1k
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
0
votes
0
answers
88
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 $...
0
votes
3
answers
610
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
826
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 ...
0
votes
0
answers
103
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(
\...
1
vote
3
answers
6k
views
How to add default values for system configuration in magento 2
How to add default values for system configuration in magento 2.
I need to create and assign default values for system configuration(system.xml) for my custom module.
I have already created ...
1
vote
0
answers
109
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 ...
3
votes
0
answers
133
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
1
answer
890
views
Configuration->General Settings keep getting cleared. In core_config_data table path 'genera' value 0 keeps appearing
This just started happening recently in our development environment. The row
id default 0 general 0
keeps getting inserted into core_config_data. Every time I delete it manually via sql, it comes ...
1
vote
2
answers
2k
views
In etc/config.xml This element is not expected. Expected is one of ( default, stores, websites )
Magento version : 2.1.11
I am using a custom module at custom-module/etc/config.xml there is below file.
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
1
vote
1
answer
349
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 ...
1
vote
1
answer
57
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 ...
0
votes
2
answers
683
views
magento 2 admin config text fields side by side
How to add 2 or 3 text fields inline at the admin configuration of Magento 2?
As I checked everywhere, I am able to add text fields one by one.
How Can I do this as my admin config fields look like ...
1
vote
2
answers
872
views
CMS page id from system configurations Magento 1.9
In my custom module, I have a field in the system configwith cmspages. I need to get the id of the selected cms page, not the identifier, so I can get the content of a cms page in a phtml file.
I ...