| 3.3.4. Basket Templates |
| Prev | 3.3. Modifying Templates | Next |
|---|
Basket templates control the layout of the basket.
The templates can be found in the directory
/components/com_virtuemart/themes/VM_THEME/templates/basket/.
The special about the basket is that there are four different
templates: Two for displaying the Cart content including 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
/administrator/components/com_virtuemart/html/shop.cart.php,
/html/basket.php and
/administrator/components/com_virtuemart/html/ro_basket.php
and in the
file/administrator/components/com_virtuemart/html/checkout.index.php,
except that the ro_basket_ file is
displayed on the last step of the checkout (when the cart contents
can't be modified any more - ro_basket = read only basket).
The variables which have been prefilled in
/administrator/components/com_virtuemart/html/basket.php
and
/administrator/components/com_virtuemart/html/ro_basket.php
are just printed out in the templates.