Prerequisites
To set a configuration value, you must know at least one of the following:
-
The configuration path
-
To set a configuration value for a particular scope, you must know the scope code.
To set a configuration value for the default scope, you do not need to do anything.
Find the configuration path
See the following references:
Find the scope code
You can find the scope code either in the Commerce database or in the Commerce Admin.
To find the scope code in the Admin:
-
Log in to the Admin as a user who can view websites and store views.
-
Click Stores > Settings > All Stores.
-
In the right pane, click the name of the website or store view to see its code.
The following figure shows a sample website code.
-
Continue with Set values.
To find the scope code in the database:
Scope codes for websites and store views are stored in the Commerce database in the store_website
and store
tables, respectively.
-
Connect to the Commerce database.
mysql -u <Commerce database username> -p
-
Enter the following commands:
use <Commerce database name>;
SELECT * FROM store;
SELECT * FROM store_website;
A sample result follows:
[mysql]> SELECT * FROM store_website; +------------+-------+--------------+------------+------------------+------------+ | website_id | code | name | sort_order | default_group_id | is_default | +------------+-------+--------------+------------+------------------+------------+ | 0 | admin | Admin | 0 | 0 | 0 | | 1 | base | Main Website | 0 | 1 | 1 | | 2 | test1 | Test Website | 0 | 3 | 0 | +------------+-------+--------------+------------+------------------+------------+
Use the value in the
code
column. -
Continue with the next section.