Installation
Requirements
- Craft CMS 5.0 or later
- Craft Commerce 5.0 or later
- PHP 8.2 or later
Install using Composer
# go to the project directory
cd /path/to/my-project
# tell Composer to load the plugin
composer require johnhenry/craft-container-deposits
# tell Craft to install the plugin
./craft plugin/install container-depositsInstall using DDEV
ddev composer require "johnhenry/craft-container-deposits:^1.0.0" -w && ddev craft plugin/install container-depositsInstall from the Plugin Store
Go to the Plugin Store in your project’s Control Panel and search for “Container Deposits”. Then press “Install”.
Post-install
- Go to Container Deposits → Deposit Types in the CP nav.
- Create the deposit tiers you need. For Re-turn Ireland that's typically:
- Small Container - €0.15 (150 ml – 500 ml)
- Large Container - €0.25 (over 500 ml – 3 L)
- Add the Container Deposit Type field to your product or variant field layout (Commerce → System Settings → Product Types).
What's next?
- Configuration - choose where the field belongs in your field layouts.
- Managing deposit types - full CRUD walkthrough.