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

absolute discount + free ship in one coupon

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 12-05-2006, 09:03 AM
 
gfiebich gfiebich is offline
 

Senior Member
  
Join Date: Feb 2003
Location: St. Paul, MN
Posts: 108
 

Default absolute discount + free ship in one coupon

This is a simple little hack to the built-in coupon system. It causes all $ off coupons to also cause the order to have free shipping.

in func.php, change this:

Code:
if (!empty($coupon_type) and $coupon_type == "free_ship") { # # Apply discount coupon 'Free shipping' # if (($single_mode) or ($provider_for == $discount_coupon_data["provider"])) { $coupon_discount = $shipping_cost; $shipping_cost = 0;

to this:

Code:
if (!empty($coupon_type) and $coupon_type == "absolute") { # # Apply discount coupon 'Free shipping' # if (($single_mode) or ($provider_for == $discount_coupon_data["provider"])) { $shipping_cost = 0;

This was done in x-cart gold 4.0.18

-Glen
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS
Reply With Quote
  #2  
Old 10-11-2008, 10:41 PM
 
j0anne04 j0anne04 is offline
 

Newbie
  
Join Date: Aug 2008
Posts: 6
 

Default Re: absolute discount + free ship in one coupon

is it possible to have this as an option that can be turned on or off depending on the coupon? i want to enable it for hostess gifts, but for general vouchers i dont want it enabled...... great mod though, im glad someone thought of it!
__________________
X-Cart 4.1.10
Reply With Quote
  #3  
Old 10-11-2008, 10:42 PM
 
j0anne04 j0anne04 is offline
 

Newbie
  
Join Date: Aug 2008
Posts: 6
 

Default Re: absolute discount + free ship in one coupon

whoops just realised i havent updated my signature... im using x-cart now, whichever one is the latest! i cant find it in my admin... where should i look?
__________________
X-Cart 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:08 AM.

   

 
X-Cart forums © 2001-2020