简体   繁体   English

无法获取管道:commerce.carts.createOrResumeCart(域:)

[英]Could not get pipeline: commerce.carts.createOrResumeCart (domain: )

I'm using Sitecore 7.2 and Commerce Server 11.0. 我正在使用Sitecore 7.2和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: ) 然后我得到了错误:无法获取管道:commerce.carts.createOrResumeCart(域:)

Anyone know how to fix that? 有人知道该如何解决吗?

Whenever I see an error that has (domain: ) in it, I usually solve it by clearing all the cache from my browser. 每当我看到其中包含(domain:)的错误时,通常都会通过清除浏览器中的所有缓存来解决该错误。 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. 或者,您也可以在Chrome中使用隐身模式进行尝试。

Hope it helps. 希望能帮助到你。

There is the following piece of code and explanation in the \\App_Config\\Include\\CommerceServer\\CommerceServer.Connectors.Carts.config \\ 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. 我想这解释了例外情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM