I need to add a product via
Dynamicweb.eCommerce.Common.Context.Cart.Products.Add(_p);
Dynamicweb.eCommerce.Common.Context.Cart.Products.Add(_p);
If Context.Cart Is Nothing Then
Context.SetCart(New Order() With {.IsCart = True, .LanguageID = Common.Context.LanguageID})
Context.Cart.Save()
End If
Dynamicweb.eCommerce.Common.Context.Cart.Products.Add...
if (Dynamicweb.eCommerce.Common.Context.Cart == null)
{
Order _o = new Order();
_o.IsCart = true;
_o.LanguageID = Dynamicweb.eCommerce.Common.Context.LanguageID;
Dynamicweb.eCommerce.Common.Context.set_Cart2(_o, _o);
Dynamicweb.eCommerce.Common.Context.Cart.Save();
}
Dynamicweb.eCommerce.Products.Product _p = new Dynamicweb.eCommerce.Products.Product(ProductID);
Dynamicweb.eCommerce.Common.Context.Cart.Products.Add(_p);
Dynamicweb.eCommerce.Common.Context.Cart.Save();
You must be logged in to post in the forum