Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Downloads Controller


Guest

Recommended Posts

This happened once before, and fixed itself on its own, but I need to figure out where the setting for this is because it is driving me (and my new customers) up the wall.

 

When the customer goes through checkout, the download appears but says the expiration date for the download is seven days from today's date, in 1999.

 

Please, oh, please, where is this setting? I've looked all through admin.

 

Thanks,

 

Wendy

Link to comment
Share on other sites

Here is the code where I think it is pulling the wrong info (from downloads.php):

 

<?php
   while ($downloads = tep_db_fetch_array($downloads_query)) {
// MySQL 3.22 does not have INTERVAL
     list($dt_year, $dt_month, $dt_day) = explode('-', $downloads['date_purchased_day']);
     $download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads['download_maxdays'], $dt_year);
     $download_expiry = date('Y-m-d H:i:s', $download_timestamp);
?>

 

But I'm not sure where this is in my database. I guess I'm just not that clear on PHP & MySql to figure it out. I'm looking through, and the correct date is being entered for date/time of purchase in the database, so I'm not sure where this code is getting the date.

 

Wendy

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...