Hi,

I think this is a problem where a coupon is used that is larger that the order total. For example:

Coupon Code: couponcode1
Expiry Date: Jun 30 2009
Active: Yes
Discount Type: Price
Discount Value: 20
Minimum Order Limit: 0
Maximum number of redemptions: 1

If my order total is 15 before applying couponcode1, the order total would be -5.00 upon applying the code. I think this must be 0.00 because if this is negative, in reality, the store owner would have a 5.00 credit to the customer.

Can anyone help me with this? Thanks!

Comments

peps’s picture

Nevermind, found this code:

Line: 514, uc_coupon.module
$coupon_result->amount = $coupon_data->value;

Replace with:
$coupon_result->amount = ($cart_total - $coupon_data->value >= 0) ? $coupon_data->value : $cart_total;

longwave’s picture

Status: Active » Fixed

This should be fixed in the -dev release, which I'm about to push out as 5.x-1.8.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.