I have a few custom customer attributes in the admin/customer information section of my site.

The attributes are as followed:


I've setup my newsletter subscriptions page with several check boxes to reflect the value of these attributes. enter image description here I've tried to get the attributes via the newsletter.php block but keep getting errors with no luck of any result.

Basically, if the corresponding checkbox is checked, I want to set that check boxes attribute to yes, vice versa if it's not checked it'd be set to no.

The other problem I have is when clicking the save button, it saves the value of the newsletter subscription check box whether it's checked or not.

So to re-cap; I need a way of getting my custom customer attributes, setting the value via if the corresponding check box is checked and a method of saving the attribute without triggering the default newsletter subscription.

Any help would be very much appreciated as I have been stuck on this for a few days now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.