[英]Could not get pipeline: commerce.carts.createOrResumeCart (domain: )
我正在使用Sitecore 7.2和Commerce Server 11.0。 當我運行以下代碼來創建購物車時:
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;
然后我得到了錯誤:無法獲取管道:commerce.carts.createOrResumeCart(域:)
有人知道該如何解決嗎?
每當我看到其中包含(domain:)的錯誤時,通常都會通過清除瀏覽器中的所有緩存來解決該錯誤。 我不確定在這種情況下是否可以使用,但是看起來很熟悉。 或者,您也可以在Chrome中使用隱身模式進行嘗試。
希望能幫助到你。
\\ 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>
我想這解釋了例外情況。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.