Filter Attributes in Sidebar issue
-
Hello,
I have added Filter products by Attribute in the Sidebar space.
I can see all the filters in that widget.
BUT when I browse in certain Categories, I can also see ALL the store attributes and I expected to see all the relevant attributes for that specific Category. Why am I seeing the attributes that do not belong to that Category?
For example, I have Producers who make Candies shown in the Wine section, as filter attribute.. ??
Is this normal to happen?
Also, I installed for testing https://www.ads-software.com/plugins/woocommerce-products-filter/ and I get the same results. I suspect a WooCommerce bug here..
Thank you!WP 6.0.1 + WooCommerce 6.6.1
Blocksy Theme ( I had a chat with them but there is nothing to do from their side) + Kadence Blocks.
-
Hi there,
Thanks for reaching out.
I need to understand your site setup. It will be great if you could share your current System Status Report. You can get it by navigating to the
WooCommerce / Status
section of your site. Once there, click on theGet system report
button and then copy it by clicking on theCopy for support
button. Then paste it here in a comment.Best,
Hi @laurpm
Thanks for reaching out!
I understand that when filtering products by attribute within a specific category, you are given results of all products with those attributes, even those not related to that specific category, is this correct?
This is not the default WooCommerce behavior as the filtering results produced within a specific cactegory, should only display products within that category.
As a first step, please could you navigate to WooCommerce > Status > Tools and do the following to see if it makes any difference:
– Clear WooCommerce transients
?– Clear expired transients?
– Recount terms?
– Regenerate Product lookup tablesIf that makes no difference, I would recommend performing a full conflict test to rule out any theme/plugin conflicts. The best way to determine this is to:
– Temporarily switch your theme to Storefront
– Disable all plugins except for WooCommerce
– Repeat the action that is causing the problemIf you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each until you find the one causing conflict.
Please see the below documentation for a more detailed explanation of how to do a conflict test here:
https://docs.woocommerce.com/document/how-to-test-for-conflicts
If the issue is still present after performing the conflict test, please could you share a copy of the following:
1. System Status: navigate to WooCommerce > Status. Select ‘Get system report’ and then ‘Copy for support’.
2. Fatal errors: Share a copy of any fatal error log found under WooCommerce > Status > LogsOnce you have these, you can share them in your response here.
Thanks!
hello. switched to storefront
cleared / recounted / regenerated terms and all
disabled all the plugins except woocommerce### WordPress Environment ### WordPress address (URL): https://bun.pixelcat.ro Site address (URL): https://bun.pixelcat.ro WC Version: 6.6.1 REST API Version: ? 6.6.1 WC Blocks Version: ? 7.6.2 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0.1 WP Multisite: – WP Memory Limit: 368 Mo WP Debug Mode: – WP Cron: ? Language: ro_RO External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.30 PHP Post Max Size: 128 Mo PHP Time Limit: 360 PHP Max Input Vars: 15000 cURL Version: 7.71.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 5.7.38 Max Upload Size: 128 Mo Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.6.1 WC Database Prefix: wpjg_ Dimensiune total? baz? de date: 29.95MB Dimensiune date baz? de date: 27.59MB Dimensiune index baz? de date: 2.36MB wpjg_woocommerce_sessions: Date: 0.03 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_api_keys: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_attribute_taxonomies: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_downloadable_product_permissions: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_order_items: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_order_itemmeta: Date: 0.01 MO + Index: 0.01 MO + Motor MyISAM wpjg_woocommerce_tax_rates: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_woocommerce_tax_rate_locations: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_shipping_zones: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_shipping_zone_locations: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_shipping_zone_methods: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_payment_tokens: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_payment_tokenmeta: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_woocommerce_log: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_actionscheduler_actions: Date: 0.31 MO + Index: 0.11 MO + Motor MyISAM wpjg_actionscheduler_claims: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_actionscheduler_groups: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_actionscheduler_logs: Date: 0.22 MO + Index: 0.14 MO + Motor MyISAM wpjg_commentmeta: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_comments: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_links: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_litespeed_url: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_litespeed_url_file: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_options: Date: 3.01 MO + Index: 0.09 MO + Motor MyISAM wpjg_postmeta: Date: 2.79 MO + Index: 0.57 MO + Motor MyISAM wpjg_posts: Date: 12.12 MO + Index: 0.18 MO + Motor MyISAM wpjg_rank_math_internal_links: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_rank_math_internal_meta: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_snippets: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_termmeta: Date: 0.03 MO + Index: 0.03 MO + Motor MyISAM wpjg_terms: Date: 0.03 MO + Index: 0.05 MO + Motor MyISAM wpjg_term_relationships: Date: 0.07 MO + Index: 0.15 MO + Motor MyISAM wpjg_term_taxonomy: Date: 0.03 MO + Index: 0.03 MO + Motor MyISAM wpjg_usermeta: Date: 0.10 MO + Index: 0.01 MO + Motor MyISAM wpjg_users: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_wc_admin_notes: Date: 0.02 MO + Index: 0.00 MO + Motor MyISAM wpjg_wc_admin_note_actions: Date: 0.01 MO + Index: 0.00 MO + Motor MyISAM wpjg_wc_category_lookup: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_wc_customer_lookup: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_wc_download_log: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wc_order_coupon_lookup: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wc_order_product_lookup: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_wc_order_stats: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_wc_order_tax_lookup: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wc_product_attributes_lookup: Date: 0.11 MO + Index: 0.16 MO + Motor MyISAM wpjg_wc_product_download_directories: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_wc_product_meta_lookup: Date: 0.04 MO + Index: 0.04 MO + Motor MyISAM wpjg_wc_rate_limits: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wc_reserved_stock: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wc_tax_rate_classes: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_wc_webhooks: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfblockediplog: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfblocks7: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfconfig: Date: 1.76 MO + Index: 0.01 MO + Motor MyISAM wpjg_wfcrawlers: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wffilechanges: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wffilemods: Date: 3.96 MO + Index: 0.48 MO + Motor MyISAM wpjg_wfhits: Date: 0.01 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfhoover: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfissues: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM wpjg_wfknownfilelist: Date: 2.86 MO + Index: 0.15 MO + Motor MyISAM wpjg_wflivetraffichuman: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wflocs: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wflogins: Date: 0.01 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfls_2fa_secrets: Date: 0.02 MO + Index: 0.02 MO + Motor InnoDB wpjg_wfls_settings: Date: 0.02 MO + Index: 0.00 MO + Motor InnoDB wpjg_wfnotifications: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfpendingissues: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfreversecache: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfsnipcache: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM wpjg_wfstatus: Date: 0.02 MO + Index: 0.01 MO + Motor MyISAM wpjg_wftrafficrates: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM ### Post Type Counts ### attachment: 823 ct_content_block: 1 custom_css: 1 customize_changeset: 229 nav_menu_item: 64 page: 16 post: 5 product: 422 product_variation: 131 revision: 134 shop_order: 4 wcp_ruleset: 1 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (1) ### WooCommerce: de Automattic – 6.6.1 (este disponibil? actualizarea la versiunea 6.7.0) ### Inactive Plugins (17) ### Blocksy Companion (Premium): de CreativeThemes – 1.8.41 Code Snippets: de Code Snippets Pro – 3.1.1 Conditional Payments for WooCommerce: de Lauri Karisola / WP Trio – 2.3.1 Facebook for WooCommerce: de Facebook – 2.6.17 JetFormBuilder: de Crocoblock – 2.1.0 JetFormBuilder Advanced Color Picker: de Crocoblock – 1.0.2 Kadence Blocks – Gutenberg Blocks for Page Builder Features: de Kadence WP – 2.4.12 Kadence WooCommerce Email Designer: de Kadence WP – 1.5.2 LiteSpeed Cache: de LiteSpeed Technologies – 4.6 Loco Translate: de Tim Whitlock – 2.6.2 Rank Math SEO: de Rank Math – 1.0.93 WebP Converter for Media: de Mateusz Gbiorczyk – 4.4.1 WooCommerce Google Analytics Integration: de WooCommerce – 1.5.11 WooCommerce Stripe Gateway: de WooCommerce – 6.4.3 Wordfence Security: de Wordfence – 7.5.11 WP Mail SMTP: de WPForms – 3.4.0 WPvivid Backup Plugin: de WPvivid Team – 0.9.74 ### Settings ### API Enabled: – Force SSL: – Currency: RON (lei) Currency Position: right_space Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: ? ### WC Pages ### Baz? magazin: #5 - /magazin/ Co?: #6 - /cart/ Finalizare: #7 - /checkout/ Contul meu: #8 - /contul-meu/ Termeni ?i condi?ii: #32 - /termeni-si-conditii/ ### Theme ### Name: Storefront Version: 4.1.1 Author URL: https://woocommerce.com/ Child Theme: ? – Dac? modifici WooCommerce ?ntr-o tem? p?rinte pe care nu ai construit-o personal recomand?m folosirea unei teme copil. Vezi: Cum creezi o tem? copil WooCommerce Support: ? ### Templates ### Overrides: – ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page Disabled Features: minified-js settings Daily Cron: ? Next scheduled: 2022-07-14 18:25:26 +03:00 Options: ? Notes: 43 Onboarding: skipped ### Action Scheduler ### Finalizeaz?: 1.204 Oldest: 2022-07-12 21:54:26 +0300 Newest: 2022-07-14 17:32:02 +0300 ?n a?teptare: 14 Oldest: 2022-07-14 17:32:32 +0300 Newest: 2022-07-14 21:59:24 +0300 ### Status report information ### Generated at: 2022-07-14 17:33:06 +03:00
no issuess except some facebook (this is a dev machine and is not connected to facebook) 07-12-2022 @ 22:19:49 – There was an error trying sync products using the Catalog Batch API for job c4c9b7c9fd669f2140be24e96f494a59: Cannot create the API instance because the access token is missing.
The issue persists.
I know that the filters worked on an older WooCommerce release.. ??Hi @laurpm
What you are seeing is default behavior of WooCommerce.
As an example, if you are browsing a certain category, you will see all the available attributes (including attributes not related to that category) on the sidebar filter regardless of the category page you are viewing.
I hope this helps!
I’m verry sorry to hear that, but what’s the logic behind this? What if I have 300 attributes with 30 terms? Are all displayed on the sidebar??
take for example the woocommerce site.
the attributes available are ONLY for Footwear!
https://themes.woocommerce.com/storefront/product-category/clothing/footwear/by the way, your WooCommerce version is 6.5.1 (from the above link)
Try updating and see how the filters perform.Hi @laurpm
As @nawaz0705 pointed out, this is the default behavior of the WooCommerce core plugin. This is the case regardless of the version.
However, you can get a dynamic/contextual attributes’ filtering on your store by using this extension:
* Ajax-Enabled Enhanced Layered Navigation
The demo site at *themes.woocommerce.com/storefront* that you referred to is making use of it. That’s why you’re seeing the filters get changed according to each category.
Just so you know, in the WooCommerce.com marketplace we offer a 30-day refund policy, so you can test the extension and make sure it works for you.
Regards
Hi @laurpm ,
Thanks for providing the Status report.
Just for clarity, are you referring to the actual sidebar widget displaying all attributes when in a certain category, as seen in the screenshot below? If so, then this is expected WooCommerce behavior:
https://snipboard.io/JB1i4u.jpg
Or are you referring to the filtering results within a specific category producing results unrelated to products within that specific category? If so, then this is not expected WooCommerce behavior and would require further troubleshooting.
Please let me know!
Hello,
I am reffering to the actual sidebar widget that displays all the shop’s attributes when browsing certain categories. But those attributes should not appear and dissapear depending on the Category you are browsing?
I installed for testing Classic Widgets plugin https://www.ads-software.com/plugins/classic-widgets/ and used that filtering system and it works as expected..Hi @laurpm,
Thank you for providing clarity on the issue at hand.
But those attributes should not appear and dissapear depending on the Category you are browsing?
Correct. The
Filter Product by Attribute
widget remains consistent in the sidebar, regardless of what category you are viewing.I installed for testing Classic Widgets plugin https://www.ads-software.com/plugins/classic-widgets/ and used that filtering system and it works as expected..
Happy to hear that you have found a plugin that helps you achieve the desired results.
Please feel free to mark this topic as
resolved
in the sidebar if you no longer require any further help with this.Thanks ??
- The topic ‘Filter Attributes in Sidebar issue’ is closed to new replies.