Skip to content

camaloon/prestashop-plugin

Repository files navigation

Camaloon Print on Demand

Development environment

Setup

  • copy the .env.example to .env
  • add a file composer.json and add this content: { "name": "name/prestashop-plugin", "description": "", "authors": [ { "name": "name/prestashop-plugin", "email": "email" } ], "require": { "php": ">=5.6.0" }, "autoload": { "psr-4": { "\": "src/" }, "classmap": [ "camaloon.php" ], "exclude-from-classmap": [] }, "config": { "preferred-install": "dist", "prepend-autoloader": false }, "type": "prestashop-module", "author": "name", "license": "Camaloon" }

Replace name by your name and email by your email.

  • run composer dump-autoload (you should see Generated autoload files)
  • run docker-compose up
  • go to admin part, by defult (http://localhost:8083/adminPS)
  • login to admin part (default credentials [email protected] / prestashop_demo)
  • go to: Modules > Module Catalog
  • search for Camaloon module and activate it

Notes

Dev environment is powered by Docker, based on official images: https://hub.docker.com/r/prestashop/prestashop/ Important thing is .env file to setup project, you can check all things that can be altered on Docker Hub.

Installation for remote server

  • login to admin part ( [prestashop_domain]/adminPS )
  • go to: Modules > Module Manager
  • upload Module

Notes

  • the archive should have folder plugin on top level
  • the folder name should match plugin name
  • we cannot put plugin files to the top level

Create a release

  1. Add changes to ./CHANGELOG.md.
  2. Change the version in ./config.xml.
  3. Push to upstream: git add . && git commit -m "commit message" && git push.
  4. Create PR and merge to master

A github action will create the artifact and the release