Jump to content

How to set the date and time order status in AdminOrders PS 1.5


Recommended Posts

In Prestashop version, I edited file AdminOrders.php

$datetime = strtotime(Tools::getValue('datetime'));
					$history->date_add = date('Y-m-d H:i:s', $datetime);
					if (!$datetime || !Validate::isDate($history->date_add))
						$this->_errors[] = Tools::displayError('Bad format Date and Time!');
					else {
						if ($history->addWithemail(false, $templateVars))
						$this->_errors[] = Tools::displayError('an error occurred while changing status or was unable to send e-mail to the customer');

I can not figure out the file you edit in version 1.5.6. Please help!



  • Like 1
Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...