Post by JNeuhoff » Thu Oct 30, 2008 12:47 am

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.

Attachments

???
screenshot2.png
???
screenshot1.png

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by hm2k » Thu Oct 30, 2008 5:53 am

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.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Qphoria » Thu Oct 30, 2008 6:18 am

Negative. I attempted to fixed "Coupon" discounts. Not "multiple quantity" discounts.

but I will look into this anyway.  ;)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by hm2k » Thu Oct 30, 2008 7:05 am

Ah my mistake, I thought it was all intertwined, it's pretty complex all the same. Qphoria is the man for this job.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Qphoria » Thu Oct 30, 2008 10:38 pm

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?
Last edited by Qphoria on Thu Oct 30, 2008 10:40 pm, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jty » Thu Oct 30, 2008 11:00 pm

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  :D

My 2cents worth

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by bruce » Thu Oct 30, 2008 11:16 pm

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.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by Qphoria » Thu Oct 30, 2008 11:37 pm

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"?
Last edited by Qphoria on Fri Oct 31, 2008 12:05 am, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by JNeuhoff » Fri Oct 31, 2008 7:53 pm

Code: Select all

Ok then...
No bug? All say "AYE"?
Ok, ok, ...

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


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by hm2k » Tue Nov 04, 2008 10:11 pm

I will assume I can now lock this as no bug?

If not, msg me to unlock it.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK
Who is online

Users browsing this forum: No registered users and 1 guest