Thanks for this article. I used it to add some more checkboxes to customer preferences.
At first it wasn't saving anything and I had to modify the controller (newsletter/controllers/ManageController.php) to save the values. Somewhere I read that you don't have to do this, but I found that I did. It was quite simple in my case, just find the action which is saving, in my case saveAction and set the extra fields.
Thanks for this article. I used it to add some more checkboxes to customer preferences.
At first it wasn't saving anything and I had to modify the controller (newsletter/controllers/ManageController.php) to save the values. Somewhere I read that you don't have to do this, but I found that I did. It was quite simple in my case, just find the action which is saving, in my case saveAction and set the extra fields.
Mage::getSingleton('customer/session')->getCustomer()
->setStoreId(Mage::app()->getStore()->getId())
->setIsSubscribed((boolean)$this->getRequest()->getParam('is_subscribed', false))
->setNewfield((boolean)$this->getRequest()->getParam('newfield', false))
->save();
Of course you have to point the form action to the new controller too ;)