Tag: shopping cart

使用Timer进行会话超时

我想用计时器超时,我正在实施一个电子商务项目,我需要当用户在购物车中添加第一个产品时,计时器将启动并且用户在购物车中添加更多产品但是用户没有检查购物车产品。购物车会话超时的特定时间(购物车为空)。 如何实现这一点。

电子商务的最佳.net解决方案与Magento CE相比

我需要寻找.net购物车,我是.net开发人员而不是PHP,我需要购物车解决方案可扩展。 在过去,我使用过Magento,它可能是最好的解决方案,但我不想只学习另一种编程语言。 是否有像magento一样好但在.NET中完成? 我需要的一些要求: MultiStore在一个数据库中。 能够创建主题。 复杂的购物车折扣规则与Magento一样

在购物车的会话状态中存储数据

试图把我存储的内容添加到购物车中,然后将其转移到另一个页面,以便让GridView显示我添加到购物车会话中的所有商品。 将其存储为对象会话。 -AddToCart在A Session中获取行详细信息和存储,然后获取该会话对象并将其显示在另一页上的Grid视图中。 从中获取此代码: protected void GridViewDisplay_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == “AddToCart”) { object[] values; DataTable orderTable; // Retrieve the row index stored in the // CommandArgument property. int index = Convert.ToInt32(e.CommandArgument); // Retrieve the row that contains the button // from the Rows collection. GridViewRow row = GridViewDisplay.Rows[index]; values = […]

ModelValidationException是未处理的用户代码

你可以帮助我解决以下错误,我检查了所有没有ID错误 ModelValidationException未由用户代码处理 EntityFramework.dll中发生了’System.Data.Entity.ModelConfiguration.ModelValidationException’类型的exception,但未在用户代码中处理 附加信息:在模型生成期间检测到一个或多个validation错误: public int GetCount() { ShoppingCartId = GetCartId(); // Get the count of each item in the cart and sum them up int? count = (from cartItems in _db.ShoppingCartItems where cartItems.CartId == ShoppingCartId select (int?)cartItems.Quantity).Sum(); // Return 0 if all entries are null return count ?? 0; }