
The various available currencies.
ID of the current currency.
Currency object (currently used currency).
The various available languages.
Indicates whether the visitor is logged to a
customer account.
Client name (if logged in).
Price display method (with or without 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.' );
...
Comentarios a estos manuales