Tutorials > Customize the Consumer Direct sample store > Customizing the consumer direct sample store using snippets
Publish a consumer direct sample store
WebSphere Commerce provides several sample stores for you to use as a for learning about WebSphere Commerce. In this tutorial, we will publish another consumer direct sample store with the name MyApparelStore that uses an apparel catalog.
Procedure
- Create a directory called sar...
- Navigate to the following directory:
- Copy the ConsumerDirect.sar file into the sar directory you created in step 1. The ConsumerDirect.sar should now be available for publishing in the Administration Console.
- Open WebSphere Commerce Developer.
- Start the WebSphere Commerce Test Server.
- Open the Administration Console by entering the following URL in a Web browser:https://localhost:8002/webapp/wcs/admin/servlet/ToolsLogon?XMLFile=adminconsole.AdminConsoleLogon
- Log on to the Administration Console. By default, the administrator user name and password are wcsadmin.
- On the Administration Console Site/Store Selection page, select Site and click OK.
- Click Store Archives > Publish.
- From the View list, select Consumer direct.
- Select ConsumerDirectOrganizationStructure.sar and click Next. The ConsumerDirectOrganizationStructure.sar contains a sample store archive containing the organization structure, predefined user roles, and necessary access control policies to create a consumer direct environment. There is no store front or catalog associated with this file.
- Click Next, Finish, and OK. Depending on the system, the store publish might take a few minutes to over an hour.
- When the publishing completes, the Publish Status page displays the success or failure of the store publish. Click Refresh and ensure the publish status for the store is Successful.
- Select ConsumerDirectStore.sar and click Next. The ConsumerDirectStore.sar file contains all the assets required for a consumer direct store, including the catalog and store front pages.
- On the Parameters page:
- In the Store directory field, enter MyApparelStore.
- In the Store identifier field, enter MyApparelStore.
- From the Organization list, select Seller Organization.
- From the Sample data list, select Apparel.
- Click Next.
- Click Finish.
- Click OK. Depending on the system, the store publish might take a few minutes to over an hour.
- When the publishing completes, the Publish Status page displays the success or failure of the store publish. Click Refresh and ensure the publish status for the store is Successful.
- Ensure you can complete a purchase in MyApparelStore:
- In the Administration Console, select the store.
- Click Details.
- On the Publish Details page, click Launch Store.
- Accept the default value for Web application web path for store.
- After the store home page loads, add an item to the shopping cart and complete the purchase, ending on the Order confirmation page, similar to the following screen capture:
- Refresh the Stores project to display the newly-published store assets:
- In WebSphere Commerce Developer, navigate to .
- From the Store project's pop-up menu, select Refresh.