Samples > Starter stores > Starter store enhancements > Social Commerce > Sample Social Commerce flow changes > User Profile flows


Registration

Shoppers can use the Registration page to create a public online community profile during registration with the store.

To register, a shopper completes the fields to create a Madisons account profile, selects the Create an Online Community Profile check box, and then completes the fields to create a public profile. After registering with the store, the shopper can login to the Madisons starter store from the Sign In page with their logon ID and password combination and use the Social Commerce features in the store.

If a shopper does not create an online community profile during registration with the store, a default profile is created using their store logon ID as their screen name. When the shopper views the My Account Summary page, their online community profile only displays their screen name; all other fields are empty. The shopper can complete the remaining fields by updating their online community profile in the My Account Personal Information page.


Elements of the Registration page

Full size screen capture


Social Commerce widgets

The following Social Commerce widgets can be integrated into this page:


JSP files

The following table lists and describes the JSP files that are used when the Social Commerce profile widget is integrated into the Madisons starter store Registration page.
JSP file Description
Madisons/UserArea/AccountSection/RegistrationSubsection/UserRegistrationAddForm.jsp Provides a modified version of the entire registration page from the Madisons starter store.

Includes:

  •  1  Madisons/UserArea/AccountSection/RegistrationSubsection/UserRegistrationAddExt.jspf contains a Profile widget declaration in Create mode. When the shopper clicks the Submit button, the profile details are temporarily saved to a cookie to preserve the state of the content entered by the shopper in the Online Community Profile registration form while the shopper is authenticated.

Madisons/UserArea/AccountSection/MyAccountDisplay.jsp Displays the online community profile for a shopper within the My Account Summary page.

Includes:

  • Madisons/UserArea/AccountSection/AccountSCDisplayExt.jspf contains a Profile widget declaration in ProductionRegisterOrFetch mode. The cookie that contains the profile details is extracted and the Profile widget reads the profile details from the cookie. The Profile widget sends a request to the service provider to create the profile using the details from the cookie. If the authentication and registration of the shopper was successful, the profile for the registered shopper is fetched and displayed on the My Account Summary page.


Links and buttons

Related reference

ibm.social.Profile

My Account: Summary

My Account: Personal Information

Registration


+

Search Tips   |   Advanced Search