O'Reilly logo

OpenCart Theme and Module Development by Rupak Nepali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Getting Started with OpenCart 2 Modules

OpenCart is an e-commerce cart application built with its own in-house framework, which uses the MVCL pattern. Thus, each module in OpenCart also follows the MVCL pattern. The controller creates logic and gathers data from the model. It passes this data to display it in the View. In this chapter, we will deal with the following topics:

  • Creating a Hello World module.
  • Defining OpenCart modules admin and catalog folders and file code in the admin folder helps control the setting of the module, and files in the catalog folder handle the presentation layer (frontend).
  • Each module has its own files, because of which it becomes modular, and changing one module's file does not affect other modules. In OpenCart ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required