Creating customer groups programtically

Vote:
 

Hi, 

I am trying to look for way to add a new customer group programatically. I dont see any examples, does anybody have any idea about this? I want to update pricing based on customer groups, and if new customer groups are passed in the file I should create them.

#200927
Edited, Jan 30, 2019 22:29
Vote:
 

Hi Siddharth,

Please provide more information about which authentication provider that you are using? Membership or Asp.net identity or anything else?

#200929
Jan 31, 2019 3:17
Vote:
 

@Binh: I am using Membership authentication. I see that this is tied to customers, but I also import different SKU prices based on customer groups. So, during the import process I will need to check if a customer group exists and if it doesnt I will need to create one.

#200967
Jan 31, 2019 16:31
Vote:
 

Hi Siddharth,

Sorry for misunderstanding a bit. The customer groups  are not depended on which authentication provider is using. The customer groups that you want to add more is a dictionary type in Episerver Commerce system.

You have 2 ways to add more are programming or configuring. See the details in this link https://world.episerver.com/documentation/developer-guides/commerce/pricing/PriceType-examples/ 

#201228
Edited, Feb 11, 2019 2:07
Vote:
 

@Binh: Thank you. 

#201229
Feb 11, 2019 2:49
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.