Hi there,
I want to have product X to use shoppingcart 1 connected (SHOP1) and I want another product X or different Y to use shoppingcart 2 connected to (SHOP2). How can I implement this that I can differentiate on which different shop to use?
Lucas
Developer forum
E-mail notifications
How to use multiple shoppingcarts?
Posted on 12/05/2010 14:18:22
Replies
Posted on 12/05/2010 14:35:04
Hi Lucas,
Before answering that what you want is not possible: what do you want to gain by differentiating?
Regards /Snedker
Posted on 12/05/2010 14:53:39
We have build a Dynamicweb connection to a Dutch ERP system and we want to make use of the notification subscriber to check whether a product is in stock in the ERP system:
Subscribe(Dynamicweb.Notifications.eCommerce.Cart.Line.Added)]
[
I would like to get a ShopID during CartCatch, because we based our ERP connector settings on this and we need these settings. All the values in all the objects: order, pageview or cart return null for ShopID in the Notificationssubscriber.Subscribe(Dynamicweb.Notifications.eCommerce.Cart.Line.Added)]
Posted on 17/05/2010 10:33:17
There are two ways of getting to know the ShopID.
1) On the cart you are using, you set the Shop at the cart settings. Though, I don't think this is what you want, since you'd probably want to put products from multiple shops in that one cart.
2)You need to customize by having a custom product field containing the ShopID. This means that this information should be provided from the ERP and into the import-XML. Then you can ask on the product field on your cart notification.
Of course this means that you have to be careful, should you happen to have the same product in more than one shop.
The reason for not knowing the shop out-of-the-box, is that a product in a Dynamicweb eCom universe both can and will exist across shops as well as groups. The product itself has NO connection to any shop.
Regards /Snedker
You must be logged in to post in the forum