Skip to content

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-deposits

Install using DDEV

ddev composer require "johnhenry/craft-container-deposits:^1.0.0" -w && ddev craft plugin/install container-deposits

Install 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

  1. Go to Container Deposits → Deposit Types in the CP nav.
  2. 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)
  3. Add the Container Deposit Type field to your product or variant field layout (Commerce → System Settings → Product Types).

What's next?