Bottle and Can Deposit/CRV: Auto-Add Product to Cart (Matching QTY)
Use this Discount Rule for Bottle and Can Deposits (CRV). The auto-add product will match the quantity of the main product added to the cart.
Step 1: Create a Virtual product for your Deposit or CRV.
The auto-add Deposit or CRV should be a virtual product so that it is not subject to shipping. It does not need to be visible in your store (1. Not Visible Individually), nor does it need to be assigned a category or have inventory tracked.
Step 2: Create Product Attributes
In Products > Attributes, you will need to set up two custom attributes used for this auto-add product rule. These attributes will be added to any product that needs an automatically-added sku, when added to the cart.
Attribute 1: Create a Text type attribute called Auto Add Deposit SKU
or a similar name. Check the box next to **Can Be Used for Building Promotions > Discount Rules and Sales**.
Attribute 2: Create a Yes/No type attribute called Add Can Deposit
or a similar name. Check the box next to **Can Be Used for Building Promotions > Discount Rules and Sales**.
![](https://files.readme.io/e7b65fc-Screenshot_9.jpg)
Step 3: Add Custom Attributes to Products
In Products > Product Edit > Custom Attributes > Add Attribute
- Select the Auto Add Deposit SKU attribute and enter the SKU of the Deposit/CRV product as the value. *SKU is case sensitive.
- Add another attribute, select the Add Can Deposit attribute, and set it to Yes as the value.
Optional Step: Add a Customization to Products
Create a Customization, Text Type, to add details on the Order. It is used to add a message to the automatically added item which can indicate which product triggered it to be added.
Title can be something like "Deposit Details", Type = Text, and How to Charge = Per Item.
![](https://files.readme.io/5540068-Screenshot_12.jpg)
Step 4: Create the Auto-Add Product Rule
In Promotions > Discount Rules > Create a Discount Rule, enter the Coupon Name (CRV or Can Deposit for example), set Status to Active, and Select All Customer Groups.
Go to the Actions tab
- Apply, select Automatically Add Product To cart (Matching Qty).
- Matching Attribute for SKU, select the attribute you created to Auto Add Deposit SKU.
- Customization Title (OPTIONAL): If you created a Customization on your products, enter the Customization Title here:
Deposit Details
. - Customization Message(OPTIONAL): If you created a Customization on your products, enter the message to print on the line of the Automatically added products. `This deposit is linked to the QTY for SKU: {{sku}} || Name: {{name}}
- Apply the rule only to cart items matching the following conditions (leave blank for all items) > If ALL of these conditions are TRUE :
Add Can Deposit
is (singular) Yes
![](https://files.readme.io/48deb77-Screenshot_11.jpg)
![](https://files.readme.io/13ab3bf-Screenshot_13.jpg)
Updated about 2 months ago