I am confused about the size and color options in ecommerce products table./ You might have seen options in clothing e commerce website when we go to add to cart option for any cloth e.g shirt it asks for size and color and show results simultaneously if that size or color is available or not.
How can i achive this? I have a product table having common fields like id, name, image, category id, subcategory id, details etc... Should size and color be in it ?
Problem is that if sizes can vary in units as well like for clothes its usually M,L,XL but what if a customer went to a TV page it should have inches there...
I hope i've described it clear
Please provide some good opinion
Thanks