Last active
January 1, 2016 04:59
-
-
Save ajbonner/8095838 to your computer and use it in GitHub Desktop.
Adding an attribute to a magento customer collection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$commonwealthSubscribers = Mage::getModel('customer/customer') | |
->getCollection() | |
->joinAttribute('billing_country_id', 'customer_address/country_id', 'default_billing') | |
->addAttributeToFilter('billing_country_id', array('in' => 'AU', 'CA', 'GB')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment