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 5. Extensions Code

In this chapter, we will see most of the code that is used in OpenCart to perform different functions, and it will be helpful in creating modules. We have used OpenCart version 2.0.1.1. You will learn the following topics in this chapter:

  • Global library methods
  • Detailed description of the Featured module
  • Shipping and payment extensions
  • Order Total extension

Global library methods

OpenCart has many predefined methods that can be called anywhere, for example, in controller, model, as well as view template files. You can find system-level library files at system/library/. We will show you how methods can be written and what their functions are.

Affiliate (affiliate.php)

You can find most of the affiliate code written in the affiliate ...

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