You are previewing Getting Started with OpenCart Module Development.
O'Reilly logo
Getting Started with OpenCart Module Development

Book Description

Master your OpenCart modules and code!

  • Learn how to clone OpenCart modules

  • Develop and customize modules, pages, order totals, payments, and shipping extensions in OpenCart

  • Understand the Global Library methods used in OpenCart

In Detail

OpenCart is an online shopping tool which is free to use. It has become widely popular because of its support for custom extensions and module development. This book helps you understand how to use the features available in OpenCart using step-by-step instructions.

Getting Started with OpenCart Module Development gives you step-by-step explanations and illustrations on how to clone, customize, and develop modules and pages with OpenCart.

This book shows you how to create custom OpenCart modules and pages which are needed as per the requirements of the clients to manage custom data. It describes each and every code used to make a Hello World module, a feedback module, a tips module, an order total module, and a shipping and payment module.

The book covers installing, configuring, and uninstalling modules as well as how to clone them. It also discusses all the available Global Library methods of OpenCart as well as ways to handle the files and folders of a shipping and payment module. At the end of the book, you will learn how to make custom pages to manage data by creating a feedback module and how to create the order total using a tips module.

In Getting Started with OpenCart Module Development, you will learn everything you need to know to create custom OpenCart modules.

Table of Contents

  1. Getting Started with OpenCart Module Development
    1. Table of Contents
    2. Getting Started with OpenCart Module Development
    3. Credits
    4. About the Author
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
      7. Downloading the example code
      8. Errata
      9. Piracy
        1. Questions
    8. 1. Getting Started with OpenCart Modules
      1. Creating the Hello World module
        1. Changes made in the admin folder
        2. Changes made in the catalog folder
        3. Installing, configuring, and uninstalling a module
          1. Installing a module
          2. Configuring the module
          3. Layouts for the module
          4. Positions for the module
          5. Status of the module
          6. Sort order of the modules
          7. Show same module in different layouts
          8. Effects of clicking on the Add Module button
          9. Uninstalling the module
        4. File structure – admin and frontend
          1. Creating the language files for the admin module in OpenCart
          2. Creating the controller in the admin section of the OpenCart module
          3. Creating the template file at admin in the OpenCart module
          4. Breadcrumbs section for the module
          5. Creating the language file for catalog (frontend) module in OpenCart
          6. Creating the controller file for catalog (frontend) module in OpenCart
          7. Creating the template file for catalog (frontend) module in OpenCart
      2. Summary
    9. 2. Describing The Code of Extensions
      1. Global library methods
      2. Detailed description of the Featured module
        1. Configuring the Featured module in OpenCart 1.5.5.1
        2. Exploring the code used in the Featured module
          1. Exploring the featured.php file under the admin folder
          2. Exploring the featured.tpl file under admin folder
          3. Exploring the featured.php file under the catalog folder
      3. The Shipping module
        1. Changes made in the admin folder
        2. Changes made in the catalog folder
      4. The Payment module
        1. Off-site payment
        2. On-site payment
      5. The Order Total module
      6. Summary
    10. 3. Creating Custom OpenCart Modules
      1. Getting started with feedback management
        1. Database tables for feedback
        2. Creating files at the admin section for feedback
          1. Creating the language file at the admin section
          2. Creating the model file at the admin section
          3. Creating the controller file at the admin section
          4. Creating the template files for form and list at the admin
          5. Creating the model file at the catalog folder frontend
          6. Creating the language file at the frontend
          7. Creating the controller file at the frontend
          8. Creating the template file at the frontend
      2. The Tips module
        1. Creating the language file at the admin section
        2. Creating the controller file at the admin section
        3. Creating the template file at the admin section
        4. Changes made in the cart file at the frontend
        5. Changes in the shopping cart page to show tips
      3. Summary
    11. Index