Home > DeveloperSection > Forums > Open-cart: How to relate product options (like size and color)?
marcel ethan
marcel ethan

Total Post:105

Points:735
Posted on    June-06-2013 2:31 AM

 PHP PHP 
Ratings:


 1 Reply(s)
 1650  View(s)
Rate this:
Hi Developers,

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!


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-06-2013 8:18 AM

Hi Marcel,

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

I hope it helpful for you. 


Don't want to miss updates? Please click the below button!

Follow MindStick