OpenCart Theme and Module Development
eBook - ePub

OpenCart Theme and Module Development

Rupak Nepali

Partager le livre
  1. 208 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

OpenCart Theme and Module Development

Rupak Nepali

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

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.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que OpenCart Theme and Module Development est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  OpenCart Theme and Module Development par Rupak Nepali en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Computer Science et Computer Science General. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
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.

Table des matiĂšres