Closed (duplicate)
Project:
UC Discount Framework
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2010 at 16:42 UTC
Updated:
1 May 2010 at 22:45 UTC
These are the conditional action settings:
Condition: Check an order's number of products
Product count value: 12
Total is greater than or equal to specified value.
Action: Apply a discount
Multiply, -.30%
Discount type: Order total
If I add 12 of 1 product into my cart, I receive 1 30% discount. However, if I add 8 of product a and 4 of product b, I receive 2 30% discounts. Perhaps this is simply configured wrong, but I don't see many options what I could be missing. Any ideas?
Comments
Comment #1
charlie-s commentedUPDATE!
I had previously set the trigger to "Calculate product discounts on the order". Changing this to "Calculate order discounts" correctly checks the quantities only once per order, as opposed to once per product.
However, for this trigger to even work, the module has to be adjusted (one might say patched). Change line 757 of uc_discount.module from
if ($predicate['#actions'][$i]['#name'] == 'uc_discount_action_get_order_discount' && $discount) {to
if ($discount) {Thanks to supersport for figuring out the module problem.
Comment #2
jantoine commentedCharlie1234,
This sounds like a duplicate of #744320: Applying an Order Discount. A patch provided in that issue. Would be great if you could test it out. Marking as duplicate.
Cheers,
Antoine