[-] BO : Bug Fixed #PSCFV-3270 - CSV Import addresses + multishop

This commit is contained in:
fBrignoli
2012-07-23 09:11:56 +00:00
parent e479ab5650
commit d986bb9cc2
2 changed files with 51 additions and 8 deletions
+18
View File
@@ -284,6 +284,24 @@ class CustomerCore extends ObjectModel
return $this;
}
/**
* Retrieve customers by email address
*
* @static
* @param $email
* @return array
*/
public static function getCustomersByEmail($email)
{
$sql = 'SELECT *
FROM `'._DB_PREFIX_.'customer`
WHERE `email` = \''.pSQL($email).'\'
'.Shop::addSqlRestriction(Shop::SHARE_CUSTOMER);
return Db::getInstance()->ExecuteS($sql);
}
/**
* Check id the customer is active or not
*