The centerboxes for featured, what's-new and specials etc, as well as subcategory listings, etc are all tableless grids.
These are build by populating an array called $list_box_contents[$row][$col] with the appropriate information to go in each row/col, and then the output is displayed via the tableless-generator: tpl_columnar_display.php
Or, if a table-based grid is desired, you use the table-generator instead: tpl_tabular_display.php
example:
/includes/templates/YOURTEMPLATE/templates/tpl_modules_whats_new.php
This file begins display of the "new products for this month" centerbox.
It calls this file to build the output:
/includes/modules/new_products.php
This file builds the $list_box_contents array using some SQL queries and some PHP loops.
Control returns to the template, which in turn calls the
/includes/templates/YOURTEMPLATE/common/tpl_columnar_display.php
This file take the $list_box_contents array and loops through it to produce the columnar output without using tables.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.