-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
PrestaShop Module Development
By :
There are some interesting features available with each module. We won't use it in our module, but it is still something interesting to know.
You just have to set the ps_versions_compliancy variable in your constructor with PrestaShop's minimum (and maximum) version needed to make the module work:
$this->ps_versions_compliancy = array('min' => '1.5.2', 'max' => '1.6.0.7');The previous line means that your module works with PrestaShop 1.5.2 and further versions until PrestaShop 1.6.0.7.
If you try to install a module that contains the previous line on PrestaShop 1.5.1, your module won't install and an error message will be displayed.
You just have to set the dependencies variable in your constructor with an array of the modules needed to be installed before the current module:
$this->dependencies = array('paypal', 'blockcart&apos...
Change the font size
Change margin width
Change background colour