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.
- 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 theSCWC_SDF_GetCartList
service returns as single record.
- 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 thecreateOrder
API.
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 theCreate Draft Order
transaction invokes theSCWC_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 theEntryType
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.
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 theChange Order
transaction invokes theSCWC_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 anExternalOrderId
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.