Opencart:如何关联产品选项(如尺寸和颜色)? [英] Opencart: How to relate product options (like size and color)?

查看:598
本文介绍了Opencart:如何关联产品选项(如尺寸和颜色)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我们的网站使用opencart版本1.5.5.1.我需要为产品添加多个选项.例如:我需要显示尺寸为大/中/小和白色/黑色/蓝色/红色/绿色等颜色的衬衫.默认情况下,opencart允许我们为每种颜色和尺寸添加单独的数量.

I'm using opencart version 1.5.5.1 for our website. I need to add more than one option for products. For example: I need to show shirts of sizes- Large/Medium/Small and colors White/Black/Blue/Red/Green etc. By default opencart allows us to add separate quantities for each color and size.

我怎么能说我们有5件蓝色的大衬衫,3件白色的中衬衫等?

How can I mention that we've 5 Large Shirts of Blue Color, 3 Medium Shirts of White Color etc. ?

请帮助.在此先感谢!

推荐答案

我猜这只有在您为 size x color 组合创建选项时才有可能.然后,客户将不得不在一种选择中选择所需的尺寸和颜色,例如:

I guess this would only be possible if You create an options for size x color combinations only. Customer then would have to pick the desired size and color in one option, like:

S, black (+ $0.00)     - 3 pieces
S, green (+ $0.00)     - 1 piece
M, black (+ $0.00)     - 7 pieces
M, red (+ $0.00)       - 11 pieces
M, blue (+ $0.00)      - 2 pieces
L, black (+ $0.00)     - 1 pieces
L, black (+ $0.00)     - 2 pieces
XL, pink (+ $0.00)     - 200 pieces

我相信这可能很难维护,但是比在OpenCart中实现这种依赖要容易得多,也更便宜.但是考虑一下是一个好主意(也许丹尼尔·克尔(Daniel Kerr)应该比我们更多……).

I believe this could be hard to maintain but it would much easier and cheaper than implementing such a dependency into OpenCart. But it is a nice idea to think about (maybe Daniel Kerr should more than us...).

根据评论:在这种情况下,唯一的解决方案是使每种颜色(或尺寸)具有不同的产品,然后仅选择所需的尺寸(颜色)选项...案例您将拥有更多的产品,但是您将能够根据具体尺寸限制每种颜色的颜色(反之亦然)...

according to the comment: in that case only solution is to have different product per color (or size) and then only pick up the desired size (color) option... In that case You would have much more products but You would be able to restrict each's color pieces per concrete size (or vice versa)...

这篇关于Opencart:如何关联产品选项(如尺寸和颜色)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆