I have added a Newsletter indicator to the MerchelloCustomer member type and need to access it (Account details, checkout process). I am using Merchello 1.9 and Bazaar).
I can get the Umbraco Member record to see whether the option is on/off, but I am not sure how to integrate it into the Account edit view (ProfileForm), which is based on AccountProfileModel.
Can I achieve this without editing the Bazaar code?
Another thought would be to make a partial that only deals with the news letter and render it on the Account page. Then you could have a simple model and your own little controller to handle that single function.
Access MerchelloCustomer Member record
I have added a Newsletter indicator to the MerchelloCustomer member type and need to access it (Account details, checkout process). I am using Merchello 1.9 and Bazaar).
I can get the Umbraco Member record to see whether the option is on/off, but I am not sure how to integrate it into the Account edit view (ProfileForm), which is based on AccountProfileModel.
Can I achieve this without editing the Bazaar code?
Maybe make your own model that inherits from AccountProfileModel?
Are you hoping to post back to the same controller or do you have your SurfaceController?
Oh yes - inherit AccountProfileModel! I guess I'll need my own controller too?
I'm guessing that will be easiest. You can just grab stuff from the AccountOperationsController as a starting spot.
Umm, seems to be getting very complicated ... maybe I'll just modify Bazaar!?
Another thought would be to make a partial that only deals with the news letter and render it on the Account page. Then you could have a simple model and your own little controller to handle that single function.
Maybe ... it needs to appear on the checkout process somewhere, as well as in the logged on user's Account page.
is working on a reply...