View Single Post
  #33  
Old 10-17-2019, 02:54 PM
 
Dougrun Dougrun is online now
 

X-Adept
  
Join Date: Apr 2012
Posts: 897
 

Default Re: Excluding coupns

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).
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote