|| at Jul 22, 2013 at 10:32 pm
That's also something I was working on :) The API has a separate,
dedicated 'taxons' endpoint in addition to the 'taxonomies' endpoint. It
gives full access to all taxons, so your search should work there, via
the /api/taxons route. Again, it's clunky (you have to do two separate
searches), but it should work.
Best of luck!
On 23/07/2013 5:18 AM, email@example.com wrote:
Hi Daniel, and thank you for your pointer! :-)
Now if I can only figure out how to go from a permalink string (such as
"clothing/sweaters") to the taxon identifier, I'll be all set. :-) (The
individual taxons doesn't seem to be searchable; for example,
"/api/taxonomies/<ID>/taxons?q[name_cont]=X" doesn't do anything.)
Have a good week!
On Monday, July 22, 2013 1:42:02 AM UTC+2, Daniel Carter wrote:
I've been playing with the API recently and hit the same issue. I
managed to get it work using 'classifications_taxon_id_in' instead of
'taxon_ids_in' in the search string.
I'm guessing the reason the former works and the latter doesn't is
because the Product and Taxon models are associated via an intermediary
table called 'classifications' (seehttp://guides.spreecommerce.com/developer/products.html#taxons-and-taxonomies).
My gut feeling is that there's a better way to do this, though, so if
anyone else has any ideas I'd really love to hear them!
Hope that helps!