Jump to content

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


Kaspi88

Recommended Posts

In Prestashop version 1.3.2.3, 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))
							Tools::redirectAdmin($currentIndex.'&id_order='.$id_order.'&vieworder'.'&token='.$this->token);
						$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!

 

post-11587-0-63829500-1386352147_thumb.png

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