从虚拟目录中添加购物车中的产品的问题 [英] problem in adding product in shopping cart from virtual catalog

查看:77
本文介绍了从虚拟目录中添加购物车中的产品的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了新的商务服务器Contemporay Site.With Catalog Manager我已经从基本目录(Adventure Works目录)创建了虚拟目录。我没有改变任何虚拟目录中的产品

I have setup new Commerce server Contemporay Site.With Catalog Manager I have created virtual catalog from base Catalog(Adventure Works Catalog).I am not altering any product in Virtual Catalog

问题:

当我们将我们的网站与虚拟目录连接时,.product不会被添加到购物车中。显示计数0。

When we connect our site with Virtual Catalog .product is not added into shopping cart.it display count 0.

但当我们将网站与Adventure Works目录产品成功连接到购物车时。

but when we connect site with Adventure Works Catalog product successfully added into cart.

*********** RAVi给了我的回复是**************

*********** Ravi gave me reply which is**************

您是否在事件查看器中看到任何异常?似乎某些应用程序可能会将基本目录名称与虚拟目录产品ID一起使用。检查错误的一个小解决方法 - 如果您的基本产品的产品ID为1022,则您的虚拟目录将为
具有"1022(基本目录)"。作为产品ID。你能创建一个新产品"1022(基础目录)"吗?在基本目录中并尝试添加该项目 到篮子里(保持配置中的虚拟目录)。如果项目已保存,请继续并检查Lineitems
为该lineitem存储的目录值是什么(您可以使用CS业务工具查看)。

Are you seeing any exceptions in event viewer? Seems some where the application might of taking base catalog name with virtual catalog product ID. A small workaround to check the error - If your base product has 1022 as product id, your virtual catalog will have "1022(base catalog)" as product ID. Can you create a new product "1022(base catalog)" in base catalog and try to add that item  to the basket (keeping virtual catalog in the configuration). If the item is getting saved, go ahead and check in Lineitems what is the catalog value stored for that lineitem (you can see it using CS business tool).

 

这是正确的

但是当我用基本目录创建新产品时,例如(A1-11( Adventure Works目录))

在虚拟目录中它将开始显示(A1-11(Adventure Works目录)(Adventure Works目录))

再次我无法将虚拟目录中的产品添加到购物车

请帮助

谢谢

eStore

推荐答案

如果您使用的是OOTB网站使用产品或使用VPC,我认为添加到购物车代码中存在错误。如果内存服务正确,我在ProductQuery webpart中发现了一个问题,当它添加到购物车时,它使用原始的
目录(在我的情况下是基础)作为传递给ShoppingController.AddToCart的目录参数。

If your are using the OOTB site that comes with the product or your using a VPC, I think there's a bug in the add to cart code. If memory serves correct I found a problem in the ProductQuery webpart that when it was adding to the cart it was using the original catalog (which in my case was the base) as the catalog parameter being passing to ShoppingController.AddToCart.

我会调试ProductQuery webpart中的AddToCarT私有方法以及ShoppingController.AddToCart方法,并验证在使用虚拟目录向购物车添加产品时,目录名称应该是名称虚拟和产品
和变体id应该是some_id(BaseCatalog)。

I would debug the AddToCarT private method in the ProductQuery webpart and also the ShoppingController.AddToCart method and verify that when adding products to the cart with a virtual catalog, The catalog name should be the name of the virtual and the product and variant id's should be some_id(BaseCatalog).


这篇关于从虚拟目录中添加购物车中的产品的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆