View Single Post
  #4  
Old 10-06-2009, 08:18 AM
 
maineiac maineiac is offline
 

Member
  
Join Date: Jun 2005
Location: USA
Posts: 29
 

Default Re: Coupon Code "accepted"

Lee - I'm using 4.1.8 so I'm not sure if this will apply to your version or not.... But it's a quick fix for my customers to know that the coupon has been accepted.

1) Create a new language variable: txt_coupon_accepted
2) In skin1/modules/Discount_Coupons/discount_coupons.php find the following (around line 74):

# Add discount coupon
} elseif($my_coupon == 0) {
$cart["discount_coupon"] = $coupon;
}

and change it to:

# Add discount coupon
} elseif($my_coupon == 0) {
$cart["discount_coupon"] = $coupon;
$top_message['content'] = func_get_langvar_by_name("txt_coupon_accepted");
}

When a valid coupon is submitted, your txt_coupon_accepted text will appear in that ugly error/warning/information box in dialog_message.tpl.

Hope this helps someone...I just realized that the original post is 7 months old...but I was searching for this answer and perhaps someone else will be too!
__________________
maineiac

x-cart gold v4.0.18
x-cart gold v4.1.8
Reply With Quote