adam2020:
I have a problem where the wholsale customer is charged the retail amount when quantity discounts are reached.
I'm testing with ZC V1.3.9h and Dual Pricing V1-7b
Example:
Product is Retail: $29.40, Wholesale: $23.00
Quantity discounts are 4 or more = $24.50
If wholesale customer orders 1 - 3 price is $23.00 each which is correct
If wholesale customer orders 4 or more price is $24.50 each which is inccorrect
Problem is Whoelsale customer will need to order 10 or more of each product which is possible to implement but only if I can overcome this problem.
To test please see this product with a wholesale price
http://shop.adventure11.com/index.php?main_page=product_info&cPath=111_70&products_id=201
Then login with...
[email protected]
test123
I will be very thankful if anyone can help me with this problem.
I had the same issue. I think the problem lies in includes/functions/functions_prices.php.
You can add a check to see if wholesaler status is true, and then call either 'discount_price' or 'discount_price_w' accordingly. AS I use 'actual price' quantity discount, I have applied this check to that part of the code only. You would have to change the code for the appropriate discount type you are using.
I havn't fully tested this fix, but it is displaying the correct price in the shopping cart so far.
I also noticed that there seems to be conditional code for each of the discount methods that do exactly the same thing whether the condition is true or false: e.g:
if ($products_query->fields['products_discount_type_from'] == '0') {
$discounted_price = $products_discounts_query->fields['discount_price'];
} else {
$discounted_price = $products_discounts_query->fields['discount_price'];
}
Maybe one of those 'discount_price' references is supposed to read 'discount_price_w'.