如何找到具有特定邮政编码的客户列表?
我尝试使用Mage::getResourceModel('customer/address_collection')
但这只允许我过滤 id。
我相信
类似的东西应该有效 - 虽然没有测试它:
$collection = Mage::getResourceModel('customer/address_collection');
$collection->addAttributeToFilter('postcode','11-111');
$collection->joinTable(
array( 'customer'=>'customer/entity' ),
'entity_id = parent_id',
array('*')
);