开发者

Disable customer in Magento

开发者 https://www.devze.com 2023-01-13 19:48 出处:网络
I want to include to the administrator the option to disable login accounts, no data would be erased from the account, but if would be disable开发者_开发技巧d for users not using it more, once cleared

I want to include to the administrator the option to disable login accounts, no data would be erased from the account, but if would be disable开发者_开发技巧d for users not using it more, once cleared, the user would not notice any newsletters or anything else, just one last mail notifying the deactivating your account.


This is an interesting one. I've looked into this previously, and there is an is_active flag on the customer database record, but it is not accessed or written anywhere by the core Magento code. In order to achieve this requirement, you'll need to override the Mage_Customer_AccountController to check the value of this field inside loginPostAction() and then to make that field visible within the adminhtml Customer blocks.

I'm a little nervous about implementing that code as it bothers me that Varien would include the field but not utilise it at all. I'd be interested in others' thoughts about this.

HTH, JD


Or, you could use this free extension from Magento Connect.

magentocommerce (deadlink) Customer Activation Extension

edit: Github project

0

精彩评论

暂无评论...
验证码 换一张
取 消