Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [system-config]

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

0
votes
0answers
3 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 configure multiple stores (each as its own prices). We have 15 stores for ...
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
46 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
21 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
39 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
33 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
477 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
56 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
72 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
39 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
140 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
53 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
54 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
1answer
333 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
162 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
342 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
40 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
119 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
308 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
141 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
125 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
113 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
62 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
333 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
194 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
58 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
345 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
50 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
86 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
25 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
119 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
76 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
261 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
339 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
368 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
974 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/...
0
votes
1answer
656 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
162 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
662 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 ...
0
votes
1answer
662 views

Undefined index: label vendor/magento/framework/Data/Form/Element/Select.php on line 68

I'm getting this error when going to a custom extension's (IWD_Opc) admin configuration page. Undefined index: label in .../vendor/magento/framework/Data/Form/Element/Select.php on line 68 Any ideas ...
5
votes
2answers
495 views

Get system config option inside source model of another option

In my custom module I have two custom option in the system configuration. Values of the second option depend on the value of the first option. My problem is that inside the source model of the second ...
1
vote
1answer
432 views

How to get system configuration values dynamically in xml file in magento 2

I have created admin grid and form using Ui component, Now I need to get system configuaration values in my form.xml. Please provide me a solution I need to get width,height,image size from below ...
1
vote
1answer
206 views

Get configuration for custom module

I'm trying to get a configuration for my custom module My Custom module overrides \Magento\Swatches\Block\Product\Renderer\Configurable With the following Code: namespace Vendor\swatchExtender\...
2
votes
1answer
641 views

Call Helper methods in phtml file Custom Module in Magento 2.x

In /var/www/html/magento2/app/code/Custommodule/ReviewRating/Block/HomehorizontalWidget.php <?php namespace Custommodule\ReviewRating\Block; class HomehorizontalWidget extends \Magento\...
0
votes
1answer
114 views

Is there any chance to call phtml file into system.xml file?

Hello, I have to know that any chance to call phtml file into system.xml if yes then how is it possible? Thanks.