Configuration of Cart Based Discount for WooCommerce
Creating Multiple Cart Based Discount Rules
Navigate to WooCommerce > Discount Cart to create multiple rules for applying discounts to the shopping cart.
Adding a New Rule
In the Discount Cart interface, locate and click on “Add New Discount Cart Rule”. Follow these steps to configure a new discount rule:
Add Title: Enter a unique title for the discount rule.
Product Restrictions:
Select Discount: Choose whether the discount applies to the entire cart or specific products.
- Product Discount: Apply the discount to individual products.
- Entire Cart Discount: Apply the discount to the entire shopping cart.
Select Products Method: Choose whether the discount applies to all products or specific products.
- All Products: Apply the discount to all items in the cart.
- Specific Products: Specify which products the discount applies to.
If you choose “Specific Products,” select the products to which the discount applies.
Optionally, you can filter products by categories or tags.
Discount Settings:
Discount Based On: Choose to apply discounts based on either the amount range or quantity range of the products in the shopping cart.
- Amount Range: Discounts are applied based on the total amount spent by the customer.
- Quantity Range: Discounts are applied based on the total quantity of products in the cart.
Discount Applied For: Specify whether the discount applies to the product price or the product subtotal.
- Product Price: Discounts are applied directly to the price of individual products.
- Product Subtotal: Discounts are applied to the total cost of all products in the cart.
Adding Discounts for User Roles:
To customize discounts for specific user roles, follow these steps:
Click on the “Add” button.
Select the user role from the dropdown menu.
Choose the adjustment type:
- Fixed Discount: Specify a fixed amount to be deducted from the price.
- Percentage: Specify a percentage discount to be applied.
Set the minimum and maximum discount values:
- Minimum: Specify the minimum discount amount allowed.
- Maximum: Specify the maximum discount amount allowed.
Enter the value of the discount.
Note:
If the discount value exceeds the subtotal (total cost) of the products in the cart, the rule will not be applied. Ensure that the discount value is within the subtotal to activate the rule successfully.
Message Restrictions:
Display Message: Enable this checkbox to display a message when a discount is applied.
Custom Messages: You can enter custom messages to be displayed in different scenarios:
1. Display Success Message on Discount Applied: This message is shown when a discount is successfully applied.
Use the placeholders {discount_amount} and {prod_name} to dynamically insert the discount amount and product name into the message.
2. Display Notice Before Discount Applied: This message is displayed before a discount is applied, providing information about the discount criteria.
Use the placeholders {required_amount}, {required_quantity}, {discount_amount}, and {prod_name} to dynamically insert values into the message.
{required_amount}: The amount required to qualify for the discount.
{required_quantity}: The quantity of products required to qualify for the discount.
{discount_amount}: The amount of the discount.
{prod_name}: The name of the product to which the discount applies.
Date Restrictions:
Add Date: Choose the start and end dates for the discount rule.
If left empty, there will be no limit on the duration of the rule, and it will remain active indefinitely.
Managing Rules in a Log
After creating rules, you can manage and modify them using the Discount Cart plugin’s interface. The plugin provides a log where you can view and edit existing rules.
Enabling/Disabling Coupons With Cart Discount
Go to WooCommerce > Settings > Discount Cart.
Discount Settings:
Disable Coupons: Enable this checkbox to automatically disable coupons when a cart discount is applied. This prevents users from stacking additional discounts through coupon codes.
Additionally, you can enter a custom message to inform users about the disabled coupons.
Disable for B2B: Enable this checkbox to remove cart discounts if product-level discounts are applied using the Addify B2B or Addify Role Base Pricing plugins.
This feature ensures that B2B customers or users with specific roles do not receive double discounts, maintaining pricing consistency.
