Is this a bug, or just a wrong understanding on my part?
I have a product priced at £10.00, with a discount of £10.00 for an order quantity of 2.
Now, if the customer orders a quantity of 4 of this product, I'd expect to see a discount
of £20.00, with a remaining subtotal of £20.00. Instead it always shows the totals as zero.
See attached screenshots.
I have a product priced at £10.00, with a discount of £10.00 for an order quantity of 2.
Now, if the customer orders a quantity of 4 of this product, I'd expect to see a discount
of £20.00, with a remaining subtotal of £20.00. Instead it always shows the totals as zero.
See attached screenshots.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Hmm, this is Qphoria's department, he attempted to fix an issue with the discount, I guess it still remains.
I'll let him investigate this issue further.
I'll let him investigate this issue further.
Ah my mistake, I thought it was all intertwined, it's pretty complex all the same. Qphoria is the man for this job.
Ok..
The calculation is:
'total' = (($product['price'] + $option_price) - $discount) * $quantity,
I have a product that costs $10
I have a discount of $10 at 2
So:
If I buy 1 it's $10
If I buy 2 it's ($10 - $10) * 2 = $0
If I buy 4 it's ($10 - $10) * 4 = $0
So ultimately everything past that would be $0
But I think JN is right....
Shouldn't it be ($10 *2) - $10 = $10 ?
Because it seems that if I am buying 2 items that cost $10, it would be $20 worth of merchandise. If the discount was for $10 off the purchase of 2, then I would think it would need to count the 2 first before discounting, thus $20 - $10 = $10
There for making the equation:
'total' = (($product['price'] + $option_price) * $quantity) - $discount,
thoughts?
The calculation is:
'total' = (($product['price'] + $option_price) - $discount) * $quantity,
I have a product that costs $10
I have a discount of $10 at 2
So:
If I buy 1 it's $10
If I buy 2 it's ($10 - $10) * 2 = $0
If I buy 4 it's ($10 - $10) * 4 = $0
So ultimately everything past that would be $0
But I think JN is right....
Shouldn't it be ($10 *2) - $10 = $10 ?
Because it seems that if I am buying 2 items that cost $10, it would be $20 worth of merchandise. If the discount was for $10 off the purchase of 2, then I would think it would need to count the 2 first before discounting, thus $20 - $10 = $10
There for making the equation:
'total' = (($product['price'] + $option_price) * $quantity) - $discount,
thoughts?
Last edited by Qphoria on Thu Oct 30, 2008 10:40 pm, edited 1 time in total.
I went to my French Carte install and they are doing what Open Cart is doing now ie
Product = $10
Discount = $10 for 2+ units
Result is $0.00 for 2 or more units.
Thinking about it as a shop owner, I say Open Cart is correct as it is now because it is discount per unit
So, the product should be configured as $5.00 discount per unit (not $10)
If they want to show it the other way, they can use Options or someone can write the "bundles" module
My 2cents worth
Product = $10
Discount = $10 for 2+ units
Result is $0.00 for 2 or more units.
Thinking about it as a shop owner, I say Open Cart is correct as it is now because it is discount per unit
So, the product should be configured as $5.00 discount per unit (not $10)
If they want to show it the other way, they can use Options or someone can write the "bundles" module

My 2cents worth
It has always been this way.
The discount for quantity break points is applied to the item price.
Hence at 2 items (per juergen's example) the discount is -10 on each item. Since each item price was only 10, the result is zero.
Once you know how it works, it is not a bug. It is just a little unintuitive.
The discount for quantity break points is applied to the item price.
Hence at 2 items (per juergen's example) the discount is -10 on each item. Since each item price was only 10, the result is zero.
Once you know how it works, it is not a bug. It is just a little unintuitive.
Yea, I guess a "coupon" would be used for my example.
Buy 1 get 1 free
And if the "French" do it that way.... it MUST be correct
Ok then...
No bug? All say "AYE"?
Buy 1 get 1 free
And if the "French" do it that way.... it MUST be correct

Ok then...
No bug? All say "AYE"?
Last edited by Qphoria on Fri Oct 31, 2008 12:05 am, edited 1 time in total.
Code: Select all
Ok then...
No bug? All say "AYE"?
But I'll be back ... there will be more bugs elsewhere ...

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Who is online
Users browsing this forum: No registered users and 1 guest