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
2
votes
2answers
873 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" ...
0
votes
0answers
21 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 ...
0
votes
1answer
689 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
0answers
26 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 ...
0
votes
1answer
11 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
1
vote
1answer
77 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
1answer
40 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' => '', '...
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\...
1
vote
1answer
50 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
2answers
52 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
0answers
22 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 ...
29
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, ...
0
votes
0answers
37 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
4
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 ...
0
votes
0answers
35 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/. ...
0
votes
0answers
22 views

Magento prepending /pub/ directory to all CSS and JS files

In order to perform the Magento 2 install via a web browser, I had set the Apache DOCUMENT_ROOT as /var/www/magento/. After completing the install, I moved the DOCUMENT_ROOT to /var/www/magento/pub/. ...
0
votes
0answers
21 views

Migrate config values from one path to another

If I have a Magento 2 extension with an old configuration path foo/bar/ with in there numerous settings (like foo/bar/abc), what would be the best way to rename the path to for instance foo/newbar/ (...
0
votes
3answers
552 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 ...
0
votes
1answer
167 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":{"...
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::...
5
votes
1answer
536 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 ...
1
vote
0answers
124 views

Magento 2 class constructor

I have class in my module for Magento 2. His constructor gets 2 parameters class MyClass { private $str1; private $str2; public function __construct(string $str1, string str2) { ...
24
votes
5answers
13k 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 ...
2
votes
1answer
86 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 ...
0
votes
2answers
98 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 ...
0
votes
0answers
21 views

Magento 2: What is the best practice of storing and retrieving custom data

Looking for some input on what the best practice would be to store and retrieve custom data. As an example, I need to store, retrieve and update a couple of custom variables: access_token and ...
0
votes
0answers
13 views

Recommended way to get a list of all valid config fields?

I'm looking to get a structure of all valid config fields, so that I can write something to clean them, how should I do this? I'm also looking to get a structure of all config fields present in an ...
0
votes
1answer
190 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.
1
vote
1answer
93 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 ...
42
votes
3answers
55k 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 ?
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 ...
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
2answers
224 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 ...
1
vote
1answer
80 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" ...
3
votes
0answers
129 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 ...
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 ...
0
votes
1answer
295 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 ...
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:...
6
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?
1
vote
2answers
380 views

Magento 2 data migration 'Permission denied' error

I am trying to migrate magento 1.9 data to magento 2. A week ago I was able to do settings verfication and run migrate data command than I have to stop work. Now after coming back when I try to ...
4
votes
1answer
356 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 ...
0
votes
0answers
326 views

Retrieve encrypted data from config but the data is Garbled text

I'm trying to retrieve a encrypted data from config data by external script, <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); //ini_set('...
0
votes
2answers
331 views

Magento Install Problem - no core config data

Struggling to get a magento install up and running - i've been using magento for years and never had this issue before. Running ubuntu 16.04 on a vagrant box with php 5.6, trying to install either CE ...
0
votes
1answer
1k views

Changing base_urls to work on localhost

I have some databases which we use for our staging servers to test changes to code, and I want to import them and use them locally. I've managed to import the database fine, but my admin panel is ...
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!
1
vote
1answer
1k views

Image CAPTCHA requires FT fonts support While Logging to Magento2 [duplicate]

I installed a fresh copy of Magento2 Latest version (2.2.0) on my live site but when i try to login via admin panel it throws the below error There has been an error processing your request ...
1
vote
2answers
796 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 ...
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. ...
0
votes
1answer
11 views

How can I find all config entries for enabled payment or shipping methods and copy them to another store?

I want to be able to export the enabled payment or shipping methods for a store, then import that into a new store, without overwriting any other configuration values. It's safe to assume that both ...
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&...