VirtueMart - 1.0 Guia do Utilizador Página 12

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 19
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 11
jos_users contains BillTo Address Information
jos_vm_user_info contains ShipTo Address Information (when the customer has added ShipTo Ad-
dresses)
jos_vm_order_user_info contains a copy of the BillTo (&ShipTo) Address at the moment when an
order is placed
4. Modifying the Layout
The most important part of the Layout of your Shop is the Joomla template (Joomlahut.com
[http://mambohut.com/] is a good start)!
4.1. Finding the right File
When you want to modify a part of your Shop (that can't be changed in its layout using the Joomla template's
CSS), you must of course know, which file you have to modify, to create the layout you want.
To quickly find the file, which produces the HTML output you're seeing, you can enable the DEBUG mode
("Admin" => "Configuration" => "Path & URL" => check "DEBUG?" and save.
After having done that, you will see blue info icons all over the Shop, which show the file name of the included
file on mouseover.
The most changed files are
.../html/shop.browse (the product listing / category overview)
.../html/shop.product_details.php (the product detail page / view)
.../html/shop.index.php (the default Shop Homepage (when the parameter page is omitted))
4.2. Modifying Templates
VM doesn't use a template engine (like patTemplate or Smarty) to parse its templates.
4.2.1. Flypage Templates
Flypage (or product details) templates can be found in /html/templates/product_details/.
They are loaded and filled with content in the file /html/shop.product_details.php.
The concept is to define placeholders in the template and replaced them by the real contents on load. This is
done using the PHP function str_replace.
The following placeholders are used:
./.
4.2.2. Browse Templates
Browse templates define the display of a single product in the product listing. So you can only modify the con-
tents of the boxes, which are filled with product information in the product listing of a category. The number of
those "boxes" - which are displayed in a single row of the product listing - can be changed in the Category Form
of that category (see Number of Products per row) or globally in the Shop Configuration (for the case that no
category_id is passed to the Shop).
VirtueMart Developer Manual
12
Vista de página 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 18 19

Comentários a estes Manuais

Sem comentários