Created
September 12, 2014 10:14
-
-
Save Vinai/4a3ec1ca6055e855d426 to your computer and use it in GitHub Desktop.
Programatically activate all customers of a specific customer group for the Magento CustomerActivation extension found at https://github.com/Vinai/customer-activation
This file contains 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
<?php | |
$groupId = 1; | |
Mage::getResourceModel('customer/customer_collection') | |
->addAttributeToFilter('group_id', $groupId) | |
->setDataToAll('customer_activated', 1) | |
->save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment