ozysean Posted May 23, 2007 Posted May 23, 2007 Can anyone tell me where the names of the months that come up in the dropdown menu are? They are defaulted to the names, January, Feb.... etc but I want to change them to the numbers of the month as that is the way the date is displayed on the credit card. I cant find this in the database or any of the language files I have looked in. Any help would be much appreciated! Thanks, Sean Quote
oschellas Posted May 23, 2007 Posted May 23, 2007 catalog/includes/modules/payment/cc.php Find: for ($i=1; $i<13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000))); } Replace by: for ($i=1; $i<13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i)); } Quote
kmb40 Posted September 6, 2008 Posted September 6, 2008 This thread is a year old but here is the solution. This is a very simple edit. Same page as stated above. The change is ONE character from an uppercase B to a lowercase m Current Code for ($i=1; $i<13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%[size=6]B[/size]',mktime(0,0,0,$i,1,2000))); } Desired changes Code for ($i=1; $i<13; $i++) { $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%[size=6]m[/size]',mktime(0,0,0,$i,1,2000))); } That worked for us Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.