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
0 votes
1 answer
105 views

Magento2 : Delete Items From Core Config Data Table Using Standard Way

How can i delete core config data from magento2's database with standard way?
Dharmesh N Tukadiya's user avatar
0 votes
0 answers
132 views

Magento2 cron of custom group does not get scheduled automatically

I have a default ddev magento2.4.6 environment running locally on my mac. My custom module should be scheduled and executed as cron, which works fine as long as I run it from terminal via php n98-...
kekw's user avatar
  • 103
-1 votes
1 answer
489 views

Is there a way to save value in core config data using Magento 2 using object manager?

Is there a way to save the value in core config data using object manager like I will get the value by using I will get the value by $objectManager = \Magento\Framework\App\ObjectManager::getInstance()...
Prits's user avatar
  • 625
0 votes
1 answer
1k views

Magento 2: clear config cache after save config value

Please see this code first public function setRefreshToken($token, $store = null) { $scope = 'default'; $scopeId = 0; if ($store !== null) { $scope = 'stores'; ...
Bhavesh Prajapati's user avatar
0 votes
2 answers
265 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?
ajay's user avatar
  • 35
0 votes
1 answer
442 views

Magento 2.4.2: Setting and getting custom config data works fine, but the text field in the admin backend is empty

I am able to set and get config data in a field under General table with the test code. The Magento backend displays the field as the screenshot below shows. The issue is this field is blank, but ...
CodeForGood's user avatar
0 votes
1 answer
236 views

Change the config value based on dropdown change in magento 2.4.2

I am using Magento Open Source Edition 2.4.2. I have a custom module where I have an admin configuration like below which is under 'Stores > Custom Menu'. In the system.xml, I have added the ...
Octopus's user avatar
  • 355
2 votes
1 answer
484 views

app:config:import does not update web/secure/base_url

We have defined the default web/secure/base_url like this in our app/etc/env.php of our Magento 2.4.2-p1 CE for example: return [ 'system' => [ 'default' => [ 'web' => ...
fritzmg's user avatar
  • 747
0 votes
0 answers
438 views

Magento2: Config data save using Custom Module

I want to save encrypted value in core_config_data while setup upgrade without using config.xml. I am trying to use data patch file Vendor\Credentials\Setup\Patch\Data\AddData.php use Magento\...
Paras Arora's user avatar
0 votes
2 answers
747 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 ...
blakcaps's user avatar
  • 1,965
2 votes
1 answer
130 views

How change Magento2 config cache behavior

In my project with 100's of websites in multi-store mode, several seconds on every request are used to unserialize the config cache. It appears that Magento builds and compiles the config-cache from ...
Juergen Schreck's user avatar
0 votes
1 answer
1k views

How to save array values with configWriter in Magento 2 core config data?

I want to save some data which is in array form and used this to save array but it will save Array keyword in this How to save array values with this. $this->configWriter->save('my/path/...
Prits's user avatar
  • 625
0 votes
0 answers
236 views

How to get only enabled products id's in Magento 2?

I have created a some fields in Store->Configuration on saving the data connect an observer. I want to get all enable product id's in that observer file how would i do that. Any help is appreciated....
Prits's user avatar
  • 625
0 votes
1 answer
797 views

How to hit controller on saving my data of Store->Configuration in Magento 2?

I have created some setting in Store->Configuration in Magento 2 i want to hit a controller if the setting is changed otherwise the i want the controller didn't hit. How would i do that ? My ...
Prits's user avatar
  • 625
0 votes
3 answers
1k views

How to get data from core_config_data table in Magento 2?

I have created a cron and in that i want to get some values from core_config_data table in my Cron File. My Cron file is : <?php namespace Mageplaza\HelloWorld\Cron; use Psr\Log\LoggerInterface;...
Prits's user avatar
  • 625
0 votes
0 answers
341 views

How to Add Custom Validation on Magento 2 Admin?

I have created some fields in Magento 2 Admin I want to add some custom validation in Admin Area. If I add 200 in Product Cost Column in first row then I want to add 201 in next row if i add value ...
Prits's user avatar
  • 625
4 votes
1 answer
481 views

Cleaning up Orphan Entries in core_config_data

Let's say I have a Magento 2 system that was migrated from Magento 1. The folks who migrated this system ported over everything in the core_config_data table. This includes configuration paths that ...
Alana Storm's user avatar
  • 44.4k
1 vote
3 answers
552 views

How to get store logo url in Javascript file in Magento 2?

I want to load store logo image URL in javascript so i can bind it to my knockout element, how can i achieve that?
jojo's user avatar
  • 39
2 votes
2 answers
4k views

Magento 2 Configuration settings - Clarify app:config:dump vs app:config:import

I just want to understand the workflow of Magento 2 configuration settings. Intro In Magento 2, there are these command-line commands: app:config:dump app:config:import Questions Am I correct in ...
CvRChameleon's user avatar
0 votes
1 answer
208 views

Magento 2.3.4: How to find out the configuration key value for `Enable this Solution` for a Payment Method?

Our Magento store recently got Klarna extension integrated in itself as another payment method. I need to find out the configuration key value for the field 'Enable this Solution'. Where do I find ...
CodeForGood's user avatar
0 votes
1 answer
276 views

Set value in core config table Magento 1.9 issue

I am going to set the core_config_data table value for flat catalog products via code but when I print in log it always shows wrong values. Mage::getConfig()->saveConfig('catalog/frontend/...
Yogita's user avatar
  • 784
0 votes
1 answer
481 views

how to get html code in config values magento 2

I have created a field in admin configuration .I want to use the value of the field.If the value of the field is <b>test</b> it displays <b>test</b> not as test.how can I get ...
Jothi Subramanian's user avatar
0 votes
0 answers
430 views

Admin config value not updating to match database value

When I save a config value, it updates the database but does not change the content in the configuration > admin section. When I get the value, its the unchanged one from the admin, not the value in ...
willboudle's user avatar
  • 1,705
0 votes
2 answers
338 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 ...
Sagar Parikh's user avatar
0 votes
1 answer
3k views

Magento 2 Add Image Upload in Configuration issue "The base directory to upload file is not specified"

I am new in MAgento2, and I installed custom module of Magento 2.3 to add image file upload configuration in system.xml. But i encountred this isuue when i try to save the config : system.xml <?...
Salaheddine Radi's user avatar
0 votes
1 answer
2k views

Magento 2.3: How to Set / Get Encrypted core_config_data [duplicate]

I'm trying to save / get encrypted data in my core_config_data table, such as an API key for example. In my system.xml file I have it set to obscure: <field id="my_access_token" showInDefault="1" ...
AJK's user avatar
  • 751
2 votes
0 answers
44 views

Configuration data broken after upgrading to Magento from 2.2.5 to Magento 2.3.3

i Have 3 multi websites , with each websites have 3 different store views, After upgrading to Magento 2.3.3 from 2.2.5 , i've encountered some issue: Magento 2.3.3 prints empty base URL, so all the ...
jojo's user avatar
  • 39
1 vote
3 answers
3k views

Too many redirects in Magento 2.3.3

I am trying to migrate a magento version 2.3.3 site / system from one server to another. After doing everything I should do to complete the migration I am getting 302 as a server response once after ...
Matheus Prado's user avatar
1 vote
0 answers
271 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 ...
Softec's user avatar
  • 2,075
0 votes
0 answers
45 views

How to get Config value in PDF magetno 2

how do you get config value in model class i am doing a override for PDF INVOICE by <preference for="Magento\Sales\Model\Order\Pdf\Invoice" but i am not able to get the config value const ...
jibin george's user avatar
1 vote
0 answers
81 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 ...
Nickool's user avatar
  • 1,069
0 votes
1 answer
261 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
Jack Brooks's user avatar
1 vote
1 answer
2k 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 ...
Julien Loizelet's user avatar
1 vote
1 answer
130 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' => '', '...
Nittn Warshne's user avatar
1 vote
1 answer
1k 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 ...
Dougall Winship's user avatar
1 vote
2 answers
220 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 ...
Nagaraju Kasa's user avatar
1 vote
0 answers
85 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 ...
Juliano Vargas's user avatar
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
Jaisa's user avatar
  • 2,606
0 votes
0 answers
224 views

Magento 2 admin panel is down after changing Base URL

I have changed Base URL secure and unsecure from the backend. I had the following url= http://subdomain.domain.org/folder (also https) and I changed it in order to have http://subdomain.domain.org/. ...
Oscar Vazquez's user avatar
0 votes
4 answers
3k views

How to change my url from www.xxx.com/Magento to www.xxx.com

I am running Magento 2.2.7 and my current URL for my store is https://shop.xyz.ca/Magneto and I would like to change it to be https://shop.xyz.ca/ I am set up on Windows Server and using Xampp 3.2.2 ...
Mur's user avatar
  • 1
2 votes
1 answer
4k views

M2 | How to get value of dynamic generated rows values created at system configuration into template?

I have created dynamic rows in configuration, same in SS: When I save value and check in: core_config_data the value it is not what I am saving instead its like "{"_1556026243400_400":{"...
Ajwad Syed's user avatar
  • 1,591
1 vote
0 answers
50 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::...
Alan A's user avatar
  • 133
2 votes
1 answer
424 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 ...
Surjan Raghuwanshi's user avatar
0 votes
2 answers
452 views

How to call the saveConfig function in Magento 1.9

I am working in Magento 1.9 . In some specific requirement i have to make a PHP file at Magento ROOT directory . Some API will hit that file and send some data to it . I have to save that data in DB ...
Mohammad Hamdan's user avatar
0 votes
1 answer
827 views

core_config_data table keeps on reloading in Magento 2

To make a change, I opened core_config_data table in Magento 2 DB, but it keeps on reloading even after I disabled the new module. What should I do ? Now all the tables have the same issue.
Jerin Cherian's user avatar
1 vote
1 answer
222 views

Magento 2 Saving store configuration programatically in upgrade script

I want to save store configuration programtically but I'm just getting one problem after another. Firstly I wanted to use Writer class but since it only updates core_config_data table it doesn't work ...
czs's user avatar
  • 179
1 vote
2 answers
430 views

magento 2 module register event observer

Is there a way to do some action at module registration/installation? It can be through event observer or through migration. I want to call a function to get some values and store them in ...
subhas's user avatar
  • 53
1 vote
1 answer
103 views

How to store label value in core_config_data

I want to store label value in core_config_data. Mostly the input values are store. If there is no row then the magento creates it. But why the label value is not created. <field id="last_sync" ...
Avesh Naik's user avatar
3 votes
0 answers
280 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 ...
silverman63's user avatar
0 votes
1 answer
466 views

core_config_data settings not loading on shell script

I have a shell script that should send an API request to a certain endpoint, using username and password in a simple HTTP auth. Everything works fine using hard-coded values, but of course we want to ...
Victor Schröder's user avatar