Enabling order migration for guest shoppers

About this task

A shopper shops in a WebSphere® Commerce store as a guest shopper, submits payment, and completes an order. During the same session, the shopper then registers and logs on. If the appropriate event listeners are enabled, WebSphere Commerce can merge the guest shopper order to the registered shopper and notify Sterling Order Management that the user of the order has changed. The merge allows the registered shopper to view the order history for that order.

Procedure

  1. Copy WC_eardir/xml/config/wc-server.xml to a temporary folder
  2. Edit the temporary file, set enable to"true" for the following event listeners:
    config/Components/component[@compClassName="com.ibm.commerce.order.event.UserEntriesMigrationrEventForOrdeListener"
    config/Components/component[@compClassName="com.ibm.commerce.order.event.UserRegistrationEventForOrderListener"
    config/Components/component[@compClassName="compClassName="com.ibm.commerce.order.event.CreateOrderOnSuccessEventListener
    config/Components/component[@compClassName="compClassName="com.ibm.commerce.order.event.ChangeExternalOrdersEventListener
  3. Deploy the temporary file toxml/config folder in the Commerce server. For more information about deployment, see Deploying custom Java EE assets.