Reputation: 29
I'm using Sitecore 7.2 and Commerce Server 11.0. When I ran below code to create a cart:
var cartServiceProvider = new CartServiceProvider();
// Create the request.
var createCartRequest = new CreateOrResumeCartRequest("ShopName", "UserID");
// Call the service provider to get the cart
var cart = cartServiceProvider.CreateOrResumeCart(createCartRequest).Cart;
then I got error: Could not get pipeline: commerce.carts.createOrResumeCart (domain: )
Anyone know how to fix that?
Upvotes: 0
Views: 242
Reputation: 1
There is the following piece of code and explanation in the \App_Config\Include\CommerceServer\CommerceServer.Connectors.Carts.config
<!--
NOTE: This CreateOrResumeCart Sitecore.Commerce pipeline has been removed as in CS, detecting newly created carts is not possible.
-->
<commerce.carts.createOrResumeCart>
<patch:delete/>
</commerce.carts.createOrResumeCart>
I guess this explains the exception.
Upvotes: 0
Reputation: 1445
Whenever I see an error that has (domain: ) in it, I usually solve it by clearing all the cache from my browser. I am not sure if it will work in this case, but it looks so familiar. Or you can just try it with Incognito mode in chrome.
Hope it helps.
Upvotes: 0