Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

expiration date only goes to 2020


TheGuy

Recommended Posts

It depends on the payment module you are using. I'm using authornizenet_cc_aim.php and mine also ended in 2020.

 

To change this, open up /catalog/includes/modules/payment/authorizenet_cc_aim.php and find this:

 

$today = getdate();
  for ($i=$today['year']; $i < $today['year']+10; $i++) {
    $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));
  }

 

Just change the +10 above to how many more years you want to show. So if you wanted to set it to 2023, change it like so:

 

$today = getdate();
  for ($i=$today['year']; $i < $today['year']+13; $i++) {
    $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));
  }

 

Hope this helps!

 

Peace,

Chris

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...