O'Reilly logo

Getting Started with OpenCart 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 2. Describing The Code of Extensions

In this chapter we will cover most of the code that is used in OpenCart to perform different functions, which will be helpful in creating modules. We have used OpenCart Version 1.5.5.1.

Global library methods

OpenCart has many predefined methods that can be called anywhere, such as in the controller folder or in the model, and in the view template files. You can find system level library files at system/library/. The following shows the different methods, how they can be written, and what their functions are:

  • Affiliate: You can find most of the affiliate code under the affiliate section, and check the files at catalog/controller/affiliate/ and likewise at catalog/model/affiliate/. The following are the ...

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