Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I was trying to add a product to basket below is snippet of code which I have written
Get a product
var productItem = UCommerce.EntitiesV2.Product.SingleOrDefault(x => x.ProductId == 105);
Adding to Basket
TransactionLibrary.AddToBasket(quantity, productItem.Sku);
TransactionLibrary.ExecuteBasketPipeline();
But I am getting an exception that
System.ArgumentException: The product with SKU '5159803' does not exist
But db it is present and and I am not able to find the solution of it.
Please reply what I am doing wrong over here
Hi Shibu
If you're using uCommerce with Sitecore then you probably need to ask this question in a Sitecore related forum since this is all about uCommerce and Umbraco :)
Cheers, Jan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Adding product to Basket [uCommerce & Sitecore]
I was trying to add a product to basket below is snippet of code which I have written
Get a product
var productItem = UCommerce.EntitiesV2.Product.SingleOrDefault(x => x.ProductId == 105);
Adding to Basket
TransactionLibrary.AddToBasket(quantity, productItem.Sku);
TransactionLibrary.ExecuteBasketPipeline();
But I am getting an exception that
System.ArgumentException: The product with SKU '5159803' does not exist
But db it is present and and I am not able to find the solution of it.
Please reply what I am doing wrong over here
Hi Shibu
If you're using uCommerce with Sitecore then you probably need to ask this question in a Sitecore related forum since this is all about uCommerce and Umbraco :)
Cheers, Jan
is working on a reply...