Zen-Cart V1.3.9h Dual Pricing Addon,
[login to view URL]
Upgrade the Dual Pricing Addon
1. Minimum Quantity for Wholesale Customer
2. Fix Quantity Discounts Bug
#1. Minimum Quantity For Wholesale Customer
Need to provide a minimum quantity for Wholesale Level 1 and Wholesale Level 2 for each product. Set by Admin on [login to view URL]
For example:
Wholesale level 1 minimum quantity = X
Wholesale level 2 minimum quantity = Y
Field is displayed on product info page on customer side.
Example
if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] == '1')
{
echo 'X';
}
else if ($_SESSION['customer_whole'] && $_SESSION['customer_whole'] == '2')
{
echo 'Y';
}
If the minimum is not reached when adding to cart then error message displayed...
You have not reached the minimum quantity of (X or Y)
NOTE: The customer is able to mix attributes...
Product Qty Min/Unit Mix: Yes
-
#2. Fix Quantity Discounts Bug
The current problem is Quantity Discounts affects the wholesale pricing.
Example Scenario:
Retail: $45.00 with Quantity Discounts 4+ $40.00
Wholesale Level 1: $28.00
Wholesale Level 2: $22.50
If a wholesale customer orders less than 4 the correct amount is charged ($28.00 or $22.50) but if the wholesale customer orders 4 or more incorrect amount is charged ($40.00).
The wholesale amount is not to be changed due to quantity discounts.