I am using the 6.2x dev.
I am able to filter taxonomy by any term, even if that term is empty. When I choose to filter by that empty term (because I dont know its empty), I get a blank page back and the advanced catalog filters are gone. (Ie, I cannot just choose to filter by something else).
So either I need to find a way to hide empty terms (so users cannot filter by them), or a way to keep the AC filter on the top (or bottom). Potentially with a message (block in the body?), that says "No items found for your search".
Otherwise we are just having confused customers. Ideas?
Comments
Comment #1
Eli Baskin commentedI have this issue as well.
Furthermore, after getting this empty page, when hitting 'back' button and trying to add a product to the cart from the displayed list, it is not added to the cart and a blank page is displayed again. Then, after I am trying to click on *any* category, a blank page is displayed, with only category name as header.
Comment #2
3cwebdev commentedI've got a working hack that makes it so that only product's taxonomy that are in the current view are listed in the filter. I plan on posting the patch as soon as I tweak it to work more globally and not just in my specific setup. It seems to be working good though and would resolve this issue.
Comment #3
3cwebdev commentedI've created a patch the alters uc_advanced_catalog.pages.inc and uc_advanced_catalog.filters.inc to do the following:
This has only been tested on one site and works good in its scenario. Further testing on different sites is required.
This is also my first patch file. I hope I've created it correctly. The one file contains patched for both files in the module.
Comment #4
3cwebdev commentedComment #5
shotokai commented@setfree
I wanted to confirm that this worked on my setup, say thanks, and chime in for the inclusion of this functionality in the next release
Comment #6
timurek commentedWill this fix work also with prefix for drupal tables?
Comment #7
timurek commented... and the answer is no. Patch uses hardcoded table names, therefore it does not work on installations which use table prefix.
Comment #8
timurek commentedYou have to use table names like {node} and {term_node}. But still - issue is not fixed. I have two filters on cck fields, when there is no product which should be displayed on current filter setting, no products nor filter is not shown, so I cannot re-set it. Works like before applying the patch :-/ Automatical filter reset on empty page does not work as well :-/
Comment #9
maxneb commentedI have the same problem. The Patch does`t help. I use filters by taxonomy and attributes, and I need to get message "No items found for your search" instead of blank page and make the filter fields don`t disappear.
Comment #10
Eli Baskin commentedSame here.
Comment #11
TriAdX commentedThis needs fixed bad... Whole sections of my store dissapear when you switch sections because of this issue.
Going back to the original section to change the advanced filter back to show all is not something you should have to do...
PLEASE fix.
Comment #12
Eli Baskin commented+100.
Comment #13
mogtofu33 commentedFixed on 06-01-2011 dev snapshot.
Thanks for the patch but i use function taxonomy_term_count_nodes() to get taxonomy with nodes and change uc_advanced_catalog_products() to handle "no products" display.
Regards.
Mog.
Comment #15
timurek commentedWorks nicely, thanks!