O'Reilly logo

PrestaShop Module Development by Fabien Serny

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Checking compatibilities and dependencies

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.

The compatibility check

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.

The dependency check

You just have to set the dependencies ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required