Parent Category shows empty products
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from pundit on July 5, 2023, 20:05Hi Support,
First Issue -
I created a checkbox filter using the smart-designer for the Categories in my store. So the categories have subcategories (that is, the structure has Parent categories and Child categories). So the main category might have a count of 5, meaning the subcategories under the main categories has products in them, but if a user clicks the main category - the filter loads and says no product. But if you collapse the main categories to show the subs/child categories they have products.For example,
Computer & AV Cables 4 (MAIN Category)Connectors & Cable Management 1 (Sub)Network Cables 3 (Sub)If you click on the checkbox for Computer & AV Cables 4, the filter will load and bring out No product. And once it loads, there won't be subcategories showing under the Computer & AV Cables checkbox.How can I resolve this, It should be like this - if you click the main category, and the filter loads, the new page should review the 4 products in that category. And at the sidebar widget - the filter will be collapsed and reveal the subcategories showing the count.
Second Issue -
Also, another issue is - if you toggle and uncollapse all the products and categories - it keeps going down and opening. Initially, it was meant to go hidden as the user toggles each, but I changed the css style to be visible also overflow-y: auto; z-index: 100; position: sticky; top: 0; max-height: calc(100vh - 150px); but it keeps making the widget sidebar to be tacky and long. Can the filer work in a way, when you toggle/open a category or product that has subs, and you click another category that has subs - the initial sub you clicked before will automatically toggle back to the + and closes the previously opened subs. I hope you get what I am trying to explain in both points.
And the Final thing, how can I set the filter to be able to select products from two categories? I mean by selecting two or more checkboxes.
Hi Support,
First Issue -
I created a checkbox filter using the smart-designer for the Categories in my store. So the categories have subcategories (that is, the structure has Parent categories and Child categories). So the main category might have a count of 5, meaning the subcategories under the main categories has products in them, but if a user clicks the main category - the filter loads and says no product. But if you collapse the main categories to show the subs/child categories they have products.
For example,
If you click on the checkbox for Computer & AV Cables 4, the filter will load and bring out No product. And once it loads, there won't be subcategories showing under the Computer & AV Cables checkbox.How can I resolve this, It should be like this - if you click the main category, and the filter loads, the new page should review the 4 products in that category. And at the sidebar widget - the filter will be collapsed and reveal the subcategories showing the count.
Second Issue -
Also, another issue is - if you toggle and uncollapse all the products and categories - it keeps going down and opening. Initially, it was meant to go hidden as the user toggles each, but I changed the css style to be visible also overflow-y: auto; z-index: 100; position: sticky; top: 0; max-height: calc(100vh - 150px); but it keeps making the widget sidebar to be tacky and long. Can the filer work in a way, when you toggle/open a category or product that has subs, and you click another category that has subs - the initial sub you clicked before will automatically toggle back to the + and closes the previously opened subs. I hope you get what I am trying to explain in both points.
And the Final thing, how can I set the filter to be able to select products from two categories? I mean by selecting two or more checkboxes.
Quote from Pablo Borysenco on July 6, 2023, 11:53Hello
1 Please add FTP access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png
2 Unfortunately the plugin does not have this feature. In this case, you need to customize the JS code
Hello
1 Please add FTP access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png
2 Unfortunately the plugin does not have this feature. In this case, you need to customize the JS code
Quote from pundit on July 6, 2023, 12:09Thanks for your response.
Please I have added the FTP details just for the staging site only.
As for the second issue - I've fixed it with CSS.
So please help look into the checkbox issue with the parent category as explained above. Thanks.
Also, I am having another difficulty with the breadcrumb from the single-product page.
When the user is on the product page, and he/she clicks the category from the breadcrumb on the single product page, the URL shows correctly that the product falls under the child category and has other categories. But when the user clicks the last subcategory or main category..... the page just loads and takes the user to the shop page showing all products. The behavior should be - when a subcategory or main category is clicked from the single product page - the page should load to the shop page and then filter and show just the category/subcategory selected.
Thanks for your response.
Please I have added the FTP details just for the staging site only.
As for the second issue - I've fixed it with CSS.
So please help look into the checkbox issue with the parent category as explained above. Thanks.
Also, I am having another difficulty with the breadcrumb from the single-product page.
When the user is on the product page, and he/she clicks the category from the breadcrumb on the single product page, the URL shows correctly that the product falls under the child category and has other categories. But when the user clicks the last subcategory or main category..... the page just loads and takes the user to the shop page showing all products. The behavior should be - when a subcategory or main category is clicked from the single product page - the page should load to the shop page and then filter and show just the category/subcategory selected.
Quote from pundit on July 7, 2023, 09:47Hello Support and Admin,
Please I know it is almost the weekend and you don't work weekends. Please kindly help fix these two issues.
The parent category shows well now - Really grateful. But I realized that these two issues are also not fixed yet;
- If you toggle and uncollapse all the products and categories - it keeps going down and opening. Initially, it was meant to go hidden as the user toggles each, but I changed the CSS style to be visible also overflow-y: auto; z-index: 100; position: sticky; top: 0; max-height: calc(100vh - 150px); but it keeps making the widget sidebar to be tacky and long. Can the filer work in a way, when you toggle/open a category or product that has subs, and you click another category that has subs - the initial sub you clicked before will automatically toggle back to the + and closes the previously opened subs. I hope you get what I am trying to explain in both points.
You mentioned that it has to be JS - please can you help fix it or elaborate on how to get it fixed.
2. Also, I am having another difficulty with the breadcrumb from the single-product page.
When you are on the product page, and you hover on the category/subcategory link from the breadcrumb on the single product page, the URL shows correctly that the product falls under a category or has other categories. But when you click the last subcategory or main category on the breadcrumb..... the page just loads and takes the user to the shop page showing all products. The behavior should be - when a subcategory or main category is clicked from the single product page on the breadcrumb - the page should load to the shop page and then filter products and show just the products in the category/subcategory selected/clicked.
Thanks in anticipation.
Hello Support and Admin,
Please I know it is almost the weekend and you don't work weekends. Please kindly help fix these two issues.
The parent category shows well now - Really grateful. But I realized that these two issues are also not fixed yet;
- If you toggle and uncollapse all the products and categories - it keeps going down and opening. Initially, it was meant to go hidden as the user toggles each, but I changed the CSS style to be visible also overflow-y: auto; z-index: 100; position: sticky; top: 0; max-height: calc(100vh - 150px); but it keeps making the widget sidebar to be tacky and long. Can the filer work in a way, when you toggle/open a category or product that has subs, and you click another category that has subs - the initial sub you clicked before will automatically toggle back to the + and closes the previously opened subs. I hope you get what I am trying to explain in both points.
You mentioned that it has to be JS - please can you help fix it or elaborate on how to get it fixed.
2. Also, I am having another difficulty with the breadcrumb from the single-product page.
When you are on the product page, and you hover on the category/subcategory link from the breadcrumb on the single product page, the URL shows correctly that the product falls under a category or has other categories. But when you click the last subcategory or main category on the breadcrumb..... the page just loads and takes the user to the shop page showing all products. The behavior should be - when a subcategory or main category is clicked from the single product page on the breadcrumb - the page should load to the shop page and then filter products and show just the products in the category/subcategory selected/clicked.
Thanks in anticipation.
Quote from Pablo Borysenco on July 7, 2023, 14:04Hello
- I did a test - https://c2n.me/4iU0PUC - It looks like it's working properly
- Unfortunately the plugin does not have this feature. We do not have a ready-made custom solution for you
- the breadcrumb from the single-product page - We have nothing to do with breadcrumbs, you should write in support of the current theme
Hello
- I did a test - https://c2n.me/4iU0PUC - It looks like it's working properly
- Unfortunately the plugin does not have this feature. We do not have a ready-made custom solution for you
- the breadcrumb from the single-product page - We have nothing to do with breadcrumbs, you should write in support of the current theme
Quote from pundit on July 9, 2023, 09:31Hello Support,
The category filter still gives few issues that needs to be settled please. Please I need these three issues to be fixed.
1. If you expand a category and select a subcategory, once the page loads/filter - the categories collapse to only the main
categories so you cannot see what you have selected in the sub/child category.The behavior should be like your example in https://demo-sd.products-filter.com/swoof/locations-islington/ so when the page loads, the parent category will expand and show the child category. https://imgur.com/a/a1RKcSS
Once you expand a category, then it should stay expanded until the filters are reset.
2. If a parent category is selected, and then you drill down to a subcategory, the higher category should unselect. Right now if you select a subcategory, it still shows the total of the largest category selected. If you select a subcategory, it should be narrowing the search result...
I've tried the AND, OR logic.... but still not getting what I want.Private screenshot
After selecting a checkbox, and If you select a second new checkbox, the previous checked box should be de-selected.
3. I've sent you the details in the private data portal.
Hello Support,
The category filter still gives few issues that needs to be settled please. Please I need these three issues to be fixed.
1. If you expand a category and select a subcategory, once the page loads/filter - the categories collapse to only the main
categories so you cannot see what you have selected in the sub/child category.
The behavior should be like your example in https://demo-sd.products-filter.com/swoof/locations-islington/ so when the page loads, the parent category will expand and show the child category. https://imgur.com/a/a1RKcSS
Once you expand a category, then it should stay expanded until the filters are reset.
2. If a parent category is selected, and then you drill down to a subcategory, the higher category should unselect. Right now if you select a subcategory, it still shows the total of the largest category selected. If you select a subcategory, it should be narrowing the search result...
I've tried the AND, OR logic.... but still not getting what I want.
Private screenshot
After selecting a checkbox, and If you select a second new checkbox, the previous checked box should be de-selected.
3. I've sent you the details in the private data portal.
Quote from Pablo Borysenco on July 10, 2023, 13:24Hello
- Can you create a video with the issue
- The plugin does not have such a feature. The logic "AND" should help
- Unfortunately, we do not have time for custom tasks
Hello
- Can you create a video with the issue
- The plugin does not have such a feature. The logic"AND" should help
- Unfortunately, we do not have time for custom tasks
Quote from pundit on July 10, 2023, 14:16
- Please I have uploaded the video for the first issue - it in the Private Data.Please just want the categories with the sub categories expanded after you've selected a product under a child category and the pages loads/filters - it hsould be opened like this Private screenshot
- Yes the AND logic works for selecting just one, but because of dynamic count option and hide empty terms makes it difficult.
- I want the clear filter option to be on the top of the widget - just the way you have it here Private screenshot
- Please I have uploaded the video for the first issue - it in the Private Data.Please just want the categories with the sub categories expanded after you've selected a product under a child category and the pages loads/filters - it hsould be opened like this Private screenshot
- Yes the AND logic works for selecting just one, but because of dynamic count option and hide empty terms makes it difficult.
- I want the clear filter option to be on the top of the widget - just the way you have it here Private screenshot
Quote from admin on July 10, 2023, 19:20@pundit
Hello
Support will see into the issue [emailing or here]
What about "Put a line between the Search in found set and Clear Filters X" - add above filter widget shortcode [woof_search_options], I just did it on the demo: https://demo.products-filter.com/swoof/onsale/product_cat-man/ -> https://c2n.me/4iV2uvV.jpg
@pundit
Hello
Support will see into the issue [emailing or here]
What about"Put a line between the Search in found set and Clear Filters X" - add above filter widget shortcode [woof_search_options], I just did it on the demo: https://demo.products-filter.com/swoof/onsale/product_cat-man/ -> https://c2n.me/4iV2uvV.jpg
Quote from pundit on July 11, 2023, 22:31HI support,
Thanks for your responses. But I still haven't figured out the issues with the parent category showing all products in a selected child category.
If a parent category is selected, and then you select a sub-category, the parent category should unselect. Instead of showing all the products in the selected sub-category or the selected child category.
Right now if you select a child category after first selecting the parent category, it will show the total products from the parent category (which includes other child categories). It should just be the child category products to show
I've tried the AND logic... it doesn't work the way I want - because if you use AND logic and you select a parent category or sub-category - it will just show empty.
But I used the OR logic, and it shows - but what I want is when you select the parent category and later select a child category - the filter should only show products from that selected child category and not show the products from other child categories.Private screenshot
<blockquote class="imgur-embed-pub" lang="en" data-id="uXaeMad"><a href="//imgur.com/uXaeMad"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>2. Also, if you select a parent category instead of the + (expansion) button, can the filter automatically open it to show all the sub-categories/child categories under that parent category?
HI support,
Thanks for your responses. But I still haven't figured out the issues with the parent category showing all products in a selected child category.
If a parent category is selected, and then you select a sub-category, the parent category should unselect. Instead of showing all the products in the selected sub-category or the selected child category.
Right now if you select a child category after first selecting the parent category, it will show the total products from the parent category (which includes other child categories). It should just be the child category products to show
I've tried the AND logic... it doesn't work the way I want - because if you use AND logic and you select a parent category or sub-category - it will just show empty.
But I used the OR logic, and it shows - but what I want is when you select the parent category and later select a child category - the filter should only show products from that selected child category and not show the products from other child categories.
Private screenshot
<blockquote class="imgur-embed-pub" lang="en" data-id="uXaeMad"><a href="//imgur.com/uXaeMad"></a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
2. Also, if you select a parent category instead of the + (expansion) button, can the filter automatically open it to show all the sub-categories/child categories under that parent category?
Quote from Pablo Borysenco on July 12, 2023, 10:25Hello
- We checked, the parent category does not have any product - https://c2n.me/4iVIXg6.png - and of course, if the product is not marked throughout the taxonomy hierarchy, the "AND" logic will not work the way you want. an example: Search by: Computer & AV Cables AND Fiber Optic - this will give you zero products because you don't have a product that has those two categories at the same time. As a solution, you need to tag products throughout the category hierarchy
- Unfortunately the plugin does not have this feature.
Hello
- We checked, the parent category does not have any product - https://c2n.me/4iVIXg6.png - and of course, if the product is not marked throughout the taxonomy hierarchy, the"AND" logic will not work the way you want. an example: Search by: Computer & AV Cables AND Fiber Optic - this will give you zero products because you don't have a product that has those two categories at the same time. As a solution, you need to tag products throughout the category hierarchy
- Unfortunately the plugin does not have this feature.
Quote from pundit on July 14, 2023, 08:33Hi admin, it seems you don't understand my issue. But thanks for your responses.
I've been able to fix the issue without the Autosubmit/AJAX function. But I also need to make it work when the filter works on Autosubmit/Ajax page load. So please can you show me where the exact PHP code that handles AJAX requests for url is located in your files? I hope you can really show me the file/code before you go for the weekend break.
Thanks in anticipation.
Hi admin, it seems you don't understand my issue. But thanks for your responses.
I've been able to fix the issue without the Autosubmit/AJAX function. But I also need to make it work when the filter works on Autosubmit/Ajax page load. So please can you show me where the exact PHP code that handles AJAX requests for url is located in your files? I hope you can really show me the file/code before you go for the weekend break.
Thanks in anticipation.
Quote from Pablo Borysenco on July 14, 2023, 12:25Hello
In file - \wp-content\plugins\woocommerce-products-filter\index.php - code - https://c2n.me/4iWOCob.png
Hello
In file - \wp-content\plugins\woocommerce-products-filter\index.php - code - https://c2n.me/4iWOCob.png
Quote from pundit on July 18, 2023, 15:01please kindly read my private data panel
please kindly read my private data panel
Quote from Pablo Borysenco on July 19, 2023, 12:01Hello
ok! Done!
Hello
ok! Done!