The VirtueMart theme is a collection of files that work together to present VirtueMart shop pages to shoppers. While the default
theme is the only theme that comes with VirtueMart, you are free to develop a theme of your own or purchase one from a third party. We will tell you how to create a theme in the next chapter. But before that, we need to understand the basic building blocks of a VirtueMart theme.
VirtueMart makes use of a class called vmTemplate
to provide the function of a theme. (Yes, this class is named as Template. Yet, it is used to provide basic theme function. Apparently, the development team did not make a clear distinction between theme and template or maybe because they had a hard time finding an appropriate wording to call it.) The class file is named template.class.php
and is located in the classes
subdirectory of the VirtueMart administrator
directory.
The vmTemplate
class has a number of functions. But for a template user, just...