The navigation section is controlled by the template browse_orderbyform.tpl.php
. There are two major elements in the navigation: the page navigation list and the sort order form, each of them has its own template. Both navigation templates are found in the includes
subdirectory of the templates/browse
directory.
The page navigation list is controlled by the template browse_pagenav.tpl.php
. There are three subelements in the template: navigation links (including page number, previous, and next links), the limit drop-down box (to control the number of products per page), and the page counter (showing the current product numbers on the page). Actually, VirtueMart will pass a pageNavigation.class
object to the template to show these three subelements.
The sort order form is controlled by the template browse_orderbyfields.tpl.php
. This template will list out the order by selection with a drop-down box. The options available in the drop-down box are controlled by the VirtueMart...