Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gordon Saxby 1444 posts 1855 karma points
    Jul 30, 2015 @ 18:56
    Gordon Saxby
    0

    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?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 30, 2015 @ 19:08
    Rusty Swayne
    0

    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?

  • Gordon Saxby 1444 posts 1855 karma points
    Jul 30, 2015 @ 19:11
    Gordon Saxby
    0

    Oh yes - inherit AccountProfileModel! I guess I'll need my own controller too?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 30, 2015 @ 19:15
    Rusty Swayne
    0

    I'm guessing that will be easiest. You can just grab stuff from the AccountOperationsController as a starting spot.

  • Gordon Saxby 1444 posts 1855 karma points
    Jul 30, 2015 @ 20:17
    Gordon Saxby
    0

    Umm, seems to be getting very complicated ... maybe I'll just modify Bazaar!?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 30, 2015 @ 20:22
    Rusty Swayne
    0

    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.

  • Gordon Saxby 1444 posts 1855 karma points
    Jul 30, 2015 @ 20:23
    Gordon Saxby
    0

    Maybe ... it needs to appear on the checkout process somewhere, as well as in the logged on user's Account page.

Please Sign in or register to post replies

Write your reply to:

Draft