0

我被要求提供一个看起来类似于 solopress.com 的网站。

看着那个网站,我可以看到有类别 + 产品,但每个产品都有多种尺寸和数量 + 2 或 1 个侧面选项。

我想了很多方法来实现这一点......但总是最终产生一个复杂的例子,比如必须多次添加每个项目或一次在产品中添加所有项目。

我不知道如何让用户添加产品变得简单......所以如果你的想法需要一些东西,我需要后端设计和数据库方面的帮助/想法。

提前致谢。

4

1 回答 1

1

Basically, you need two tables. One for the parts, and one for the attributes. Then the parts only get entered once, and the attributes are what get added instead. It can get complex, but it works out.

Come up with a possible database structure and post it back here if you think it can be improved.

And welcome to SO!

于 2011-03-17T16:59:16.820 回答