HI all,
is it possible to load a single customer record from a custom attribute without loading the entire customer collection and looping through?
Our customers have a ERP ID attribute (erp_id)
I'd like to be able to simply pass the erp_id and the $value into a customer model object and load that single customer?
$erp_id is a unique value
the code is for a CLI script, so there is no customer session info available.
I can get my stuff to work if I load the collection and loop, but that doesn't seem optimal?
any help / guidance would be appreciated
cheers