Custom Product Templates: More Info Pages
Defining a more info page template for products is very similar to creating a custom page template, but a little simpler. The more info page definition (template) is part of a product template file, but it defines an entire HTML page. That page contains whatever HTML layout tags and content that you want, plus custom template tags for product information.
- Customers generally expect the product name and graphic to be hyperlinks to the more info page. You can use the [-- IF PRODUCT.DisplayMoreInformationPage --] tag to test whether a product has a more info page and then link to it with the [-- IF PRODUCT.MoreInfoURL --] tag.
- A more info page template is contained in a product template file, but it is outside the [-- DEFINE PAGE --] and [-- END_DEFINE PAGE --] tags.
- A more info page template starts with [-- DEFINE MORE_INFO_PAGE --] and ends with [-- END_DEFINE MORE_INFO_PAGE --].
- The opening <html> and closing </html> tags are inside the [-- DEFINE MORE_INFO_PAGE --] and [-- END_DEFINE MORE_INFO_PAGE --] tags.
- A more info page definition must contain a complete HTML page. You may want to use the layout that you use for your store pages.
- A product may have subproducts. You can decide whether to display subproducts on the more info page or not.
More Info Page Example
Resulting Store Page
| Resulting More Info Page
This example shows a simple product template that that defines the product name and graphic as hyperlinks of the product has a more info page. At the end of the product template is a simple more info page template.
Return To: Product Template Home Page