Popsize Prestashop Module
Install
- Clone this repo inside your prestashop <code>/modules</code> folder
apt-get update && \
apt-get install -y git zip cd modules git clone git@github.com:popsize/popsize-prestashop.git popsize
- Install the module inside <code>Modules > Module Manager</code> in your admin panel
Dev
cd popsize
apt-get update && \ apt-get install -y python3 python3-venv python3 -m venv /opt/venv source /opt/venv/bin/activate /opt/venv/bin/pip install pre-commit
Build & deploy
cd popsize
./build.sh
This will create a <code>build/popsize.zip</code> file containing only the necessary files for distribution:
- <code>views/</code> - Template files
- <code>agpl.txt</code> - License file
- <code>index.php</code> - Security file
- <code>LICENSE</code> - License text
- <code>logo.png</code> - Module logo
- <code>popsize.php</code> - Main module file
Files can be modified to include/exclude other files as needed in the <code>build.sh</code> script.
The zip file can be uploaded directly to PrestaShop's Module Manager for installation.
OLD: Composer & pre-commit checks
# FROM THERE, BELOW BREAKS EVERYTHING IN PRESTASHOP ADMIN PANEL...
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer PATH="/root/.composer/vendor/bin:${PATH}" composer require --dev phpstan/phpstan composer require --dev prestashop/php-dev-tools composer require --dev friendsofphp/php-cs-fixer composer require --dev prestashop/header-stamp
php vendor/bin/prestashop-coding-standards cs-fixer:init
php vendor/bin/prestashop-coding-standards phpstan:init # ALREADY DONE AND MODIFIED
/opt/venv/bin/pre-commit install
Komentarze (0)
Chwilowo nie możesz polubić tej opinii
Zgłoś komentarz
Zgłoszenie wysłane
Twoje zgłoszenie nie może zostać wysłane