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 [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.

0
votes
1answer
40 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
18 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::...
2
votes
1answer
37 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
39 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
17 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
64 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
62 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 ...
1
vote
2answers
174 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
49 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
92 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 ...
0
votes
1answer
229 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 ...
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 ...
1
vote
0answers
69 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) { ...
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 ...
0
votes
0answers
259 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
220 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
617 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 ...
1
vote
1answer
769 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 ...
2
votes
5answers
8k 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 ...
0
votes
1answer
8 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 ...
1
vote
2answers
710 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 ...
6
votes
1answer
482 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 ...
8
votes
2answers
7k 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 ...
1
vote
2answers
2k 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 ...
3
votes
2answers
3k 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\...
2
votes
2answers
531 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 ...
1
vote
2answers
337 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 ...
0
votes
1answer
525 views

Serialized array default data

I've written a module with a config section that saves it's data as a serialized array. After having tested the module and making sure it works, I want to also include default data so that nothing ...
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
751 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" ...
2
votes
1answer
141 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 ...
5
votes
2answers
1k 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&...
1
vote
1answer
31 views

Cloned Prod Web & Database Server to create staging, what next?

I am trying to correctly setup a Staging environment. I cloned both my Production Web Server and Production Database Server to replicate both in a Staging setting with their own separate droplets (...
0
votes
1answer
50 views

Trouble with admin URL

@EDIT: it finally worked. I just needed to clear Magento's cache. In case you need to do so, go to /var/cache and delete everything there, and then start again. I installed Magento 2 with WAMP server ...
0
votes
1answer
92 views

Configuration vs Scopes/Stores

I work on Magento 2.1. I have one website, store and store view. I understand that if in future client needs to add another language to store he will add just a store view. Am I correct? Now, I have ...
3
votes
1answer
6k 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?
1
vote
1answer
319 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 ...
0
votes
1answer
1k views

Magento 2 Retrieved core_config_data value is null

I am having similar problem as this stackexchange post. I have looked that the database table core_config_data contains the value i need to retrieve. But $configValue=$this->_scopeConfig->...
0
votes
2answers
1k views

Magento 2 Retrieve store phone number

I tried using this function $this->_scopeConfig->getValue( 'general/store_information/phone', \Magento\Store\Model\ScopeInterface::SCOPE_WEBSITES ); And it is always returning ...
2
votes
4answers
9k 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 ?
0
votes
2answers
637 views

Mage::getStoreConfig('Section/Group/Field') path not in core_config_data

The error after turning developer mode back on is: Fatal error: Call to a member function toOptionArray() on a non-object in /home/vimarket/public_html/app/code/core/Mage/Adminhtml/Block/System/...
4
votes
2answers
81 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 ...
6
votes
3answers
9k 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!
0
votes
1answer
185 views

How to Add a custom Email to Core_Email_template table

What are the steps to adding a template to core_email_template. I created a new template in en_US/emails/...and created a system config field HOWEVER nothing is showing up in the table. What step am I ...
1
vote
0answers
176 views

how do get store in magento2?

i have custom tempalte. I get template store view in my block. protected function _prepareLayout() { $this->getToolbar()->addChild( 'store_switcher_xanka', '...
1
vote
0answers
115 views

Magento 2: Get `core_config_data` Values without Creating a new Module [duplicate]

Is there a way in Magento 2.0 to get a config value and display it in the header without creating a custom module? I am trying to display the phone number from the admin Stores > Configuration under ...
1
vote
1answer
54 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. ...
4
votes
1answer
892 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,...
18
votes
10answers
26k 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, ...