Video Lesson: Configure scope with XML in Magento

Configure scope with XML in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

Configure scope with XML in Magento

Learn how to configure scope in Magento XML by using default, websites, and stores nodes for layered store settings.

Lesson Content

XML scope structure

In Magento's XML files, scope is implemented through specific node structures that map directly to the scope hierarchy:

<?xml version="1.0"?>
<config xmlns:xsi="<http://www.w3.org/2001/XMLSchema-instance>" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
    <!-- Global default settings -->
    <default>
        <!-- Configuration goes here -->
    </default>

    <!-- Website-specific settings -->
    <websites>
        <website_code>
            <!-- Configuration goes here -->
        </website_code>
    </websi...

Premium content

Enroll to unlock the full content and all course materials.

👋
Maggie

Log in to start chatting!

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Comments

Want to comment on this lesson?

Enroll in this course to leave comments.