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

charlie-s’s picture

UPDATE!

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.

jantoine’s picture

Status: Active » Closed (duplicate)

Charlie1234,

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