Filter Products by Attribute does not work after update
-
I used the “Filter Products by Attribute” widget for my product category page. Everything is ok. But in last week, after i update woocommerce, this widget does not show up. Please check this function.
Thanks
-
Hi there!
Just tested on my own local site to confirm that the Filter By Attributes widget is working fine on the Storefront theme:
Link to image: https://d.pr/i/gJ8z6sIf you’re still seeing the same behavior, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.This is very likely a conflict, but I’d want to make sure we’re not missing any details before I suggest a conflict test.
i just test it with storefront on new website. Still not wordking
### WordPress Environment ### WordPress address (URL): https://lapduc.com Site address (URL): https://lapduc.com WC Version: 4.5.1 REST API Version: ✔ 4.5.1 WC Blocks Version: ✔ 3.1.0 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 1.5.0 Log Directory Writable: ✔ WP Version: 5.5.1 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.10 PHP Post Max Size: 32 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.62.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 10.3.24-MariaDB-log-cll-lve Max Upload Size: 32 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 4.5.1 WC Database Prefix: 43j9YU6eC_ Total Database Size: 68.09MB Database Data Size: 39.10MB Database Index Size: 28.99MB 43j9YU6eC_woocommerce_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_order_itemmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_abj404_logsv2: Data: 22.76MB + Index: 19.01MB + Engine MyISAM 43j9YU6eC_abj404_logs_hits: Data: 5.11MB + Index: 2.38MB + Engine MyISAM 43j9YU6eC_abj404_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_abj404_permalink_cache: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 43j9YU6eC_abj404_redirects: Data: 4.95MB + Index: 6.79MB + Engine MyISAM 43j9YU6eC_abj404_spelling_cache: Data: 0.01MB + Index: 0.01MB + Engine MyISAM 43j9YU6eC_actionscheduler_actions: Data: 0.00MB + Index: 0.02MB + Engine MyISAM 43j9YU6eC_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 43j9YU6eC_actionscheduler_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 43j9YU6eC_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB 43j9YU6eC_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 43j9YU6eC_litespeed_img_optm: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 43j9YU6eC_loginizer_logs: Data: 0.03MB + Index: 0.02MB + Engine MyISAM 43j9YU6eC_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_options: Data: 2.27MB + Index: 0.06MB + Engine InnoDB 43j9YU6eC_postmeta: Data: 0.11MB + Index: 0.03MB + Engine InnoDB 43j9YU6eC_posts: Data: 3.48MB + Index: 0.06MB + Engine InnoDB 43j9YU6eC_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 43j9YU6eC_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 43j9YU6eC_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 43j9YU6eC_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 43j9YU6eC_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 43j9YU6eC_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 43j9YU6eC_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 43j9YU6eC_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM 43j9YU6eC_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 43j9YU6eC_yoast_indexable: Data: 0.08MB + Index: 0.08MB + Engine InnoDB 43j9YU6eC_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 43j9YU6eC_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 43j9YU6eC_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 43j9YU6eC_yoast_seo_links: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 43j9YU6eC_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 55 blocks: 2 nav_menu_item: 29 oembed_cache: 1 page: 8 post: 2 product: 2 revision: 179 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (8) ### 404 Solution: by Aaron J – 2.22.10 Classic Editor: by WordPress Contributors – 1.6 LiteSpeed Cache: by LiteSpeed Technologies – 3.4.2 Loginizer: by Softaculous – 1.5.8 Phuc88bmt Theme Optimizer: by Phuc88bmt – 1.0 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.29 WooCommerce: by Automattic – 4.5.1 Yoast SEO: by Team Yoast – 14.9 – Installed version not tested with active version of WooCommerce 4.5.1 ### Inactive Plugins (0) ### ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: VND (₫) Currency Position: right Thousand Separator: . Decimal Separator: , Number of Decimals: 1 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: – ### WC Pages ### Shop base: #326 - /shop/ Cart: #327 - /cart/ Checkout: #328 - /checkout/ My account: #329 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Storefront Version: 2.7.0 Author URL: https://woocommerce.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### Action Scheduler ### Complete: 5 Oldest: 2020-09-14 06:15:58 +0000 Newest: 2020-09-14 15:19:04 +0000 Pending: 1 Oldest: 2020-09-14 15:20:04 +0000 Newest: 2020-09-14 15:20:04 +0000i don’t know the logic of function get_filtered_term_product_counts. When i revert it back. My widget work well 🙂
The file is class-wc-widget-layered-nav.php
Thank you for following up.
Investigating further, the behavior you’re seeing on the store indeed seems like a bug that’s fixed in the latest version of WooCommerce.
Can you please try updating to the latest version (4.5.2) and see if you’re still seeing the same behavior?
It working great. Thanks bro
Glad that helps!
I’ll mark this topic as solved for now. Please feel free to open a new topic if you have any other questions.
The topic ‘Filter Products by Attribute does not work after update’ is closed to new replies.