Developer's Guide

currencies
The various available currencies.
id_currency_cookie
ID of the current currency.
currency
Currency object (currently used currency).
cookie
User cookie.
languages
The various available languages.
logged
Indicates whether the visitor is logged to a
customer account.
page_name
Page name.
customerName
Client name (if logged in).
priceDisplay
Price display method (with or without taxes...).
roundMode
Rounding method in use.
use_taxes
Indicates whether taxes are enabled or not.
If you need to have all of the current page's Smarty variables displayed,
add the following function:
{debug}
Comments are based on asterisk:
{* This string is commented out *}
{*
This string is too!
*}
Unlike with HTML comments, commented-out Smarty code is not present
in the final output file.
Module translation
Our module's text strings are written in English, but we might want French
shop owners to use our module too. We therefore have to translate those
strings into French, both front-office and back-offices ones. This could be
a tedious task, but Smarty and PrestaShop's own translation make it far
easier.
Strings in PHP files will need to be displayed through the l() method, from
the Module.php abstract class.
mymodule.php (partial)
...
$this->displayName = $this->l( 'My module' );
$this->description = $this->l( 'Description of my module.' );
...