loginCustomerProfile

Method Signature

CustomerProfile loginCustomerProfile(String email, String password);

Description

Logs in a customer profile for the given cart using the email address and password specified. This will allow the cart to reflected the discounted prices that are available to them as well as utilize their address book. The global cart variable is automatically submitted with this call.

Parameters

String email – email address of the customer profile. String password – password of the customer profile.

Result

CustomerProfile – If the login is unsuccessful then the result of this call will be null. This does not mean that the cart has been lost. It's just a way of indicating an error condition so be careful to just check the result and not assign it to your cart variable in the page.