Click or drag to resize
CustomerInfoProviderRegisterCustomer Method
Registers the customer (ci) with the given user name (userName) and password (password). If userName is null, the customer's email is used instead.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public static UserInfo RegisterCustomer(
	CustomerInfo ci,
	string password,
	string userName = null
)

Parameters

ci
Type: CMS.EcommerceCustomerInfo
Customer object.
password
Type: SystemString
Customer's password.
userName (Optional)
Type: SystemString
Customer's user name.

Return Value

Type: UserInfo
Customer's new user or null if customer could not be registered. An error is logged to the event log in that case.
See Also