[-] BO : Bug Fixed #PSCFV-3270 - CSV Import addresses + multishop
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user