opencart-patches / html-emails
Opencart Patch HTML Emails
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 0
Type:opencart-extension
Requires
Requires (Dev)
- consolidation/robo: ~1
- henrikbjorn/lurker: ^1.2
- lmc/steward: ^2.2
- opencart/opencart: 2.3.0.2
- vlucas/phpdotenv: ~1.1.0
README
Handle all Emails (+Html Emails) from a central place
Progress:
- new customer account
- customer password forgotten
- new order
- contact
- ebay order
- amazon login
- review
- affiliate mails
- voucher
- ...
Install on Opencart
composer require opencart-patches/html-emails
Development Setup
- Clone the git repository
- Copy the
.env.sample
file to.env
and set the configuration parameters respectively - Run
bin/robo opencart:setup
and afterwardsbin/robo opencart:run
on command line (bin/robo opencart:run &
to run in background) - To install all node dependencies run:
npm install
- Run
bin/robo project:deploy
to compile mail templates and mirror src/ into www/ - Open
http://localhost:8000
in your browser
Testing
- Install Mailcatcher (https://mailcatcher.me/) and run the service locally
- Configure Opencart SMTP settings accordingly
- Mail Protocol: SMTP
- SMTP Hostname: 127.0.0.1
- SMTP Port: 1025
- no username/password required
- Trigger a mail event manually (e.g. registering a customer) and check mailcatcher on http://127.0.0.1:1080
Robo Commands
bin/robo opencart:setup
: Install OpenCart with configuration set in.env
filebin/robo opencart:run
: Run OpenCart on a php build-in web server on port 8000bin/robo project:deploy
: Mirror contents of the src folder to the OpenCart test environmentbin/robo project:watch
: Redeploy after changes inside the src/ folder or the composer.json filebin/robo project:package
: Package abuild.ocmod.zip
inside the target/ folder