OFBIZ 希望在产品之间建立父子关系

发布于 2024-12-29 10:11:12 字数 345 浏览 5 评论 0原文

这是一个假设的问题来概述我正在寻找的内容。

假设我正在销售可定制的软糖礼品篮。购买时,顾客选择一个礼品篮,然后决定他们想要装多少豆子。反过来,每个 bean 都可以根据各种功能的列表进行定制。每个果冻豆有太多可能的豆特征配置,无法合理地表示为礼品篮的预定义“特征”。此外,如果客户要按同一订单购买多个篮子,那么将篮子和豆子作为单独的商品出售会遇到问题。我如何跟踪哪些(以及多少)豆子进入了哪个篮子?

我一直在阅读各种 Ofbiz 教程和文档,寻找解决方案。产品配置和功能确实提供了部分解决方案,但并不能完全满足我的示例末尾的问题。

我是否需要扩展实体模型以允许这些类型的产品到产品关联?或者他们已经有可以解决我的问题的东西了吗?

Here is a hypothetical problem to outline what I am looking for.

Let's say I am selling customizable jellybean gift baskets. At the time of purchase, the customer chooses a gift basket and then decides how many beans they want in it. Each bean, in turn, may be customized from a list of various features. There are too many possible bean feature configurations for each jelly bean to reasonably be represented as a predefined "feature" of the gift basket. What's more, selling the basket and beans as separate items runs into a problem if the customer is to purchase multiple baskets in the same order. How do I keep track of what (and how many) beans got to what basket?

I have been reading through various Ofbiz tutorials and documentation, looking for a solution to this. Product configuration and featuring do provide a partial solution but does not completely satisfy the question at the end of my example.

Do I need to extend the entity model to allow for these kinds of product-to-product associations? Or is their already something out there that can address my issue?

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

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

发布评论

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

评论(2

帅冕 2025-01-05 10:11:12

Ofbiz 中的产品可以通过多种方式相互关联。请查看目录管理器应用程序中的产品->关联中的关联类型 ID 下拉列表。

例如:

  1. 产品 A 可以是产品 B 的变体产品。[最适合您的情况]
  2. 产品 A 可以是产品 B 的补充或交叉销售
  3. 。 A 可以升级或向上销售到产品 B。
  4. 产品 A 可以与产品 B 关联为也购买

。等等。

然而,根据您的要求,我建议您应该:

  • 将虚拟产品设置为具有所有常见功能、配置和属性的基础果冻产品
  • 将多个变体产品设置为您需要为每个物理果冻豆产品添加特定的功能和属性。

There are many ways products in Ofbiz can relate to each other. Please take a look at Association Type ID drop-down list in Product->Association in Catalog Manager application.

For example:

  1. Product A can be a Variant Product to Product B. [Will most fit for your case]
  2. Product A can be Complementary or Cross-Sell to Product B.
  3. Product A can be Upgrade or Up-Sell to Product B.
  4. Product A can be associated as Also Bought with Product B.

etc .etc.

However looking at your requirement I am recommending, what you should is to:

  • Setup a virtual product as base jelly product with all common features, configurations and attributes
  • Setup multiple variant product as you need with specific feature, attributes added per physical jelly bean product.
静待花开 2025-01-05 10:11:12

OFBiz产品数据模型非常灵活,可以处理非常复杂的情况。即使不支持 OOTB,也可以通过定制屏幕和购物车代码来完成。
最接近您所描述的是礼品篮产品,或者可能是可配置产品,其选项是虚拟产品。

OFBiz product data model is very flexible and can handle really complex cases. Even if it is not supported OOTB it can be done by costumizing the screesns and shoppingcart code.
The closest to what you are describing are gift basket product or may be a configurable product which options are virtual products.

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