OpenCart Theme and Module Development
eBook - ePub

OpenCart Theme and Module Development

Rupak Nepali

Buch teilen
  1. 208 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

OpenCart Theme and Module Development

Rupak Nepali

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

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.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist OpenCart Theme and Module Development als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu OpenCart Theme and Module Development von Rupak Nepali im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Computer Science General. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
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.

Inhaltsverzeichnis