finis test for cart creation

This commit is contained in:
Manuel Raynaud
2013-07-26 11:29:26 +02:00
parent 02c89c0795
commit 5f8e935a40
2 changed files with 72 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ class Customer extends BaseCustomer implements UserInterface
protected function generateRef()
{
return date("YmdHisu");
return uniqid(substr($this->getLastname(), 0, (strlen($this->getLastname()) >= 3) ? 3 : strlen($this->getLastname())), true);
}
public function setPassword($password)