Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Changing CC Expiry Date to xx-yyyy format


Recommended Posts

We had a numbr of customers messing up their CC expiry date, so we decided to change it from January-2007 to 01-2007. Here's how we did it:


in shop/includes/modules/payment/cc.php


Find the line that says:

$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));

and comment it out (// in front of it)

immediate below, paste the line

$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => sprintf('%02d', $i));

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...