VMJ Home Blog Modifying VirtueMart Layout?
Modifying VirtueMart Layout? E-mail
Written by VMJ Support Team   
Tuesday, 01 December 2009 22:10

Starting with version 1.1, VirtueMart offers to style the shop using themes and templates. A theme is what defines certain parts of the look and feel of your shop. All installations of VirtueMart should start out with the default theme. You can change the Theme in the "Site" section of the configuration form. Usually there's only one theme available, so you can't switch. A good way to think of themes is as "plugins", which contain a collection of page templates, images, stylesheets, javascript and other files. While editing these files can be a bit technical, the layout is separated from the content allowing you to make and distribute your own themes.

Theme Configuration

Themes can be configured for better usability. Configuration parameters can be used to turn on and off certain parts in templates. The configuration parameters are defined in the file /components/com_virtuemart/themes/THEMENAME/theme.xml and follow the common parameter syntax for components, modules and mambots as used in Mambo >= 4.5.1 and Joomla! (Read more about the mosinstall parameter XML syntax). When a user chooses to configure a theme (Shop Configuration ? Tab "Site ? "Layout", these parameters are parsed and displayed in a nice form. Now the user can make changes to the configuration. The current configuration values are stored in the file /components/com_virtuemart/themes/THEMENAME/theme.config.php. This file is renewed with the new configuration values each time a user saves the theme configuration.

A detailed tutorial for VirtueMart Theme Modification is given on VirtueMart Site.

Chapter 3. Modifying the Layout 

 

Add comment


Security code
Refresh

Advertisement