5

我有一家电子商务商店(使用 Magento 构建)。我陷入了一个问题,你们可以帮助我解决这个问题。

在我的 Magento 商店中,每种产品都有 40 种颜色选项和 10 种不同尺寸。每个产品最多可有 400 个排列。我需要维护每个排列的库存,并使产品可过滤。

Magento 中唯一的解决方案是可配置产品,但您需要为每个排列添加简单的产品。该商店有 6000 个产品,这意味着 6000*400=2400000 个总产品。我根本无法添加这么多产品。

我还有哪些其他选择?我被困在这里很长一段时间了。

提前致谢

4

1 回答 1

2

One solution could be to create the 6000 simple products with color and size as attributes.

You would then observe on the add to cart event, or create a custom controller action, that would create a new product on the fly and populate the color and size attributes based on post values from the product view page. Then you would have to create a custom flat table to manage the inventory of each product-color-size combination. The custom inventory table can be referenced to set the stock item for the generated product and in the product grid/view to check the availability.

This would create a new product for each purchase, but you may be able to get away with deleting the product after the sale is made. Also you may have to customize the reordering process, if you need that feature as well.

This may not be the most straight forward solution, but it should work, in theory.

于 2013-12-07T03:57:28.903 回答