
• virtuemart_parser.php (the central file for VM, prepares
the session, authentication, cart & runs functions)
• show_image_in_imgtag.php (used to display dynamically re-
sized images - using the class.img2thumb.php)
/components/com_virtuemart/css/
Contains the shop's css file (shop.css) and css styles needed for the
frontend administratin (admin.css)
/components/com_virtuemart/js/
Contains Javascripts (WebFX – Tabs, JSCookTree and the IE-
PNG-Transpareny Fix)
/components/com_virtuemart/shop_image/
/availability Contains images for displaying the availability of a
product.
Tip
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.
/category Contains images for categories
/product Contains Product Images + resized product images
/ps_image Images for the administrative interface
/vendor Vendor Logos
3.2. Main Flow Chart
3.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 /components for a di-
rectory 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.phpshop.php in it.
If found, the file is included.
3.2.2. Shop Part
When the Shop is loaded, one of the first things is to load the file virtuemart_parser.php using the re-
quire_once command. It makes core interactions like the Joomla.php file /mainframe class and after that looks
for a variable called page (can be passed by GET or POST).
The page variable consists of the pagename and the core module name:
shop.browse => shop is the name of the shop core module and browse is the name of the page.
Tip
VirtueMart Developer Manual
5
Comentários a estes Manuais