Hooks in PrestaShop is the most important component for inserting modules into your theme. In this article, I will try to talk about all the pitfalls that can be encountered while using this important and interesting functionality.
Prestаshоp tools can be defined as a set of third-party PHP libraries embedded in the system which APIs are used in Prestashop kernel. These libraries can also be used when creating your own custom modules. All these tools are located in the tools folder in Prestashop root.
|fpdf||http://www.fpdf.org/||FPDF is a PHP class which allows generating PDF files with pure PHP, that is to say without using the PDFlib library.|
|geoip||http://php.net/manual/en/book.geoip.php||The GeoIP extension allows you to find the location of an IP address. City, State, Country, Longitude, Latitude, and other information as all, such as ISP and connection type can be obtained with the help of GeoIP.|
|Jsоn||http://pear.php.net/pepr/pepr-proposal-show.php?id=198||This class is used to work with JSON|
|mobile_Detect||http://mobiledetect.net/||Mobile Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.|
|parser_sql||https://code.google.com/p/php-sql-parser/||The parsed representation returned by php-sql-parser is an associative array of important SQL sections and the information about the clauses in each of those sections|
|pclzip||http://www.phpconcept.net/pclzip/||PclZip library offers compression and extraction functions for Zip formatted archives (WinZip, PKZIP).|
|PEAR||http://pear.php.net/package/PEAR||PEAR class and PEAR_Error class|
|pear_xml_parser||http://pear.php.net/package/XML_Feed_Parser/||Key gateway class for XML_Feed_Parser package|
|smarty||http://www.smarty.net/||Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. This implies that PHP code is application logic, and is separated from the presentation.|
|swift||http://swiftmailer.org/||Swift Mailer integrates into any web app written in PHP 5, offering a flexible and elegant object-oriented approach to sending emails with a multitude of features.|
|taasc||http://www.analysisandsolutions.com/software/addr/addr.htm||Address Standardization Solution|
|tar||http://pear.php.net/package/Archive_Tar/||This class provides handling of tar files in PHP.
It supports creating, listing, extracting and adding to tar files.
Gzip support is available if PHP has the zlib extension built-in or
loaded. Bz2 compression is also supported with the bz2 extension loaded.
|tcpdf||http://www.tcpdf.org/||TCPDF is a FLOSS PHP class for generating PDF documents.|