Book Image

Joomla! VirtueMart 1.1 Theme and Template Design

By : Joseph Kwan
Book Image

Joomla! VirtueMart 1.1 Theme and Template Design

By: Joseph Kwan

Overview of this book

VirtueMart is the best shopping cart solution around for the Joomla! CMS. A VirtueMart template is a Joomla! template that is designed to create the overall look of a store. It puts in things such as a shopping cart bar, more shop-like graphics, more readable colors, and so on. A VirtueMart theme only impacts the area of the site actually controlled by the VirtueMart component. Themes work inside the overall framework. Applying custom templates and themes to give a unique look and feel to your VirtueMart web store will really attract customers! This book will guide you to build VirtueMart custom themes and templates. Joomla! VirtueMart 1.1 Theme and Template Design explains how the VirtueMart theme and template system works and points out ways to configure the default theme. It then goes on to look at each of the major templates with an emphasis on how to customize them. It then discusses individual page groups such as product list, product details, shopping cart, checkout, and invoice e-mails in the order they appear to your customer. After-sale services like invoice e-mail, account management, and order list are also discussed. The book also discusses the different components of a VirtueMart theme and will teach you how to build a theme from scratch. You will also learn advanced features like child products, advanced attributes, custom attributes, and product types. Topics like integration with Joomla! plugins and AJAX functions are also included. An Appendix provides a comprehensive template reference of the use and available fields of every template. Joomla! VirtueMart 1.1 Theme and Template Design is a practical guide for all those who want to make VirtueMart work for them. It will put many advanced features of this popular open source e-Commerce application at your finger tips.
Table of Contents (16 chapters)
Joomla! VirtueMart 1.1 Theme and Template Design
About the Author
About the Reviewer

Flypage templates

There are six flypage templates in the default theme:

  • flypage-ask.tpl.php

  • flypage.tpl.php

  • flypage_images.tpl.php

  • flypage_lite_pdf.tpl.php

  • flypage_new.tpl.php

  • garden_flypage.tpl.php

Most of the templates are very similar, except flypage_lite_pdf.tpl.php which is aimed for PDF output. These templates are there just as examples. The name of the template file actually does not reflect its content. For example, flypage_new.tpl.php does not mean it is a newer template than flypage.tpl.php. Also, both flypage.tpl.php and flypage_images.tpl.php show the image and additional images. So, don't be misled by the filename itself.

You can, of course, set a different template for a different product category. For example, if you have a category of products such as training courses that does not have an image, you can create a flypage_no_image.tpl.php by simply removing the $product_image variable from this template and setting the category flypage to this template.

Exercise 4...