Disable clients in Magento

I want to enable the administrator to disable accounts, no data will be deleted from the account, but if they are disabled for users who no longer use it, after they are cleared, the user will not notice any newsletters or anything else else, only one last message notifying you that your account has been disconnected.

+5
source share
2 answers

It is interesting. I examined this earlier, and there is a flag in the client database record is_active, but it is not available and is not written anywhere using the Magento main code. To achieve this requirement, you need to override Mage_Customer_AccountController to check the value of this field inside loginPostAction(), and then make this field visible within the adminhtml Customer blocks.

I'm a little nervous about the implementation of this code, as it bothers me that Varien will include the field, but not use it at all. I would be interested in the thoughts of others about this.

NTN, JD

+8
source

Or you can use this free extension from Magento Connect.

Client Activation Extension

+3
source

All Articles