DocumentationCommerceConfiguration Guide

PaaS only

config.php reference

Last update: April 21, 2023
  • Topics:
  • Configuration

CREATED FOR:

  • Experienced
  • Admin
  • Developer

The config.php file contains the following sections:

NameDescription
i18nAll inline translation data. Reading from this section is not supported.
modulesThe list of enabled and disabled modules.
scopesThe list of stores, store groups, and websites with related information.
systemThe system configurations required for static content deployment.
themesThe configuration of installed themes.

modules

Contains an array of modules and their states. If module is enabled, value is 1. Otherwise, the value is 0.

'modules' => [
    'Magento_Store' => 1,
    'Magento_Theme' => 0,
    'Magento_Backend' => 0,
    'Magento_Eav' => 1
]

Learn more about Modules.

scopes

Contains an array of scope configuration values. It has the following subnodes:

NameDescription
websitesWebsite configuration
groupsStores configuration
storesStore views configuration
'scopes' => [
  'websites' => [
    'admin' => [
      'website_id' => '0',
      'code' => 'admin',
      'name' => 'Admin',
      'sort_order' => '0',
      'default_group_id' => '0',
      'is_default' => '0'
    ]
  ],
  'groups' => [
    0 => [
      'group_id' => '0',
      'website_id' => '0',
      'code' => 'default',
      'name' => 'Default',
      'root_category_id' => '0',
      'default_store_id' => '0'
    ]
  ],
  'stores' => [
    'admin' => [
      'store_id' => '0',
      'code' => 'admin',
      'website_id' => '0',
      'group_id' => '0',
      'name' => 'Admin',
      'sort_order' => '0',
      'is_active' => '1'
    ]
  ]
]

Learn more about Commerce Scopes.

system

Contains an array of system field configuration values.

'system'=> [
    'default' =>[
        'checkout' => [
            'cart' => [
                'delete_quote_after' => 31
            ]
        ]
    ]
]

Learn more about System-specific Configurations.

themes

Contains an array of values for theme configuration.

'themes' => [
  'frontend/Magento/luma' => [
    'parent_id' => 'Magento/blank',
    'theme_path' => 'Magento/luma',
    'theme_title' => 'Magento Luma',
    'is_featured' => '0',
    'area' => 'frontend',
    'type' => '0',
    'code' => 'Magento/luma'
  ]
]

Learn more about Themes.

recommendation-more-help
386822bd-e32c-40a8-81c2-ed90ad1e198c