Samples > Sample stores > Consumer direct sample store > IBM Gift Center for the Consumer direct sample store > IBM Gift Center > Customize the Web (presentation) layer > IBM Gift Center actions


UserGiftRegistryCreate action

This action combines creating a store user registry profile with creating a gift registry profile for a new (unregistered) customer. This action is executed by a customer who logs onto the store's Web site to create a registry. The UserGiftRegistryCreate action is a wrapper that calls UserRegistrationAdd (a WebSphere Commerce command) and GiftRegistryCreate (a base IBM Gift Center action).

Use this command with SSL to ensure that all personal information is encrypted.

To do so, type the command with the HTTPS secure protocol.


URL structure

http://host_name/path/

The fully qualified name of the WebSphere Commerce Server and the configuration path (for example, wcserver.mydomain.ibm.com is fully qualified).
Diagram of the URL structure: The URL starts with the fully qualified name of the WebSphere Commerce Server and the configuration path, followed by the URL name, , and the ? character. End the URL with a list of parameters in the form of name-value pairs. Separate each <a href=name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />


Parameter values

The UserGiftRegistryCreate action calls UserRegistrationAdd and GiftRegistryCreate. Refer to the parameter values for UserRegistrationAdd and GiftRegistryCreate for details.


Example

The following example creates a ConsumerDirect store registration profile and a gift registry profile for the gift registrant John Smith, who has registered for his wedding anniversary on May 25, 2006. The logon ID for both store and the gift registry will be jsmith. The gift registry is for a store with the ID of 10001. John Smith has set up passwords for himself and any gift givers that he has invited to use the gift registry.

https://myhost_name/webapp/wcs/stores/servlet/UserGiftRegistryCreate?logonId=jsmith
&logonPassword=mypassword&logonPasswordVerify=pass&URL=/webapp/wcs/stores/servlet/
&storeId=10001&eventTypeId=2&eventYear=2006&eventMonth=05&eventDay=25&addressType_1=R
&addressType_2=PreEventShipping&name=50thWeddingAnniversary&relationship_1=husband
&relationship_2=wife&shippingPreference=R&lastName=Smith&firstName=John& address1_1=123 Main Street&city_1=Toronto&state_1=Ontario &country_1=Canada&zipCode_1=M1M1M1
&email_1=jsmith@email.com&phone1=555-555-5555&phone2=333-333-3333
&registryPassword=pass1word&guestPassword=pass2word


Behavior


Exception conditions

Refer to the exceptions described for the UserRegistrationAdd and the GiftRegistryCreate actions.

Related reference

IBM Gift Center actions


+

Search Tips   |   Advanced Search