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.
You can use this Auto-Add Product to Cart Discount Rule for any use case where extra charges need to be added per item.
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**.
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 Virtual 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.
Add your Details customization to the Virtual Products which will get added to cart automatically.
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
Configurable Products
When setting up this special Discount Rule for a Configurable Product, the attributes should NOT be added to the variations.
The attributes should be set on the Configurable Product so that the virtual item which represents the CRV or Deposit is added to cart properly.
Updated 3 months ago