Questions tagged [system-config]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
19 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
44 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" ...
0
votes
1answer
23 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 ...
1
vote
2answers
32 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
0answers
23 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!
2
votes
1answer
53 views

Magneto system configuration issue

how can I fix the next error please: When i go to store>configuration>store email adress and try to change from Name: Owner E-mail: owner@exemple.com to Name: Shop e-mail: Shop@domain.com i get ...
0
votes
0answers
9 views

Magento 2.3 - Country Options vs Customer Account Sharing Options

Preconditions Server config: Ubuntu 16.04 LTS MySql 5.7.26 Apache 2.4.18 PHP 7.2.18 In a Magento 2.3.0 installation we configured multiple stores (each one as its own custom prices). We have 15 ...
2
votes
0answers
17 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 ...
1
vote
1answer
28 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
72 views

magento 2 - display shipping method logo

I have created a module to add a shipping method logo. In backend its successfully working fine like uploading logo image, deleting logo image, etc. Please see the below image. But I am stuck to ...
0
votes
1answer
22 views

Show the content of other site in my system configuration in Magento 2

How do I show the content of other sites in my system configuration, Please provide me a solution <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="...
0
votes
0answers
45 views

Magento 2.2.3 How to change validation message Or add new custom rule in system config field

I want to change default validation message in system config field. Below is my system.xml code. <field id="maxlabel" showInDefault="1" showInStore="1" showInWebsite="1" sortOrder="13" translate="...
1
vote
1answer
36 views

How to get all the system configuration values in magento 2?

I need to get all the fields and values from Stores -> Configuration -> General
1
vote
2answers
712 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 ...
4
votes
1answer
79 views

Magento 2 Scope Interface Model

I have recently gone through magento's core ScopeInterface file which is located in Magento\Store\Model. My question is why magento define SCOPE_STORES & SCOPE_STORE similar as WEBSITE and for ...
0
votes
0answers
12 views

Dropdowns in Admin config with extendable amount of fields

I have followed Admin config with extendable amount of fields. It's working fine. But what I should do,if I want to have two drop-down fields with different option list for each drop-down. Can someone ...
0
votes
1answer
118 views

Why we rewrite urls in magento 2?

When I deployed magento project from one server to another server css and js didn't loaded. So I google and got this answer which worked for me. <Directory /var/www/html> Options ...
1
vote
0answers
56 views

Magento2.2 How to get userContext into ScopeConfig

It's more a core logic issue than a technical issue! I created one new table for admin_user: admin_user_config_data |config_id|user_id|path|value And, like in core_config_data, in this new table ...
0
votes
2answers
187 views

How to Save custom data from admin->system->configuration magento 1.9

I am working in magento 1.9 . I have created a custom tab in admin -> configuration . There I created custom fields , I want to save the data from those custom fields on click "save config" button. ...
2
votes
1answer
61 views

Inside admin when i click on system i'm throwing an error on m2 2.2.5

I've tried to change the ID name but it did not work. 1 exception(s): Exception #0 (InvalidArgumentException): Element with id "system_cron_template_use_separate_process" already exists Exception #0 ...
2
votes
0answers
83 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 ...
1
vote
1answer
512 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
1answer
175 views

Fatal error: Uncaught Error: Call to undefined method getScope()

getScope() method generates: Fatal error: Uncaught Error: Call to undefined method Magento\Framework\App\Config::getScope() public function __construct( \Magento\Framework\...
1
vote
2answers
371 views

Magento2 select by default one radio button in system configuration

In my custom module system.xml I added <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> <...
0
votes
1answer
52 views

Magento2: How to validate a specific system-configuration field on the server-side before save?

I have a custom module with some system configuration fields that needs to be validated on the server side (API credentials, etc...). At the moment, I'm using an observer on the ...
0
votes
1answer
135 views

Display decrypted or empty value in configuration

I have a configuration value that I encrypt upon save, but when I look at it again in the configuration (UI), I get the encrypted string. I would like to show an empty string (production) or the ...
5
votes
1answer
338 views

Magento1 Mage::getStoreConfig non cached value

Is there a way to get a non-cached config value from Magento using Mage::getStoreConfig without having to first flush the entire config cache?
2
votes
0answers
171 views

What is the event observer for system config page load in Magento 2

We know that we can use custom_admin_system_config_changed_section_general for system config page save event. But is there any observer to the config page load event? Thanks.
1
vote
1answer
161 views

Use system value is not showing up

Hi I am new to magento2 and learning currently the basics. I have an module and set up some system configuration for it but the checkbox Use system value is not showing up next to the field. I have ...
2
votes
2answers
127 views

Getting page error 404 while calling Mage::getStoreConfig with current storeId

Using Magento 1.9.3 Mage::getStoreConfig is redirecting magento admin to 404 page instead of retrieving the store field value. In controller $store = $this->getRequest()->getParam('website'); ...
0
votes
0answers
73 views

How to get a color picker into Magento 2 custom configuration table

I have created table field into backend with use of the following reference : http://www.ibnab.com/en/blog/magento-2/magento-2-backend-guide-to-create-table-setting-in-the-system-configuration I ...
1
vote
0answers
44 views

Magento 2.2.x admin config, multiple times

I have a question, does anyone know if it is possible to add an admin config field to each payment method without declaring it for each system config section separately? For example, I have an admin ...
3
votes
2answers
397 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 ...
1
vote
1answer
211 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 ...
0
votes
1answer
71 views

How to prevent LastPass to autofill Magento's admin configuration while edit?

The problem happens when you modify something in admin configuration in Magento 2 admin panel. The LastPass will autofill obscured fields and you will lose your data in these fields. How to prevent ...
1
vote
1answer
419 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" ...
0
votes
3answers
52 views

Can't get templates from store config?

I tried : $store = Mage::app()->getStore(); $configValue = Mage::getStoreConfig('design/themes/templates', $store); but it returned null. Where is my fault? p.s. Value set
3
votes
0answers
95 views

use system config value to disable code from requirejs-config.js

I would like to create a configuration setting in my module's adminhtml/system.xml to disable it's features. I know how I can system config values to disable code in LayoutXML or PHP but is it ...
0
votes
1answer
26 views

How to duplicate my magento website keeping configuration to start another project?

I have a magento website and I would like to start another project with distinct domain ,products and the appareance, keeeping all configuration. I am using magento 1.9 Could your help me to ...
2
votes
2answers
1k 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 ...
0
votes
0answers
131 views

Get Config Path value based on website scope

From a CMS Page, block or transactional email it's possible to get a config path value for the website url with: {{config path="general/store_information/country_id"}} Is it possible to get this ...
1
vote
0answers
92 views

HTTP Error 500 when trying access Admin System Configuration

In the system log I get the following error: 2018-04-09T14:03:13+00:00 ERR (3): Warning: include(Mage/Mailchimp/Helper/Data.php): failed to open stream: No such file or directory in /Applications/...
4
votes
1answer
280 views

Implement “Use system value” in custom module

In the magento backend under Stores -> Configuration some of the fields have the "Use system value" checkbox next to them and some don't have it. Checking the checkbox "restores" the field to the ...
1
vote
1answer
359 views

Magento 2 : Error when i click the admin->configuration

I am getting this error when I click on stores->configuration Notice: Undefined index: id in D:\xampp\htdocs\tork\vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line ...
0
votes
1answer
408 views

Dynamic number of text fields when a value from dropdown is selected in Magento 2 system configuration backend

I have one drop down with fixed set of values lets call 1 to 5. when i select any number that many number of textboxes should be visible in the admin system configuration in magento 2. for example. ...
0
votes
1answer
1k views

get System configuration fields values - custom module

I have a module for Homepage Banner. I have stated two system config fields inside the module- etc/adminhtml/system.xml. I need the values of these fields in frontend phtml file "view/frontend/...
1
vote
1answer
753 views

save data from a module if save config buton is click in admin configuration

save data from a module in database if save config button is click in admin configuration. Basically I want to disabled a module if disabled from admin. Actually disable functionality is not working. ...
-1
votes
1answer
178 views

Magento ver. 1.9.3.7 not saving info when updated in Admin. It says: “The configuration has been saved.” but does NOT save it [closed]

Magento ver. 1.9.3.7 Porto theme I did a fresh install of Magento ver. 1.9.3.7. I installed the Porto theme on top of it. Everything has been working great (I changed some settings around in the ...
0
votes
0answers
713 views

System configuration:array serialization in magento 2

I have created system configuration for my custom module like below Group 1 It works fine for a group 1 and generates a unique id for each row. But while adding the second group, It adds the same ...
1
vote
2answers
2k 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 ...