I want to be able to choose which store to associate with a new customer when I create my account as an administrator. I found that by overriding this file:
Application / code / core /Mage/Adminhtml/Block/Customer/Edit/Tab/Account.php
Change this:
if ($customer->getId()) { $form->getElement('website_id')->setDisabled('disabled'); $form->getElement('created_in')->setDisabled('disabled'); } else { $fieldset->removeField('created_in'); }
To that:
if ($customer->getId()) { $form->getElement('website_id');//->setDisabled('disabled'); $form->getElement('created_in');//->setDisabled('disabled'); } else { //$fieldset->removeField('created_in'); }
This gives me text input labeled "Created From", but it does not save the identifier that I enter into it. I want him to save this information, and also to show me a drop-down list of stores to choose from instead of empty text input. The way Magento developers implemented their forms with zend is really confusing. Please, help!
edit:
This is why I need to control which store the customer is associated with: I have several stores and customers must be redirected after successfully logging in to the store associated with their account. Accounts can only be created by the administrator. Except by default, stores can only be accessed by users who are logged in and associated with this store.
source share