I'm about to build an online store in Ruby on Rails using Spree. So far I don't see how I can add sizes to items, such as T-shirts. I don't want to have to create multiple version of the same product just to have the size represented. Does anyone know how to do this or if its' even possible?
Of course, you create variants of products.
First understand
Product Variants: Sometimes the same product is available in different styles or types. For example, you might sell a t-shirt in a number of different sizes, or a hat in a variety of different colors. Create product variants to show your customers all the options they can choose from.
Opiton Types and Values in spree: Option Types are a way to help distinguish products in your store from one another. They are particularly useful when you have many products that are basically of the same general category (Tshirts or mugs, for example), but with characteristics that can vary, such as color, size, or logo. Read more at: https://guides.spreecommerce.com/user/product_options.html
Then, create Option Type size with option values as the size values. Option Type is avaliable under Product's sub-menu. Next create new variants of the product with the given values in the admin panel. Select the product from the products list in admin. Then go to Variants on the right Sub-menu.
This should solve your problem. For details refer to https://guides.spreecommerce.com/developer/products.html