Opencart: How to relate product options (like size and color)?

别等时光非礼了梦想. 提交于 2020-01-03 01:52:32

问题


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.

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

Please help. Thanks in Advance!


回答1:


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

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...).


EDIT: 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)...




回答2:


This is not possible using a standard install. There is a commercial modification that can do this and you can find it here. It's called OpenStock and I believe it does what you want




回答3:


You can try this extension: Option To Product

It does exactly what you need.




回答4:


Related options for OpenCart can help you



来源:https://stackoverflow.com/questions/16954116/opencart-how-to-relate-product-options-like-size-and-color

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!