I am working on newsletter subscription bug. In this case the subscription status is always becoming not subscribed even when the customer chooses subscription. There are two cases.
Bug-1: When a customer creates account and opts or don't opt for subscription, his/her status is coming not subscribed.
Bug-2: There is edit option for subscription but that is also not working, customers are not able to change subscription status. If they are old customers and their status is subscribed, it remains subscribed - even when they edit to unsubscribe.
What I dug is that Magento provides module for newsletter subscription, and data for subscription goes into the table
newsletter_subscriber.For first scenario nothing is going into this table for newly created accounts. For second case after editing subscription status
ManageController/saveAction of newsletter module is called which calls
setIsSubscribed() function on
But there is no definition of
setIsSubscribed() function. That means magic function is called. I am trying to solve these bugs. So I gave definition of
local/namespace/customer/model/customer and was able to solve bug number 2. But for bug-1 please someone give some suggestions and also please suggest if I did right thing for bug-2.
Thanks for your valuable time.