VirtueMart - 1.0 Guide de l'utilisateur Page 13

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 19
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 12
Browse (or product listing) templates can be found in /html/templates/browse/.
They are loaded and filled with content in the file /html/shop.browse.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.3. Order Confirmation Email Templates
Order Confirmaton Email Templates define the layout of the confirmation email that is sent out to a user after
having placed an order.
These Email templates can be found in /html/templates/order_emails/.
They are loaded and filled with content in the file /classes/ps_checkout.php, function
email_receipt().
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.4. Basket Templates
Basket templates control the layout of the basket.
The templates can be found in the directory /html/templates/basket/.
The special about the basket is that there are four different templates: Two for displaying the Cart content in-
cluding Tax (basket_b2c.html.php and ro_basket_b2c.html.php) and two for displaying the Cart
content without tax (adding it afterwards) - basket_b2b.html.php and ro_basket_b2b.html.php.
b2c = Business to Customer (prices include tax)
b2b = Business to Business (prices don't include tax)
The basket_ files are included in /html/shop.cart.php, /html/basket.php & /
html/ro_basket.php and in the /html/checkout.index.php except that the ro_basket_ file is dis-
played on the last step of the checkout (when the cart contents can't be modified any more - ro_basket = read
only basket).
The concept in the basket templates is another one than in the other template files, because loops are used. So
we have a minimum number of PHP statements, which can be easily understood by designers without much
PHP knowledge.
The variables which have been prefilled in /html/basket.php and /html/ro_basket.php are just
printed out in the templates.
5. Creating or modifying Extensions
Besides core modules, you can also add shipping and payment modules into VM. The concept of both - shipping
and payment modules is to provide an API with a defined specification (similar to an interface), where the mod-
ules can plug themselves in. The modules implement the required functions and thus can communicate with the
Shop and give their services.
VirtueMart Developer Manual
13
Vue de la page 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 19

Commentaires sur ces manuels

Pas de commentaire