Get Carts
Version:
Developer tasks for using service method GetCarts.
GetCarts is used to query cart data against the external commerce system. The method returns a collection of CartBase objects that only contains the summary of the main cart data. Examples include:
-
Getting the carts for a specific visitor across all visitors
-
Getting one of the carts for the current visitor in a multi-cart solution
-
Getting carts that have not been used within a period of time or abandoned
At your visual studio solution setup:
-
Reference the Sitecore.Commerce.Connect.CommerceServer and Sitecore.Commerce.dll.
-
Pick the class in your solution where want to use this service method.
-
Paste in the code below to use the service method.