SSU Posted November 15, 2018 Share Posted November 15, 2018 The coupon end date is 2018 and its running out... How do I extend the years ? I am using osCommerce 2.2-MS2 Any help will be great. Preferably no addons please. Link to comment Share on other sites More sharing options...
♥Dan Cole Posted November 15, 2018 Share Posted November 15, 2018 I don't know anything about MS2 besides that it is ancient but I would think that the expiry date is stored in your database. If you can track it down you should be able to change it. Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
bonbec Posted November 17, 2018 Share Posted November 17, 2018 Hello, Do you have a fine named admin/includes/functions/add_ccgvdc_application_top.php ? If yes, find line 89 : for ($i=2001;$i<2019;$i++){ Modify in : for ($i=date("Y");$i<date("Y")+10;$i++){ If no, tell us the name of your coupon addon, because there is no coupon by default in the MS2.2 with OsC 2.2 since 2006 ... Link to comment Share on other sites More sharing options...
jan66666 Posted November 22, 2018 Share Posted November 22, 2018 thank you VERY much - i have also an old shop with same issue and been LOOOKING and looking for a solution. it worked like a charm ! have a great day. Link to comment Share on other sites More sharing options...
Kurre Posted January 24, 2019 Share Posted January 24, 2019 On 11/17/2018 at 8:59 AM, bonbec said: Hello, Do you have a fine named admin/includes/functions/add_ccgvdc_application_top.php ? If yes, find line 89 : for ($i=2001;$i<2019;$i++){ Modify in : for ($i=date("Y");$i<date("Y")+10;$i++){ If no, tell us the name of your coupon addon, because there is no coupon by default in the MS2.2 Thank you, this helped me too! Link to comment Share on other sites More sharing options...
MrPhil Posted January 25, 2019 Share Posted January 25, 2019 Note that Fred's fix is to extend the allowable dates out to "this year + 9 years". Keep that in mind as what's happening, rather than just extending another year. The starting date is now "this year" rather than fixed at 2001, in case you have a store with coupon entries older than 2019. I haven't looked at the code in question, so I don't know exactly what the intent is for this sliding window range of years. The old expression here was for a year range of 2001 through 2018. Also note that osC 2.2 is ancient history. Unless you have been constantly updating it, the next PHP update on your server will blow it out of the water. It's also full of security holes, is lacking many useful features, requires an old MySQL library that is going away, and is not mobile-friendly. You really should be thinking about upgrading to osC 2.3.4.1BS "Frozen" and transferring your data over. Do it now, before it becomes an emergency. Link to comment Share on other sites More sharing options...
nadelo Posted April 5, 2019 Share Posted April 5, 2019 Hello, for me it's in admin/includes not in admin/includes/functions if it can help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.