php - Magento modify customer activation module for customer group -
i'm trying modify netzarbeiter's customer activation module extension flags customer group admin approval. following block of code have been modifying. /** * flag new accounts such * * @param varien_event_observer $observer */ public function customersavebefore($observer) { $customer = $observer->getevent()->getcustomer(); //$customer_group_id=$customer->getcustomergroupid(); $customer_group_id = mage::getsingleton('customer/session')->getcustomergroupid(); mage::log('the customer group id is'. $customer_group_id , null, 'caitlin.log'); if ($customer_group_id=1) mage::log('i have general group id \n',null,'caitlin.log'); else if ($customer_group_id=5) mage::log('i have test group id \n',null,'caitlin.log'); else mage::log('i dont understand! \n',null,'caitlin.log'); $storeid = mage::helper('customeractivation')->g...