Setting Discount Coupon to expire beyond 31/12/2003
I'm setting up a Discount Coupon for one of our partners. X-Cart date range in Coupon setting only goes up to 31/12/2003. How will I be able to extend that beyond end December 2003? Or Will I have to wait until the New Year and re-issue the coupon?
|
New code for modules/discount coupons/coupons.tpl
version 3.4.x - did this today for another client Code:
{* $Id: coupons.tpl,v 1.10 2003/04/22 10:10:59 svowl Exp $ *} |
here an easy fix to correct 2003 dates
Change this line in your config.php
$config["Company"]["end_year"] = 2010; change the date (2010) field to whatever you want... :lol: Michael http://www.lingerieblowout.com |
Thank you guys.
|
No Problem
Glad we can help... :lol:
|
Funkydunk's code works perfectly, and I think will increase the year to 2005 as the calendar rolls into Jan 1, 2004, etc for following years.
|
i have xcart 322 and this does not work for me. I changed the tpl file but now the year shows as just a zero with no option to change it.
HELP |
i hate when i do that. I post then 5 minutes later a i figure it out on my own. In coupon.tpl just edit the line where it shows 2003 as the expiration. I set mine to 2005.
{html_select_date prefix="new_" start_year=2001 end_year=2005 month_format="%b"} Hope that helps. |
It happens to all of us at some point, first we get frustrated with some minor change, then we find out right after posting.
Although in bigger issues, even though you could find a way around it is recommended to post (IMHO), since you have alot of points of view and new information that could help you out. |
All times are GMT -8. The time now is 06:18 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.