Skip to content

Theme Structure

The OpenCart 3 theme name is shop3.

Canonical path:

catalog/view/theme/shop3/

Initial Structure

catalog/view/theme/shop3/
  template/
    common/
      header.twig
      footer.twig
      home.twig
  stylesheet/
    shop3.css
  javascript/
    shop3.js
  image/

Rules

  • Do not edit OpenCart core files.
  • Do not copy the default theme wholesale.
  • Add only files required by the approved scope.
  • Keep custom entities aligned with the shop3_ prefix.
  • Keep future OC4 compatibility in mind without forcing OC4 abstractions into OC3 work.

Asset Ownership

Theme-owned CSS and JavaScript should live under the theme directory until an approved asset pipeline changes that rule.

Fallbacks

OpenCart fallback behaviour may be used while the theme skeleton is still minimal. Template coverage should expand through focused implementation PRs.