Questions tagged [core-config-data]

Please use this tag when you have a question related to the configuration table in magento which is the core_config_data table.

Filter by
Sorted by
Tagged with
41
votes
3answers
54k views

How to get value from `core_config_data` table in Magento 2

Magento 1.x use Mage::getStoreConfig('sections/groups/fields') get data on core_config_data table. How to Magento2 get value from core_config_data table ?
27
votes
11answers
31k views

Magento 2 - What is the correct way to change default Order Id?

Magento 2. After fresh install the new Order id will be 100000001, 100000002 and so on. What is the correct way to change that increment id so it would be a higher number? For example 155555552, ...
24
votes
5answers
12k views

Magento 2: Programmatically Add a Value to `core_config_data`

Does Magento 2 have a high level abstraction that allows end-user-programmers to update configuration values in the core_config_data table? Or is using straight SQL the only way to do this in Magento ...
14
votes
2answers
19k views

How to get data from config.xml of a module

In the module A I need to get some data from file config.xml of modules B and C. Are there any methods or classes dedicated for this? Especialy I need to get XML structure and values of node <...
11
votes
2answers
9k views

How can I set a value in core_config_data with Magento 2 programmatically?

I know you can set config data in Magento 1 with: Mage::getModel('core/config')->saveConfig('my/path/whatever', $value); and you can get config data in Magento 2 with: protected $_scopeConfig ...
6
votes
3answers
10k views

Magento 2 - How to get value in “core_config_data” table [duplicate]

In magento 2, how to get value in core_config_data table. Anyone know, show me step by step.Thanks!
6
votes
3answers
10k views

Admin not saving changes

I've seen a lot of people with similar issues, but none of the many resolutions I've seen online have worked for my situation. Magento 1.8 Community Edition. Admin changes are not being saved. ...
5
votes
2answers
24k views

How do I disable merged CSS and JS

I merged CSS and/or JavaScript and my website is all messed up. How do I disable the CSS/JS merge functions? It's so messed up I can't access the Admin panel, how do I do it in the database?
5
votes
1answer
532 views

How to add a multiselect field to system config field table?

I want to add a table to a config section, where one column is a multiselect field. Code is simliar to https://www.integer-net.com/how-to-create-tables-in-magento-system-configuration/, but Magento ...
5
votes
2answers
2k views

Default configuration value for serialized_array settings is ignored

I have an extension which adds panel to System > Configuration, but suddenly in 1.9.3 it ignores default values for settings with <backend_model>adminhtml/system_config_backend_serialized_array&...
5
votes
1answer
2k views

Add Date Picker and/or Validation To System Config Form Field Array

I'm building a module to handle business hours for a physical retail store. The idea is to have configurable fields for the business hours on each day of the week so they can be changed seasonally. ...
4
votes
1answer
7k views

Magento 2 - How to add a custom store config in an existing tab?

I follow this link to add a new tab in config. Is there a way to add a custom config section in an existing tab for Magento 2?
4
votes
2answers
1k views

How to Get core_config_data using Magento soap api?

How to get value of core_config_data eg. general/region/state_required using Magento soap api?
4
votes
2answers
5k views

“Missing required argument $options” After migration from magento 1.9.2.4 to 2.1.3

When i'm trying to view my all migrated customers then getting following error. 1 exception(s): Exception #0 (BadMethodCallException): Missing required argument $options of Magento\Eav\Model\...
4
votes
1answer
346 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 ...
4
votes
1answer
1k views

Config value not rendering in Magento 2

In my custom module have config section values are saving but not rendering. Could you please let me know where I went wrong? My code is: system.xml <field id="customer_header" translate="label" ...
4
votes
2answers
88 views

Problem with <backend_model>

I'm getting a little desperate here with my custom Magento Backend Models. Here is the situation: I have 2 multiselect (locales_served, countries_served) fields with custom backend models in my ...
3
votes
5answers
12k views

Get config value for specific store from admin area

I'm building a custom module for both Magento 1.9.x and 2.x. In the module's settings I want to get one of the config value i.e. I have a text field and when the user save the settings, I use the ...
3
votes
2answers
9k views

How core_config_data settings work

I have a question related to core_config_data. Need some magento experts to clarify this. For eg: I have paypal extension disabled by default. When you enable it from the admin interface it enables ...
3
votes
1answer
2k views

Reload system config to get last saved values

When I save new value of a custom option in system config that new value is not available in the same request. For example, somewhere at the beginning of a controller action in a custom module I save ...
3
votes
3answers
2k 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 ...
3
votes
1answer
999 views

Possibilities in local.xml configuration

I'm rather new to Magento and read in this article that it is possible to configure the base_url values in app/etc/local.xml. Would be nice to have this functionality for running multiple environments,...
3
votes
1answer
228 views

get scope value from core_config_data

I need to get the 'scope' value from core_config_data table of the current scope that has been selected by the user in the admin-panel. I've tried several methods posted in this site without success, ...
3
votes
0answers
125 views

M2 - Difference between ScopeInterface SCOPE_STORE and SCOPE_STORES

I understand that there are websites, stores within websites, and store views within a store. However, one thing I've never understood is the difference between ScopeInterface::SCOPE_STORE and ...
3
votes
1answer
2k views

Warning: simplexml_load_string(): Entity: line 88: parser error

I am having problem with Magento log There are many log that say simplexml_load_string (): parser error. I have spend 4H to find the issue and finally got the issue. Issue with Magento cache if ...
2
votes
2answers
7k views

get scope_id value from current store-view

How i can get the scope_id value from core_config_data table of the current store-view?. I've tried using: Mage::app()->getStore()->getStoreId(); But this doesn't return the scope_id value. ...
2
votes
1answer
1k views

What config.xml settings can be set in the database?

I'm looking to learn more about the internals of Magento! I recently used Inchoo's tutorial to allow administrators to set a crontab schedule from System > Configuration. See it here. In it, I ...
2
votes
4answers
10k views

Can anyone explain how getStoreConfig works?

Mage::getStoreConfig('systemfieldsgroupsectioncode/systemfieldsgroupcode/all_products_gold_price', Mage::app()->getStore()); Can you please explain the folder path ?
2
votes
1answer
3k views

How to get full rows from core_config_data table?

I need to get the complete row from core_config_data table, to then make a few conditions. I know you can get a table by table-name, like: ->getTableName('table_name'); But i need to know if ...
2
votes
1answer
155 views

inject config programmatically

Is there a way to inject custom core_config_data into magento? I would like to set web/secure/base_url, web/unsecure/base_url and some others config dynamic and depending on the host. I tried to ...
2
votes
2answers
614 views

Magento 2.1.3: Store view config doesn't inherit website config

As an example - currency config. I setup currency configuration on a website, the currency setup for a store view is set "Use Website". But it shows the config from a default. The same happens with ...
2
votes
1answer
75 views

Unable to get value from core_config_data in M2

I am developing one extension in which I have one configuration form, after filling form when I click save button it successfully save the data in core_config_data, but to retrieve that data from ...
2
votes
2answers
857 views

How to get value from custom drop down field of system config in magento 2

I need the value of selected value from system config file. Below is my code example. system.xml file <field id="test" translate="label" type="select" sortOrder="30" showInDefault="1" ...
1
vote
5answers
10k views

The requested URL /customer/account/login/ was not found on this server

How to solve this issue, If I manually add index.php it is working. mydomain.com/index.php/customer/account/login/ -- works mydomain.com/customer/account/login/ -- not working my base url in ...
1
vote
1answer
3k views

add an observer when save in system->configuration

I need to add an observer in my module's config.xml file, the event is when the user press the button Save Config in System->Configuration->MyModule section of the Admin-panel. I've this in config.xml:...
1
vote
2answers
3k views

How to get different store value from core_config_data table in magento 2

I have two store available in Magento Default store View German Store In Default Store View I have one tab Blog => General => Store Information. I stored value from this field and it will be store ...
1
vote
1answer
734 views

How to write custom config data to cache?

The scenario is like this. I want to programmatically change config data and write those values to cache. I know changing config data through programmatically is possible and how to do. But how can I ...
1
vote
1answer
38 views

Magento frontend and backend broke : Magento 2

/app/etc/env.php --- 'localhost' vs '127.0.0.1' I changed localhost to 127.0.0.1 however my Magento frontend and backend broke after that. 'db' => [ 'table_prefix' => '', '...
1
vote
2answers
782 views

Get value from “core_config_data”

I'm trying to get value from the core_config_data table but when I follow various guides on the internet or previous topics here, it doesn't work.. Disclaimer: I'm new to PHP and Magento in general ...
1
vote
1answer
1k views

Named Constant 'BP' Replacing

At the top of Mage.php we have a few constants defined: define('DS', DIRECTORY_SEPARATOR); define('PS', PATH_SEPARATOR); define('BP', dirname(dirname(__FILE__))); I am coding something which will ...
1
vote
1answer
65 views

How to implement a method retrieving config value both at store and default scope: Magento 2

In Magento 1, a call to Mage::getStoreConfig('section/group/field') was able to retrieve a config of the current store. Indeed, if we called it from a front block for example, it retrieved the config ...
1
vote
2answers
46 views

Magento 2 - Mirasvit RMA data migration from M1 to M2

We have migrated products, customers and orders details from M1 to M2 using https://devdocs.magento.com/guides/v2.3/migration/migration-tool-install.html now we would like to migrate RMA Mirasvit data ...
1
vote
1answer
347 views

Few questions about developing custom Payment Gateway

I am creating a custom payment module using Paypal API(Don't want to use any Magento Paypal Module). I have 2 question while developing the custom module. Please help me to solve it. My logic is as ...
1
vote
1answer
58 views

Copy store and website configs to a new store programatically

I know that I can do this with just using SQL.. but I´m looking to learn new ways here ;) So the scenario is that I have create a new store and want to copy all core/store and core/website settings. ...
1
vote
1answer
41 views

How to restore core_confg_data in magento

I deleted the core_confg_data and now I can't access my magento store, does anyone know how to re install it or recover it ? I am already trying for several hours...
1
vote
1answer
1k views

how to export/import websites,stores,store-views?

I have a Magento install with 58 websites, and i need to recreate them in a new installation. Is there any way to export the database table which handle this?, and then import it in the new DB?. ...
1
vote
0answers
23 views

how to bring a core_config_data to its last state?

I have done an update which I should not have and backup functionality on magento was not enabled, how can I rollback that last command? is there a chance somewhere I can get the data back? since I ...
1
vote
1answer
41 views

Magento 2: Why is rebuilding config.php from CLI failing with 'Invalid Base URL'?

To set the background I am using Magento 2.3.0 and have imported (successfully so far) data from an existing multi-store site. I now can't access either the front end or the admin area of the site ...
1
vote
0answers
20 views

Magento 2 Get Core Config Data columns

How do one get the column scope_id from core_config_data via given path E.G: $this->_config->getValue(self::MY_PATH, ScopeInterface::SCOPE_STORE); The above returns the column value I need ...
1
vote
0answers
19 views

Magento 1.x core config values in mysql upgrade?

I have the following lines to get a core_config_data value in a mysql upgrade script $installer = $this; $installer->startSetup(); $adapter = $installer->getConnection(); $my_store = Mage::...