spree-multi-domain
spree-multi-domain copied to clipboard
SearchBar needs to list just Taxonomys by Store
Inside the Searcbar the "select#taxon" needs to show just the Taxonomies from current_store. Also the searchfilter needs to be reviewed. If we choose "All Departments" the lookup needs to be done within our store_taxonomies, not within all taxonomies.
How is that going to be possible? A product can belong to more than one store, and that selection is only made when creating/updating a product. How could we limit the taxonomies?
Sample Data:
store-a -taxon-a -taxon-aa store-b -taxon-b -taxon-bb
Product1 -taxon-a -taxon-b Product2 -taxon-a
if you go to www.store-a.local you will find inside the select-box at the search-bar all taxonomies (a,aa,b,bb). i would say that isn't correct.
if we make a search, the search has to be done within "a" and "aa", since they belong to current_store. result would be Product1 and Product2.
if we look go to store-b.local, we'll find just Product1.