Properties Vs Option Types Vs Taxonomies

281 views
Skip to first unread message

Nitesh Thadani

unread,
Jan 22, 2014, 5:27:10 AM1/22/14
to spree...@googlegroups.com
Hi All, 

I have just started to build an eCommerce portal using Spree commerce. One of the key features would be faceted search within the application. 

I am unable to decide wether an attribute of a product should be created as a Taxonomy or a Property specifically when that will be needed for 'Faceted Search'. 

As an example, I need to associate each product with a "Material" attribute. The Material value could be (Cotton, Silk or Leather). Not sure if the right way to create the attribute would be to create a property called "Material' or create taxonomies (like Material -> Cotton Material -> Silk, Material -> Leather). 

1) Material will be one of the key faceted on which filtering will be based. In which case should it be a taxonomy rather than a property? (In the example provide Brand and Category are both taxonomies rather than properties)
2) If it is a property, can we create a property with a list of value rather than free text? (Any extensions available?)
3) In the event i want to make a property a search facet in the future, is that easily possible? 
4) I have an option type colour. Is it possible to create facets / filtering based on the option types?

Thanks in advance

Regards 

Nitesh Thadani 

Ryan Bigg

unread,
Jan 23, 2014, 12:51:45 AM1/23/14
to spree...@googlegroups.com
Hi Nitesh,

Option Types and Properties inside of Spree are very similar concepts, but they serve different purposes. 

Option Types define the ways that the different variants of your product can differ. For instance, an Option Type on one Variant may be "Color", with that Option Value for that Option Type on that Variant being "Red". On another variant, it might be "Green".

Properties define the common properties for all variants of a product, and so things like "Material" would be suitable for this. 

Taxonomies on the other hand are for categorising groups of products. You may have a Taxonomy called "Clothing" and underneath that have a Taxon called "Shirts" and another one called "Jackets".

For more information about these things, I'd recommend reading the Products guide, which takes about Option Types, Properties and Taxonomies/Taxons in greater detail: http://guides.spreecommerce.com/developer/products.html.

I hope that explains those things.




--
Don't miss SpreeConf on Feb 26-27
http://spreeconf.com



--
Ryan Bigg
Community Manager
Spree Commerce, Inc.


Join us in New York City for SpreeConf 2014 February
 26th and 27th. Learn more

Use the code Spreeconf_RB to get 33% off!


Nate Lowrie

unread,
Jan 23, 2014, 8:51:39 AM1/23/14
to spree...@googlegroups.com
+1 on what Ryan said. Properties like material belong in the Spree Properties. I do believe that Spree as Ransack support built in to search on those properties, but don't quote me on that. Maybe @radar can answer that one.

Ryan Bigg

unread,
Jan 30, 2014, 10:38:58 PM1/30/14
to spree...@googlegroups.com
Yes we do have scopes for that:

Spree::Product.with_property_value('Material', 'Cotton')

Reply all
Reply to author
Forward
0 new messages