[-] BO : #PSCFV-3000 - Send an email on changing an order from the BO

This commit is contained in:
mDeflotte
2012-07-12 12:05:19 +00:00
parent 1a41638de5
commit 4c5cce43e1
14 changed files with 345 additions and 1 deletions
+2 -1
View File
@@ -295,7 +295,8 @@ class LanguageCore extends ObjectModel
'shipped.html', 'shipped.txt',
'test.html', 'test.txt',
'voucher.html', 'voucher.txt',
'voucher_new.html', 'voucher_new.txt'
'voucher_new.html', 'voucher_new.txt',
'order_changed.html', 'order_changed.txt'
);
$number = -1;
+14
View File
@@ -975,6 +975,20 @@ class OrderCore extends ObjectModel
}
return $return;
}
/**
* Get order customer
*
* @return Customer $customer
*/
public function getCustomer()
{
static $customer = null;
if (is_null($customer))
$customer = new Customer((int)$this->id_customer);
return $customer;
}
/**
* Get customer orders number