protected function _prepareMassaction() { // Do not allow vendor to change customer information if ($vendor = Mage::helper('smvendors')->getVendorLogin()) { $this->setMassactionIdField('entity_id'); $this->getMassactionBlock()->setFormFieldName('customer'); $groups = Mage::getSingleton('eav/config')->getAttribute('customer', 'vendor_customer_group')->getSource()->getAllOptions(); array_unshift($groups, array('label' => '', 'value' => '')); $this->getMassactionBlock()->addItem('assign_group', array('label' => Mage::helper('customer')->__('Assign a Customer Group'), 'url' => $this->getUrl('adminhtml/vendors_customer/massAssignVendorGroup'), 'additional' => array('visibility' => array('name' => 'vendor_group', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('customer')->__('Group'), 'values' => $groups)))); return $this; } else { return parent::_prepareMassaction(); } }
protected function _prepareMassaction() { // Let the base class do its work parent::_prepareMassaction(); $this->getMassactionBlock()->addItem('amlist', array('label' => $this->__('Email to Customers'), 'url' => $this->getUrl('amemail/adminhtml_index/index', array()))); }