Layouts
Managing store layouts and module positions in OpenCart 4
Layouts in OpenCart 4 give you complete control over the structure of your store's pages. Each layout defines which modules appear in specific positions (like sidebars, headers, or content areas) and which store routes (URL patterns) use that layout. This powerful feature allows you to create unique page designs for different types of content.
Default Layouts
OpenCart 4 includes several pre-defined layouts for common page types:
Default
common/home
Home page and general fallback layout
Product
product/product
Individual product pages
Category
product/category
Category listing pages
Manufacturer
product/manufacturer
Brand/brand listing pages
Information
information/information
Static content pages (About Us, Contact, etc.)
Article
cms/article
Blog/article pages (if CMS enabled)
Topic
cms/topic
Blog topic pages (if CMS enabled)
Accessing Layouts
Log in to Admin Panel
Open your browser and navigate to your OpenCart admin URL (typically yourstore.com/admin).
Enter your administrator credentials to log in.
Navigate to Design → Layouts
From the admin dashboard, go to the main menu and click Design, then select Layouts from the dropdown menu.
You can also use the quick search: type "Layouts" in the admin search bar.
View Layouts List

You'll see the layout management interface showing all existing layouts.
The list displays layout names, associated routes, and action buttons for editing or deleting.
Creating a New Layout
Step 1: Click Add New
Click the Add New button (+) in the top-right corner of the layout list.
Configure Layout Settings

Fill in the layout configuration form:
Layout Name
Layout Routes
Module Positions
Save the Layout
Click Save to create the new layout. You'll see a success message confirming the layout has been created.
Editing an Existing Layout
Locate the Layout
From the layout list, find the layout you want to edit. You can use the search filter or browse through the list.
Click the Edit button (pencil icon) next to the layout name.
Modify Layout Settings
Make your changes in the layout form:
Layout Name: Update the name if needed
Routes: Add, remove, or modify route-store associations
Module Positions: Reorder modules, add new modules, or remove existing ones
Use the same configuration guidelines as when creating a new layout.
Save Changes
Click Save to update the layout settings.
You'll see a success message confirming the layout has been updated.
Layout Configuration Details
Define Layout Name
The layout name is the internal identifier used in the admin panel. It should be descriptive and unique.
Click the Layout Name section below for detailed requirements.
Configure Layout Routes
Routes determine which store pages will use this layout. You can assign multiple route-store combinations.
Click the Layout Routes section below for route patterns and examples.
Arrange Module Positions
Modules are placed in specific positions on the page. Each position can contain multiple modules with sort order control.
Click the Module Positions section below for position descriptions and adding modules.
Use Cases for Custom Layouts
Practical Example: Creating a Homepage Special Layout
Let's walk through creating a custom homepage layout from start to finish.
Plan Your Layout
Before creating the layout, decide what modules you want on your homepage:
Content Top: Featured products slider
Content Bottom: Latest products grid
Column Right: Special offers banner
Column Left: Category navigation
Sketch the layout to visualize module placement.
Create the Layout
Go to Design → Layouts
Click Add New
Enter Layout Name: "Homepage Special"
Add Route: Store: "Default Store", Route:
common/homeClick Save to create the empty layout
Add Modules to Positions
Content Top: Select "Featured" module, set sort order 0
Content Bottom: Select "Latest" module, set sort order 0
Column Right: Select "Banner" module (configured with special offers), set sort order 0
Column Left: Select "Category" module, set sort order 0
Click Add Module for each, then Save the layout.
Test the Layout
Visit your store homepage
Verify all modules appear in correct positions
Check mobile responsiveness
Test different screen sizes
Adjust sort orders or module settings if needed.
Integration with Other Features
Best Practices
Layout Strategy 🎯
Start Simple: Begin with the default layouts and modify as needed
Consistent Structure: Use similar module arrangements across similar page types
Mobile-Friendly: Consider how layouts appear on mobile devices
Performance: Limit the number of modules per page for faster loading
Specific First: More specific routes should be configured before general ones
Avoid Conflicts: Ensure routes don't overlap unintentionally
Test Thoroughly: Check all route patterns work as expected
Document Routes: Keep a list of custom routes for future reference
Logical Order: Place modules in logical reading order (top to bottom, left to right)
Visual Hierarchy: Important modules should have higher visibility
Balance: Distribute modules evenly across positions
Empty Positions: Leave empty positions if not needed (they won't display)
Troubleshooting
Common Issues
Last updated
