...
- Do not mix XHTML and PHP code.
- Do not mix XHTML and CSS code, put the CSS code in a separate
.css
file. - Always validate your XHTML and CSS code using the W3C validators: XHTML validator, CSS validator.
- Do not make SQL queries from a PHP controller ({{.php file at the root of PrestaShop); prefer the use of existing methods from the PrestaShop classes, or create new methods for these classes.
- Always check if a method you need does not already exist in the available classes.
- Always make sure to produce a clear and readable code, making it easy to maintain for anyone.
- Do comment your code, in English.
- When editing the theme on a production site, always first put the shop in maintenance mode via the back-office.
- Use modern browsers, such as Firefox, Google Chrome or Opera, and make sure your friends do too.
- Whenever possible, use CSS sprites (follow-up article).
- If you wish to thank PrestaShop team for its hard work, please consider donating, or spread the good word!
Customizing the default theme
...