Magento – Account registration: let store owner confirm

ce-1.7.0.2

I'm tweaking a magento store for a wholesale company. Because this is a wholesale company, we only want to allow companies, not privates/individuals, to create a new account. We want to do that by letting the store owner check the VAT number (which is a required field in the registration form) of the company, then let him manually set the account to 'confirmed'.

The preferred way is to have a confirmation e-mail sent to the store owner (and a different notification mail to the customer saying that the confirmation is pending). However, letting the store owner set the customer's account to 'confirmed' in the admin panel is fine too.

So, my problem is this. For as far as I can find, it's only possible to choose whether you want to send a confirmation link before 'activating' the account or not, but this confirmation link will always get sent to the customer. It seems to me you can't change this in the Admin panel, but how can I change this in the code? Any tips, code snippets, or even telling me what file I would have to change, would be quite welcome.

Best Answer

@VinaiKopp built a extension which does this:

https://github.com/Vinai/customer-activation

Related Topic