- Download or clone module into
modulesdirectory of your PrestaShop installation - Make sure module directory is named
pstraining cdinto module's directory and run following commands:composer dumpautoloadto generate autoloader for moduleyarn installto install Encore (see Webpack Encore to learn more about Encore)yarn encore devto compile assets for development environment- (optional)
yarn encore productionto compile assets for production use (e.g. before submitting module to Addons Marketplace or installing on live shop)
- Install module from Back Office
This module is using PHPUnit that comes with PrestaShop. To Run tests follow instructions below.
- Make sure you are inside module directory
- Run
./../../vendor/bin/phpunit