How to update user detils using macro..?

Pritam Gupta asked on December 30, 2015 12:44

Hii.. I want to update user details using macro..? so please help me to solve this problem...

Thanks

Recent Answers


Roman Hutnyk answered on December 30, 2015 16:50

There is not such functionality out of the box. You can implement custom macro (see documentation), but the purpose of macro is getting data, so updating data with macro is not recommended approach.

1 votesVote for this answer Mark as a Correct answer

Pritam Gupta answered on December 31, 2015 06:27

so can u please tell me some another method to update data..

1 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on December 31, 2015 14:27

There are any. In your particular case I'd use MyProfile web part in conjunction with an alternative form for user. You can configure or build appropriate form in Modules -> Membership -> Classes -> User (or UserSettings) -> Alternative Forms. There should be some predefined forms, so you can use them as example.

1 votesVote for this answer Mark as a Correct answer

Pritam Gupta answered on January 1, 2016 06:25

Hello Roman,

----Happy New Year--------

Actually my question is that there is a Points column in user table and he purchased some items now his points is like New_Points=Points-Items_Price. now i have to update New_Points with existing Points. so how can i solve it...

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on January 4, 2016 14:43

I'd override AddShoppingCartItemInternal method of the ShoppingCartInfoProvider - this is probably the best way to do, what you need.

You can find some inspiration here:

  • https://docs.kentico.com/display/K82/Customizing+providers
  • https://docs.kentico.com/display/K82/Custom+Info+provider+example
  • https://docs.kentico.com/display/K82/Customizing+application+of+Buy+X+Get+Y+discounts
0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on January 4, 2016 17:29

Assuming you have the EMS version with online marketing,you may be able to use automated marketing and set up a process that will capture this and add the value to the user/contact. It would be worth looking into because you wouldn't have to custom code anything, plus, you could modify it and create others that run in parallel. If you don't have the EMS version, then Romans method will work and be a pretty simple implementation.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.