View Single Post
  #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