Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page

Learn how to upgrade to the latest version.

Function definition

To render a list of function definitions, use funcdef in combination with Markdown definition list:

{{% funcdef %}}

__construct($id = NULL, $id_lang = NULL)
: 
    Build object.

add($autodate = true, $nullValues = false)
: 
    Save current object to database (add or update).

{{% /funcdef %}}

Rendered result:

__construct($id = NULL, $id_lang = NULL)
Build object.
add($autodate = true, $nullValues = false)
Save current object to database (add or update).
Be aware that you need to leave at least one trailing space after each : for the markup to be correctly interpreted as a definition list.