Scenario: shopper views order history and performs reorder

This is the sequence of steps that occurs in HCL Commerce and Sterling Order Management when a shopper views all previously purchased orders, regardless of status. The shopper then places a reorder against an order in that history. The order history viewed in HCL Commerce is maintained in Sterling Order Management.

Viewing the order history list

  1. The shopper goes to the My Orders page, and requests to retrieve the order history.
  2. HCL Commerce calls the SCWC_SDF_getOrderList service on Sterling Order Managementto process the request.

    The Sterling Order Management getOrderList API is called, and retrieves the order history list for the shopper.

    1. If the order is in Hold On Transfer or F status, or it is not yet been fulfilled by Sterling Order Management, the storefront retrieves the order from the HCL Commerce order subsystem.

      All orders created in the HCL Commerce storefront are returned, along with any orders that were created through other channels, such as IBM Sterling Call Center.

      HCL Commerce merges the two sets of order information into one list. If there are any orders in both HCL Commerce and Sterling Order Management, the information from Sterling Order Management is respected.

  3. The history is displayed on the storefront. It includes the following for each order:
    • Order number
    • Order date
    • Status
    • Grand total
Note: If an order is transferred to Sterling Order Management after the guest shopper registers, the registered shopper is able to view this order placed when they were a guest user. If an order is transferred to Sterling Order Management before the guest shopper registers, the registered shopper is not able to view the order that was placed when they were a guest user.

Reorder against history

The shopper can now select an order in the retrieved history, and reorder.

  1. The shopper selects a previous order on the My Orders page and clicks Re-Order.
  2. The HCL Commerce storefront creates a cart based on the catalog entries and quantity information, and on the status of the original order:
    • If the original order is in holding status, a new shopping cart is created. The order is based on the order details and information stored in the HCL Commerce Order subsystem.
    • Otherwise (that is, order is not in a holding or “FailedToTransfer” status), HCL Commerce sends the request to Sterling Order Management SCWC_SDF_getCompleteOrderDetails API by the Service Definition Framework.

      The HCL Commerce storefront creates a shopping cart based on the catalog entries, quantity, and shipping information.

  3. The shopper presses the Reorder button.
    Note: Changes to the order are not supported.

    HCL Commerce checks the inventory status of each catalog entry by calling Sterling Order Management, and adds the items, if available, to the cart. If an item is out-of-stock, HCL Commerce allows the entry to be added to the cart. However, if the shopper submits the cart with an out-of-stock catalog entry in it, an information error is displayed. This error indicates that the item cannot be placed in the cart because it is out-of-stock, but it can be back ordered (if allowed.)

    Quantity information is stored in the cache.

  4. The checkout page is displayed for the new shopping cart.