- Download or clone module into
modules
directory of your PrestaShop installation - Make sure module directory is named
pstraining
cd
into module's directory and run following commands:composer dumpautoload
to generate autoloader for moduleyarn install
to install Encore (see Webpack Encore to learn more about Encore)yarn encore dev
to compile assets for development environment- (optional)
yarn encore production
to 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