Synchronize stocks, prices, products feed and orders from or to marketplace available on ShoppingFeed
This addons is not avalable on PrestaShop Addons. This Git repository is for developpers only. Please contact ShoppingFeed customer service to get
PrestaShop version | Module version | Repo | Doc | PHP Version |
---|---|---|---|---|
1.6.x | 1.x | [master] | techincal documentation | 5.6 or greater |
1.7.x | 1.x | [master] | techincal documentation | 7.1 or greater |
PHP version (check Module version guide)
To install module on PrestaShop, download zip package supply by ShoppingFeed customer service or the zip file named v1.x.x-prod-shoppingfeed.zip attached on each detail release page.
If you are a developper, this module contain composer.json.dist file. If you clone or download the module from github
repository, run the composer install
is not necessary. You can see why on module documentation on "Guzzle trouble".
See the composer documentation to learn more about the composer.json file.
For development
We use Webpack to compile our javascript and scss files. In order to compile those files, you must :
npm install
in the root folder to install dependenciesnpm run watch
to compile assets and watch for file changesFor production
Run npm run build
to compile for production.
Files are minified, console.log
and comments dropped.
PrestaShop modules are open-source extensions to the PrestaShop e-commerce solution. Everyone is welcome and even encouraged to contribute with their own improvements.
Contributors must follow the following rules:
Contributors wishing to edit a module's files should follow the following process:
/modules/shoppingfeed
directory of your PrestaShop installation.That's it: you have contributed to this open-source project! Congratulations!
Please launch these command line before submitting a Pull Request.
~modules/shoppingfeed$ vendor/bin/php-cs-fixer --fix
You need a docker container to launch phpstan
# create the prestashop container
~modules/shoppingfeed$ docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop
# launch phpstan
~modules/shoppingfeed$ docker run --rm --volumes-from temp-ps -v $PWD:/var/www/html/modules/shoppingfeed -e _PS_ROOT_DIR_=/var/www/html --workdir=/var/www/html/modules/shoppingfeed phpstan/phpstan:0.12 analyse --configuration=/var/www/html/modules/shoppingfeed/202/phpstan/phpstan.neon
You need a docker container to launch phpunit
docker run -tid --rm -v $PWD:/var/www/html/modules/shoppingfeed --name temp-unittest-ps 202ecommerce/prestashop:1.7.8.3
docker exec -t temp-unittest-ps sh /var/www/html/modules/shoppingfeed/202/docker/run_for_unittest.sh