VirtueMart - 1.1 Developer's Guide
Main Flow Chart
5
for selection as the availability
image for a product - so just
copy them here.
image for a product - so just
copy them here.
/category
Contains images for categories
/product
Contains Product Images + resized
product images
product images
/ps_image
Images for the administrative interface
/vendor
Vendor Logos
/components/com_virtuemart/
themes
themes
Contains the themes for VirtueMart. Each theme has the
following structure:
following structure:
Directory/File
Function
/admin.css
the stylesheet for the frontend administration
/theme.config.php
the configuration file for the theme
/theme.css
the main stylesheet for the theme
/theme.js
the main javascript controller for the theme
/theme.php
the "controller" for the theme; used to declare
functions and include stylesheets (and more!)
functions and include stylesheets (and more!)
/theme.xml
contains the theme configuration parameters and
additional information
additional information
/images/
holds the theme images
/templates/
holds the template files that allow you to style and
restructure the shop pages
restructure the shop pages
/templates/basket/
holds the basket templates
/templates/browse/
holds the templates for the product listing page
/templates/common/
holds some commonly used templates, like the
price display, pathway and the product snapshot
price display, pathway and the product snapshot
/templates/pages/
holds the templates for all other pages (e.g.
'account.order_details.tpl.php')
'account.order_details.tpl.php')
/templates/order_emails/
holds the order email templates as used when an
order is placed
order is placed
/templates/product_details/
holds the product detail templates
2.2. Main Flow Chart
2.2.1. Joomla Part
Joomla uses the variable option to load a specific component. This variable must have the value
"com_virtuemart" to load VM. Called on the Frontend, Joomla searches the directory
"com_virtuemart" to load VM. Called on the Frontend, Joomla searches the directory
/components
for a directory called com_virtuemart and a file called
virtuemart.php
in it.
When called in the backend, Joomla searches the directory
/administrator/components
for
a directory called com_virtuemart and a file called
admin.virtuemart.php
in it.
If found, the file is included.