Legacy platform

Pull cart

A customer service representative can pull a cart from Commerce Store Front into Sterling™ Call Center for a customer who needs help with an order.

Solution

Sometimes a customer has trouble completing an order in the Commerce Store Front. The customer might not be able to add a product, delete a product, or complete the payment process. In such situations, when the customer calls the call center, and the customer is a registered consumer customer, the CSR can pull the customer's active cart from Commerce and complete the order by using Sterling Call Center while on the phone with the customer.

When a customer calls a CSR for help on an active order, the CSR can search for the customer by using customer search. After the appropriate customer is selected, the Customer Details screen is displayed. The CSR can select the Carts tab to view the customer's active cart. When the CSR selects the Carts tab, the following logic is executed:
  • The SCWC_SDF_GetCartList service is invoked which in turn calls a web service on the Commerce store front, which returns the list of carts based on the customer criteria passed in the input. This web service takes the customer or member ID as input from the Sterling Call Center user interface and passes it to Commerce to retrieve the list of active carts for the customer. Commerce has a single active cart per customer or member ID, therefore the SCWC_SDF_GetCartList service returns as single record.
When the CSR clicks "Pull Cart" corresponding to a cart, the following logic is executed:
  • The SCWC_SDF_PullCart service is invoked, which checks whether the order already exists in Sterling Call Center.
    • If the order is already present, the service returns the order details.
    • If the order is not already present, SCWC_SDF_GetCartDetails service is invoked and the output of this service is passed to the createOrder API.
Once a cart is successfully pulled into Sterling Call Center, the Create Draft Order transaction is run to create an order for the Pull Cart action. The cart is locked and cannot be edited using Commerce storefront. Though the identify customer option is still available, the CSR should not change the customer. The following logic is executed to lock the cart:
  • The ON_SUCCESS event of the Create Draft Order transaction invokes the SCWC_SDF_LockWCShoppingCart service.
  • This SCWC_SDF_LockWCShoppingCart service in turn calls a web service on the Commerce storefront to lock the cart. The service checks if the draft order was created via the 'Pull Cart' action from the UI by checking the EntryType attribute in the order details. For orders that are created via the 'Pull Cart' action, the service calls the Commerce web service to lock the shopping cart on the Store Front.

The CSR can then follow the create order flow to complete the order. For more information, see Create orders.

When a CSR cancels a draft order, the Change Order transaction is run to delete an order created using the Pull Cart action. The cart is unlocked. The following logic is executed to unlock the cart:
  • The DELETE_ORDER event of the Change Order transaction invokes the SCWC_SDF_UnLockWCShoppingCart service.
  • The service checks whether the draft order was created via a ‘Pull Cart’ action from the user interface, by checking the EntryType attribute in the order details.
  • For orders that are created using the ‘Pull Cart’ action from the user interface, the service will call a Commerce web service to release the lock on the shopping cart on the store front.
  • On success of order confirmation, it will mark the order status in Commerce as G and will also stamp an ExternalOrderId to the order. After the order is confirmed and the cart is unlocked, shoppers can make changes to the shopping cart via the store front.

Upon cancellation of an order, the CSR must refresh the Customer Details screen before another cart can be pulled.

Implementation

  • The CSR must have the Pull Cart resource permission to pull carts.
  • Factory setup for all the services and event handlers are shipped. The services are created for the DEFAULT organization and the event handlers are enabled at an enterprise level by using the activator script, which is shipped as part of the Commerce and Sterling Call Center integration.
  • Customers who intend to use the Commerce and Sterling Call Center integration for any of their enterprises must run the activator script. For more information about loading the activator factory setup data, see "Loading activator factory setup data".
  • Customers and Catalogs must be synched between Commerce and Sterling Call Center for the Pull Cart feature.
  • The Pull Cart feature supports only consumer customers.