OpenCart Theme and Module Development
eBook - ePub

OpenCart Theme and Module Development

Rupak Nepali

Condividi libro
  1. 208 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

OpenCart Theme and Module Development

Rupak Nepali

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

About This Book

  • Explore the new features in OpenCart by using them in your custom theme
  • Get hands-on with the Global Library Methods used in OpenCart to make themes and extensions
  • Packed with hands-on examples, step-by-step explanations, and illustrations to guide you through coding modules and themes

Who This Book Is For

This book is aimed at developers and designers who want to start developing their own themes and extensions and for those who want to know about the code workflow of the OpenCart theme and modules.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
OpenCart Theme and Module Development è disponibile online in formato PDF/ePub?
Sì, puoi accedere a OpenCart Theme and Module Development di Rupak Nepali in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Computer Science e Computer Science General. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2015
ISBN
9781783987696

OpenCart Theme and Module Development


Table of Contents

OpenCart Theme and Module Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with OpenCart 2.0
The features of OpenCart
Changing the OpenCart shop's general settings
Setting image height and width
Managing the modules in the theme
Managing the image dimensions of modules in the default theme
Creating and setting a promotional banner
Installing and uninstalling a module
Setting the Banner, Carousel, and Slideshow modules
Managing the layout and position of a module in a theme
Describing the files and folders of the default theme
Summary
2. Bootstrap, Font Awesome, and FlexSlider in OpenCart 2 Themes
Bootstrap
Advantages of using Bootstrap in OpenCart themes
The basic template structure with Bootstrap in OpenCart 2
A basic static Bootstrap template
Font Awesome, an iconic font
Setting up Font Awesome
Using BootstrapCDN by MaxCDN
Using default CSS
The icons of Font Awesome
Rotated and flipped icons
FlexSlider
Summary
3. Creating Custom Themes
Preparing the files
Integrating HTML and CSS into the OpenCart theme
Creating a new theme based on the default theme
Understanding the code in header.tpl
Checklist for the header section
Changing the style of currency
Describing the code of the top menu categories
Changing the style of the menu
Understanding the code in footer.tpl
Changing the style of the footer div in the footer
Removing the copyright information in the footer
The home page
The category page
The product page
The information pages
The contact us page
Changing the CSS for the checkout steps
Summary
4. Getting Started with OpenCart 2 Modules
Creating a Hello World module
The admin folder
The catalog folder
Installing, configuring, and uninstalling a module
Installing a module
Configuring the module
Configuring layouts for the module
Uninstalling the module
Positions for the module
The status of the module
Sort order of modules
Different layouts for the same module
The file structure – admin and frontend
Creating a language file for the admin section in OpenCart
Creating a controller for the admin section in OpenCart
Creating a template file for the admin section in OpenCart
The breadcrumbs section of the module
Creating a language file for the Catalog (frontend) module in OpenCart
Creating a controller file for the Catalog (frontend) module in OpenCart
Creating a template file for the Catalog (frontend) module in OpenCart
Summary
5. Extensions Code
Global library methods
Affiliate (affiliate.php)
Cache (cache.php)
Cart (cart.php)
Config (config.php)
Currency (currency.php)
Customer (customer.php)
Database (db.php)
Document (document.php)
Encryption (encryption.php)
Language (language.php)
Length (length.php)
Log (log.php)
Mail (mail.php)
Pagination (pagination.php)
Request (request.php)
Response (response.php)
Session (session.php)
Tax (tax.php)
URL (url.php)
User (user.php)
Weight (weight.php)
The Featured module
Configuring the Featured module in OpenCart 2.0.1.1
Exploring code used in Featured module
Exploring the code of admin/controller/module/featured.php
Exploring the code of admin/view/template/module/featured.tpl
Exploring the code of catalog/controller/module/featured.php
The Shipping module
Changes required at the admin folder to create total cost based Shipping module
Changes made in the catalog folder
The Payment module
Off-site payment
On-site payment
Order Total
Summary
6. Create OpenCart Custom Pages
Getting started with feedback management
Database tables for feedback
Creating files in the admin section for feedback
Creating the language file in the admin section
Creating the model file in the admin section
Creating the controller file in the admin section
Creating the template files for form and list pages in the admin section
Creating the model file for the catalog folder frontend
Creating the language file for the frontend
Creating the controller file for the frontend
Creating the template file for the frontend
Summary
Index

OpenCart Theme and Module Development

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2015
Production reference: 1240615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-768-9
www.packtpub.com

Credits

Author
Rupak Nepali
Reviewers
James Allsup
Dario Fumagalli
Commissioning Editor
Amarabha Banerjee
Acquisition Editor
Meeta Rajani
Content Development Editor
Susmita Sabat
Technical Editors
Rohith Rajan
Anushree Arun Tendulkar
Copy Editor
Vikrant Phadke
Project Coordinator
Izzat Contractor
Proofreader
Safis Editing
Indexer
Rekha Nair
Graphics
Abhinash Sahu
Production Coordinator
Aparna Bhagat
Cover Work
Aparna Bhagat

About the Author

Rupak Nepali is from Nepal. He has been working as a PHP programmer and on the OpenCart framework since 2010. He has also completed many projects and built many modules on OpenCart to meet his clients' requirements. He is currently working as a web developer at Corner Edge Interactive, Arizona, and as a freelancer on Elance, oDesk, and other freelancer sites. Rupak holds a bachelor's degree in computer information systems from Nobel College, Kathmandu, Nepal. He is currently studying for his MS degree in computer science from the Maharishi University of Management, Iowa, USA.

Indice dei contenuti