Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Complete Reviews System


john44

Recommended Posts

Hi,

 

I've just installed the Complete Reviews System but when I try and save a review in the admin sysytem i get the error:

 

Call to undefined function tep_store_date() in reviews.php

 

Does anyone know where this function should be or where I should get it from. I've checked in the install folder and can't find it in there and also checked my original oscommerce files and can't find it there either.

 

If someone has this function would it be possible to post it here?

 

Thanks very much,

 

John

Link to comment
Share on other sites

  • 4 weeks later...
  • 11 months later...

I did not find the function either and wrote it now by my self.

 

Put this at the beginning of the admin/reviews.php file:

 function tep_store_date($date) {
 	$mysqltime = date ("Y-m-d H:i:s", strtotime($date));
 	return $mysqltime;
 }

Edited by groovesinc
Link to comment
Share on other sites

  • 2 years later...

I have had the same problem. When tried to use your solution it did not provide me with good results. The date was going back go 1st of January, 1970. There is other solution I found which works great. You should add these lines in admin/includes/languages/(your-language).php

 

 

after:

 

function tep_date_raw($date, $reverse = false) {

if ($reverse) {

return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);

} else {

return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);

}

}

 

add:

 

// return a dbase formatted date for ddmmyyyy format adjust if you use the mmddyyyy format

function tep_store_date ($date) {

 

return substr($date, 6, 4) . '-' . substr($date, 3, 2) . '-' . substr($date, 0, 2) . ' ' . date('H:i:s');

 

}

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