| Chapter 2. Basics |
| Prev | Next |
|---|
Table of Contents
VM holds most of its files in the
/administrator part of Joomla. The only files
stored in the /components part of a Joomla site are
those, which must be accessible from the Frontend of a Joomla site, even
when the Administrator part is secured by htaccess files.
Contains file for the administration interface of VM. Because the administrative interface is also accessible from the frontend, those files are not restricted to the Joomla! Coding Standards. Important files:
header.php (Code for the
Drop-Down Menu of the administration)
virtuemart.cfg.php (central
Configuration File)
toolbar.virtuemart.html.php
(Standard Toolbar - Joomla! style)
toolbar.html.php (Toolbar for
ExtJS in extended Layout)
Holds all the core classes which are used by VM Important:
ps_database.php (wrapper for
Joomla's database object $database)
ps_cart.php (controls the cart
contents)
ps_main.php (not a class,
contains central functions, e.g. for image upload)
ps_session.php (basic session
management, URL formatting)
Directory for the Currency Converter Modules
Export Modules (currently unused and deprecated)
Contains a slightly modified version of PEAR's Log class
Contains the "NuSOAP" classes for SOAP support in PHP versions < 5
Contains Shipping Modules & their informational Files
Contains Payment Modules & their informational Files
Contains the classes of the HTML2FPDF Package (see sourceforge.net/projects/html2fpdf)
contains the phpinputfilter class for VirtueMart
Holds some packages of the PEAR
Holds files which are used for loading VirtueMart pages.
They are ordered by the core module name (e.g. checkout.*.php for the core module checkout)
Important files:
basket.php (controls the
Cart)
ro_basket.php (controls the
Cart on the last step of checkout, ro = read only)
Contains the Language Files which are included from virtuemart_parser.php.
Holds SQL Dump Files for building up the structure for the tables used by VirtueMart.
Holds the files wich are used to control the call of the Shop from the Frontend.
Important files:
virtuemart.php (the file
included by Joomla on a call to
index.php?option=com_virtuemart&....)
virtuemart_parser.php (the central file for VM, prepares the
session, authentication, cart & runs
functions)
show_image_in_imgtag.php (used
to display dynamically resized images - using the
class.img2thumb.php)
Contains the shop's css file
(shop.css) and css styles needed for the
frontend administration (admin.css)
Contains Javascripts
Images for the Shop
Contains images for displaying the availability of a product.
All images in this folder are automatically parsed and displayed in the product form for selection as the availability image for a product - so just copy them here.
Contains images for categories
Contains Product Images + resized product images
Images for the administrative interface
Vendor Logos
Contains the themes for VirtueMart. Each theme has the 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!) |
| /theme.xml | contains the theme configuration parameters and additional information |
| /images/ | holds the theme images |
| /templates/ | holds the template files that allow you to style and 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 |
| /templates/pages/ | holds the templates for all other pages (e.g. 'account.order_details.tpl.php') |
| /templates/order_emails/ | holds the order email templates as used when an order is placed |
| /templates/product_details/ | holds the product detail templates |