There are several options for adapting the design of the OXID eShop. They are explained in this article.

 

This article explains what templates are, what content they have and where to find the templates.

 

Smarty is a language especially designed for templates. Smarty is used for filling placeholders in templates with data and for program structures in templates. In this article, the most important Smarty commands are explained.

 

Some settings in eShop Admin influence the design. The most important settings are described here.

 

You can set for each product and category that its output is rendered with a different template.

 

This part of documentation is intended for HTML designers who wish to customize OXID e-shop appearance to their needs. OXID e-shop utilizes Smarty template engine which is responsible for displaying the actual screens of the application.

 

CMS pages can be easily included in templates: Each CMS page has an identifier. With this identifier, the CMS page can be shown in a template: The function [{oxcontent ident=""}] is used for doing so. In ident="" the identifier of the CMS page is entered.

 

OXID extended Smarty with extra functionality. In this article, all extra functions used in templates are described. Exact definitions of the function can be found in the functions source code. The accordant files are stored in /core/smarty/plugins/.

 

When adapting templates it is sensible not to edit the original templates but a copy of them. By doing so, you can always switch back to the original templates, e.g. for testing new functionality after updates.

 

For displaying product lists in the main area of the eShop, the template inc/product.tpl is used. The parameter size="" controls how large the product boxes are.