Hi, I want the list of displayed products to optionally be what matches on two or more categories.
That's extremely easy. qry = Product.objects.filter(category=103).filter(category=216).filter(category=312) (and so forth) But what's the best way to do this in the templates? I assume I will need a custom template-tag. The user will select the first category using the default mechanism of clicking on one of the links in the unmodified shop category list. In addition, I plan to have several sets of radio buttons for the user to select the second, third, and additional levels of category filtering. For example: The user may use the first set of radio buttons to select one of several price ranges; or select no filtering on price. The second set of radio buttons may specify one of several materials; or select no filtering on material. If each set of radio buttons is set to no filtering, then category selection should work as the unmodified shop does. When a radio button is set to one of the "filter applied" states, the product listing should automatically change to honor the selection criterion. If one or more of the radio buttons is set to a "filter applied" state when the user clicks on another main category link, the product listing should do the right thing. I've played with template-tags and can probably eventually come up with something; but, I sure would like to get the perspective of the comunity on this. -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
