---
title: Assigning Deposits to Products
date: 2026-06-13T16:09:00+01:00
author: John Henry Donovan
canonical_url: "https://johnhenry.ie/plugins/container-deposits/docs/guide/assigning-deposits-to-products"
section: Plugins
---
esc

↑↓ to navigate↵ to selectesc to close

Menu On this page 

- [Return to top](#)

Documentation

Documentation

# Assigning Deposits to Products

Each product (or variant) chooses **zero or one** deposit type via a custom field.

![](https://johnhenry.ie/images/plugins/docs/container-deposits/variant-list.png)## 1. Add the field to your field layout

1. **Commerce → System Settings → Product Types → \[Your type\]**.
2. On the **Variants** (or **Product**) tab, drag **Container Deposit Type** into the layout.
3. Save.

![](https://johnhenry.ie/images/plugins/docs/container-deposits/container-deposit-type.png)## 2. Pick the deposit on each SKU

On each product/variant edit page, the new field shows up as a dropdown listing every deposit type with its amount.

![](https://johnhenry.ie/images/plugins/docs/container-deposits/variant-details.png)Pick the tier that fits (e.g. *Small Container - €0.15* for a 330 ml can) and save.

## 3. That's it

There's nothing to do on the front end. As soon as a shopper adds the product to their cart:

- The product's normal line item is added.
- A deposit line item appears alongside it with the deposit amount × quantity.
- Future quantity changes keep the deposit in sync.

Tip Multiple products that share the **same** deposit type collapse into a single deposit line item with summed quantity. A cart with 2× 330 ml can + 3× 500 ml can produces one *Small Container* deposit line item with quantity 5.

## Removing a deposit

Set the field back to **- None -** and save to remove the deposit assignment. The deposit line item drops out on the next cart recalculation.

On this page
