Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Excluding coupns

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #31  
Old 06-14-2019, 07:17 AM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 895
 

Default Re: Excluding coupns

This is somehow now broken in 4.7.11. all my coupons can now be applied to any item so I need a fix. Anyone willing to work on this?
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #32  
Old 06-14-2019, 08:26 AM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 895
 

Default Re: Excluding coupns

nevermind, my other site it does work so i'll do a compare and figure out whats up..
__________________
4.7.x xcart store
Business 5.4xx
Reply With Quote
  #33  
Old 10-17-2019, 02:54 PM
 
Dougrun Dougrun is offline
 

X-Adept
  
Join Date: Apr 2012
Posts: 895
 

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
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:03 AM.

   

 
X-Cart forums © 2001-2020