Vote count:
0
Lets say i have two taxonomies:
Categories
USP Categories
- Speedy delivery
- Custom made
Once i am on the "overview page" of the "categories" taxonomy , i am not able to filter on the "usp categories" taxonomy.
Product filter code:
def ProductFilters.usp_filter
taxons = Spree::Taxonomy.find_by_machine_name('usp_categories').root.descendants
{
name: Spree.t(:possibilities),
scope: :in_taxons,
labels: taxons.sort_by(&:name).map { |t| [t.name, t.id] },
conds: nil # not needed
}
end
In the query it uses two ANDS:
AND `spree_products_taxons`.`taxon_id` IN (7, 8, 9) AND `spree_taxons`.`id` IN (4)
This doesnt seem to work. Does anyone have a clue?
asked 2 mins ago
Spree - filter by taxon on taxon overview page
Aucun commentaire:
Enregistrer un commentaire