What I need is:
If the coupon type is 'F' (flat amount)
AND there is more than 1 product in the cart
AND the customer is in a discount group
THEN the coupon = the full coupon amount up to 100% of the subtotal price
I think I would need to change this code... But not sure how.
Code:} elseif ($coupon->fields['coupon_type'] == 'F') { $od_amount['total'] = round($coupon->fields['coupon_amount'] * ($orderTotal>0), 3); $od_amount['type'] = 'F'; $ratio = $od_amount['total']/$orderTotal; }


Reply With Quote
