i'd love to include (exclude) freeshipping coupon types to the ones excluded, i'm searching in the func,cart,php file but not sure where to add it.
i tried this:
Code:
if (
!empty($coupon_type)
&& $coupon_type == 'free_ship' && $product['coupons_avail'] != 'Y'
) {
// Apply discount coupon 'Free shipping'
if (
$single_mode
|| $provider_for == $discount_coupon_data['provider']
) {
$coupon_discount = $shipping_cost;
$shipping_cost = 0;
}
}
but that excluded every item, even if coupons were checked. The original is missing the
Code:
&& $product['coupons_avail'] != 'Y'
and that allows free shipping no matter what (it does follow the coupon rule though which is a certain section).