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

Valérie Isaksen, 07/29/2012 03:44 PM

1 1 Max Milbers
h1. Hints for the use of the template system
2 1 Max Milbers
3 2 Francesco Abeni
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.
4 1 Max Milbers
5 1 Max Milbers
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.
6 1 Max Milbers
7 3 Max Milbers
The joomla template system is described here:
8 1 Max Milbers
9 6 Max Milbers
10 5 Max Milbers
11 4 Max Milbers
12 6 Max Milbers
13 3 Max Milbers
14 7 Valérie Isaksen
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.
15 1 Max Milbers
16 2 Francesco Abeni
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.
17 1 Max Milbers
18 1 Max Milbers
So you can use a lot different templates, but the layouts must be stored in the template which is the default of joomla.
19 8 Valérie Isaksen
20 10 Valérie Isaksen
h1. Hints for how to add a logo for payment and shipment methods
21 9 Valérie Isaksen
22 8 Valérie Isaksen
You can add logos for your payment and shipment methods.
23 8 Valérie Isaksen
Adding logos to your payment or shipment methods is done in 2 steps:
24 8 Valérie Isaksen
# uploading the logo in the correct folder
25 8 Valérie Isaksen
#  selecting the logo in the payment or shipment method
26 8 Valérie Isaksen
27 11 Valérie Isaksen
h2. Uploading a logo for payment and shipment methods
28 9 Valérie Isaksen
29 8 Valérie Isaksen
The logos must be placed under the following folders:
30 8 Valérie Isaksen
* *images/stories/virtuemart/payment* for the payment methods,
31 11 Valérie Isaksen
* *images/stories/virtuemart/shipment* for the shipment methods,
32 8 Valérie Isaksen
33 8 Valérie Isaksen
The logos can be uploaded via the Joomla media manager:
34 8 Valérie Isaksen
35 11 Valérie Isaksen
For Joomla 1.5, go in *Site* on the menu bar and choose *Media Manager* from the list.
36 11 Valérie Isaksen
For joomla 2.5, go in *Content*, and then choose  *Media Manager* from the list.
37 8 Valérie Isaksen
38 8 Valérie Isaksen
You will see a list of images, and folders that are already in the Media manager.
39 8 Valérie Isaksen
# Select the folder *stories*, and then *virtuemart*, and then *payment* or *shipment* folder
40 8 Valérie Isaksen
# Go in the *Upload files* area, and click on *Browse files*
41 8 Valérie Isaksen
# Select on your computer the logo
42 8 Valérie Isaksen
# Press *Start upload*
43 8 Valérie Isaksen
The file will be transfered to the selected folder.
44 8 Valérie Isaksen
45 8 Valérie Isaksen
h2. Selecting a logo for payment and shipment
46 1 Max Milbers
47 10 Valérie Isaksen
# Go in VirtueMart administration
48 10 Valérie Isaksen
# Select the *Shop* menu
49 10 Valérie Isaksen
# Select the *Shipment methods* menu or *Payment methods* menu
50 10 Valérie Isaksen
# Select the payment or shipment method you want to add a logo
51 10 Valérie Isaksen
# Select the *configuration* tab
52 10 Valérie Isaksen
# 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.