Fix for product class/type discounts with varying price per item within the class/type.

Project:Discounts
Component:Code
Category:
Priority:critical
Assigned:beejaysea@drupal.org
Status:patch (needs review)
Description
Project: 
Discounts

Before:

If you had two products in a class with different prices, e.g., 3.75, and 2.75, and applied a discount to 'n' items of that class, this code would calculate the discount on the price of the last item in the cart.

So, if I added 3 @ 3.75, and 3 @ 2.75, and had a 10% discount of 6, I would get a discount of 10% off of (6 * 2.75), not the proper discount.

This patch fixes that issue.

PreviewAttachmentSize
uc_discounts_product_class.module_fix_multiple_prices.diff1.89 KB
psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: Fix for product class/type discounts with varying price per

This issue has been moved to http://drupal.org/node/323875