OpenCart Theme and Module Development
eBook - ePub

OpenCart Theme and Module Development

Rupak Nepali

Compartir libro
  1. 208 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

OpenCart Theme and Module Development

Rupak Nepali

Detalles del libro
Vista previa del libro
Índice
Citas

Información del 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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es OpenCart Theme and Module Development un PDF/ePUB en línea?
Sí, puedes acceder a OpenCart Theme and Module Development de Rupak Nepali en formato PDF o ePUB, así como a otros libros populares de Computer Science y Computer Science General. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781783987696
Edición
1

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.

Índice