OpenCart Documentation
  • Home
  • About
  • Contact
  • Home
  • System Requirements
  • Installation
  • Updating OpenCart
  • Getting Started
  • Where to download
  • Browsing the Store Front
  • Admin Interface
    • Overview
    • Filter
    • Image Manager
    • Adding Multiple Languages
    • Creating a Multi-Store
    • Moving OpenCart to a New Server
    • SEO Keywords
    • SSL Certificates and HTTPS
    • Basic Security Practices
    • vQmod
  • Catalog
    • Categories
      • Overview
      • General
      • Data
      • Design
    • Products
      • Overview
      • General
      • Data
      • Links
      • Attribute
      • Option
      • Discount
      • Special
      • Image
      • Reward Points
      • Design
    • Filters
    • Profiles
    • Attributes
    • Options
    • Manufacturers
    • Downloads
    • Reviews
    • Information
  • Extensions
    • Modules
      • Core Modules
      • Install/Uninstall
      • Editing a Module
      • 3rd Party Modules
    • Shipping
    • Payments
    • Order Totals
    • Product Feeds
  • Sales
    • Orders
    • Returns
    • Customers
      • Overview
      • Customer Groups
      • IP Blacklist
    • Affiliates
    • Coupons
    • Gift Vouchers
    • Mail
  • Reports
    • Customer Reports
      • Order Report
      • Reward Points Report
      • Customer Credit Report
    • Affiliate Reports
      • Affiliate Commission Report
    • Product Reports
      • Products Viewed Report
    • Sales Report
      • Orders report
      • Tax report
      • Shipping report
      • Returns report
      • Coupon Report
  • System
    • Settings
      • General
      • Store
      • Local
      • Option
      • Image
      • Mail
      • Fraud
      • Server
    • Design
      • Layouts
      • Banners
    • Users
    • Localisation
      • Language
      • Currency
      • Stock status
      • Order status
      • Returns
      • Countries
      • Zone
      • Geo zone
      • Taxes
      • Length class
      • Weight class
    • Error logs
    • Backup/Restore
  • Developer Guide
    • Developing Modules
    • Developing new product feeds
    • Loading files in the controller

Layouts

Layouts

The OpenCart default store provides the following page layouts:

  • Account
  • Affiliate
  • Category
  • Checkout
  • Contact
  • Default
  • Home
  • Information
  • Manufacturer
  • Product
  • Sitemap

If you haven't done so already, you should take some time to browse the store front. To become familiar with layouts available in OpenCart, you should visit the different page types of your store front. The Manufacturer page layout has a different type of layout than the Checkout page, which has a different page layout than the Information page, and so on. It's good to see how these layouts arrange themselves, to discover how positioning a module from the Extensions section will affect the overall look of the page.

Creating a layout page from scratch takes some knowledge of web design and development. Once a layout page has been created, you should upload the files with an FTP client.

template files

The location of the layout pages in the default theme is visible under /catalog/view/theme/default/template/ in the OpenCart directory. You can see that all the page layouts from the default are included as folders above. To add a new layout page, you would need to upload the files under a new layout folder.

After the new layout page is uploaded to the location above, it can added to the store by clicking the "Insert" button under System > Design > Layout. The new layout will require a layout name, the store the layout will be added to, and a route. The route is the folder name that the layout files are included in. OpenCart knows to search for the folder under /catalog/view/theme/default/template/ in the store directory, so only the folder name is required.

design layout page

Clicking "Add Route", then "Save" will make the new layout available in the store. See Modules for more information on how to add a module to a specific layout page.

Published with GitHub Pages