.Net 生成影响其他下拉菜单的下拉菜单

发布于 2024-08-31 21:22:13 字数 657 浏览 5 评论 0原文

任何人都知道以下内容在 .Net 中是否可行,我已经评论过我认为每个元素要做的困难程度。

  • 允许用户动态添加产品的在线商店(简单)
  • 在每个产品中,他们可以创建选项 - 下拉菜单(相对容易)
  • 这些动态生成的下拉菜单可以影响产品价格(困难)
  • 这些下拉菜单可以影响其他动态生成的下拉菜单,而这些下拉菜单反过来又可以影响其他动态生成的下拉菜单影响价格(V. 困难)

因此,想象一下管理员可以向商店添加一个小部件产品,在这个小部件产品中,他们可以指定一系列尺寸(下拉选项)。然后,他们可以添加一系列颜色(另一个下拉菜单),然后为制作小部件的各种材料添加另一系列选项(另一个下拉菜单)。

最终用户可能从尺寸列表中选择“中”,这会影响“颜色”内容的内容(突然只有黑色和红色是选项)。用户从可用颜色中选择黑色,第三个下拉列表的选项依次动态更改。在每个阶段,价格都会根据用户的选择而变化。

上述场景让我觉得高度复杂/困难并且容易出错。也许我错过了一些东西,但我认为让管理员能够添加下拉菜单,允许他们决定一个下拉菜单如何影响另一个(或多个)以及每个下拉菜单如何影响定价是自找麻烦。

我错了吗?这是否可以以干净、高效的方式实现,而不会大量增加开发时间?

而且,有人能想到提供这种程度的定制的电子商务系统吗?

谢谢。

Anyone know if the following is possible in .Net, I've commented on how difficult I would consider each element to do.

  • An online shop that allows users to dynamically add products (easy)
  • Within each product they can create options - dropdowns (relatively easy)
  • These dynamically generated dropdowns can affect the product price (difficult)
  • These dropdowns can affect other dynamically generated dropdowns which in turn could affect price (V. Difficult)

So, imagine the admin can add a widget product to the shop, within this widget product they can dictate a series of sizes (dropdown options). Then they can add a series of colours (another dropdown ) and they then add another series of options (another dropdown) for the various materials the widget can be made from.

The end user might choose 'Medium' from the list of sizes, this affects the contents of the contents of the 'colours' (suddenly only black and red are options). User chooses black from the available colours, and the third dropdown's options are in-turn dynamically changed. At every stage the price changes depending on what the user has selected.

The above scenario strikes me as highly complex / difficult and prone to errors. Maybe I'm missing something but I think giving the admin the ability to add dropdowns, allowing them to dictate how one dropdown affects the other (or more than one other) and how each in turn affects the pricing is asking for trouble.

Am I wrong? Is this do-able in a clean and efficient way without adding massively to development time?

And, can anyone think of an ecommerce system that offers that level of customisation?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

↙厌世 2024-09-07 21:22:13

我见过的此类活动的几乎每个示例都使用级联,即 DDL1 更新 DDL2 更新 DDL3 等。允许每个 DDL 影响其他 DDL 确实会增加复杂性,但我不会说它非常困难,它是只是可能对每个 DDL 使用 AJAX 来提供其他 DDL 的更新列表以及所选选项的价格的情况。在更新每个 DDL 时,您需要维护当前的选择(如果可用)。

Nearly every example of this kind of activity that I've seen uses a cascade, i.e. DDL1 updates DDL2 updates DDL3, etc. Allowing each DDL to effect the others does add to the complexity but I wouldn't put it as very difficult, it's just a case of probably using an AJAX for each DDL to provide updated lists for the other DDLs and the price for the selected options. You'd need to maintain the current selections, if available, as you updated each of the DDLs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文