Project

General

Profile

Actions

Hints for the use of the template system » History » Revision 11

« Previous | Revision 11/15 (diff) | Next »
Valérie Isaksen, 07/29/2012 03:44 PM


Hints for the use of the template system

This page is for users and designers and developers, but since users of the administrator level can also get inflicted with it, we moved it to the user chapter.

The new template system of virtuemart allows fine grained overrides for each category and product. Even the views can have different templates. We did not implement our own template system, it is based upon what is already there. So we have the joomla template system and some methods to overwrite, but this leads to some limitations.

The joomla template system is described here:

The virtuemart default shop template is overriding the joomla configurations. You can choose in the configuration the template and layout for the shop, the category and the product view and you can override these values per category and product.

The problem behind this construction is that the joomla template override system does only work for the template loaded by joomla. So when you have the "Rhuk_milkyway" template set as default in joomla, but you use for example the "Beez" template for categories and placed a layout for override in it, then it is not used! Because joomla looks only in the "Rhuk_milkyway" template for layouts.

So you can use a lot different templates, but the layouts must be stored in the template which is the default of joomla.

Hints for how to add a logo for payment and shipment methods

You can add logos for your payment and shipment methods.
Adding logos to your payment or shipment methods is done in 2 steps:
  1. uploading the logo in the correct folder
  2. selecting the logo in the payment or shipment method

Uploading a logo for payment and shipment methods

The logos must be placed under the following folders:
  • images/stories/virtuemart/payment for the payment methods,
  • images/stories/virtuemart/shipment for the shipment methods,

The logos can be uploaded via the Joomla media manager:

For Joomla 1.5, go in Site on the menu bar and choose Media Manager from the list.
For joomla 2.5, go in Content, and then choose Media Manager from the list.

You will see a list of images, and folders that are already in the Media manager.
  1. Select the folder stories, and then virtuemart, and then payment or shipment folder
  2. Go in the Upload files area, and click on Browse files
  3. Select on your computer the logo
  4. Press Start upload
    The file will be transfered to the selected folder.

Selecting a logo for payment and shipment

  1. Go in VirtueMart administration
  2. Select the Shop menu
  3. Select the Shipment methods menu or Payment methods menu
  4. Select the payment or shipment method you want to add a logo
  5. Select the configuration tab
  6. In the logo parameter, all the images that are in the images/stories/virtuemart/payment for a payment method or images/stories/virtuemart/shipment for a shipment are listed. Slect the one, you want to have displayed.

Updated by Valérie Isaksen over 12 years ago · 11 revisions