multiple product filter attributes do not negate other attributes
-
Hello
I have imported multiple product attributes. The Filter Products by Attribute seems to work fine with single attributes. When using multiple filters on products, the filters do not negate other attributes that are not associated with a particular product. This allows the user to select a filter that does not exist for an already filtered list, which is not user friendly.
Basically, once a user applies a filter, I want the other filters to be updated with only the attributes remaining for the already filtered list of products to avoid confusion. How is this achieved?
-
Hi @dkifiak
I understand that Filter Products by Attribute is only working with single attributes and not for multiple attributes.
So that we can have more context, can you please share your site URL or an example that explains this?
It will be helpful if you include a copy of your site’s System Status in your response. 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.
Hello
My site is not yet open to the internet , so you will not be able to get to my url.
### WordPress Environment ### WordPress address (URL): https://badguycomics.com Site address (URL): https://badguycomics.com WC Version: 6.8.0 REST API Version: ? 6.8.0 WC Blocks Version: ? 8.0.0 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.41 (Ubuntu) PHP Version: 7.4.3 PHP Post Max Size: 8 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.34-MariaDB-0ubuntu0.20.04.1 Max Upload Size: 8 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: 6.8.0 WC Database Prefix: b4w1xpmtb1_ Total Database Size: 302.39MB Database Data Size: 251.33MB Database Index Size: 51.06MB b4w1xpmtb1_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB b4w1xpmtb1_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB b4w1xpmtb1_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_actionscheduler_actions: Data: 6.52MB + Index: 5.52MB + Engine InnoDB b4w1xpmtb1_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_actionscheduler_logs: Data: 4.52MB + Index: 3.03MB + Engine InnoDB b4w1xpmtb1_aioseo_cache: Data: 0.11MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_aioseo_notifications: Data: 0.02MB + Index: 0.06MB + Engine InnoDB b4w1xpmtb1_aioseo_posts: Data: 0.03MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_aws_cache: Data: 1.52MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_aws_index: Data: 38.56MB + Index: 17.03MB + Engine InnoDB b4w1xpmtb1_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB b4w1xpmtb1_itsec_bans: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_itsec_dashboard_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_itsec_distributed_storage: Data: 4.50MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_itsec_fingerprints: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_itsec_lockouts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB b4w1xpmtb1_itsec_logs: Data: 4.52MB + Index: 0.11MB + Engine InnoDB b4w1xpmtb1_itsec_mutexes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_itsec_opaque_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_itsec_temp: Data: 0.02MB + Index: 0.06MB + Engine InnoDB b4w1xpmtb1_itsec_user_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_options: Data: 98.33MB + Index: 0.31MB + Engine InnoDB b4w1xpmtb1_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_pmxi_imports: Data: 0.08MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_pmxi_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_postmeta: Data: 61.59MB + Index: 9.03MB + Engine InnoDB b4w1xpmtb1_posts: Data: 15.52MB + Index: 2.47MB + Engine InnoDB b4w1xpmtb1_qss: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_termmeta: Data: 2.52MB + Index: 3.03MB + Engine InnoDB b4w1xpmtb1_terms: Data: 2.52MB + Index: 3.03MB + Engine InnoDB b4w1xpmtb1_term_relationships: Data: 2.52MB + Index: 1.52MB + Engine InnoDB b4w1xpmtb1_term_taxonomy: Data: 2.52MB + Index: 3.03MB + Engine InnoDB b4w1xpmtb1_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_usermeta: Data: 1.50MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB b4w1xpmtb1_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_wc_category_lookup: Data: 0.42MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB b4w1xpmtb1_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB b4w1xpmtb1_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_wc_product_attributes_lookup: Data: 1.52MB + Index: 0.47MB + Engine InnoDB b4w1xpmtb1_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_wc_product_meta_lookup: Data: 0.45MB + Index: 0.63MB + Engine InnoDB b4w1xpmtb1_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_woof_stat_buffer: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_woof_stat_tmp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_woot_tables: Data: 0.02MB + Index: 0.00MB + Engine InnoDB b4w1xpmtb1_woot_tables_columns: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_woot_tables_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_woot_vocabulary: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_yoast_indexable: Data: 0.16MB + Index: 0.14MB + Engine InnoDB b4w1xpmtb1_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB b4w1xpmtb1_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB b4w1xpmtb1_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB b4w1xpmtb1_yoast_seo_links: Data: 0.05MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 8102 custom_css: 1 customize_changeset: 3 flamingo_contact: 2 itsec-dash-card: 6 itsec-dashboard: 1 mc4wp-form: 1 nav_menu_item: 38 oembed_cache: 36 page: 31 product: 4067 revision: 1 sa_slider: 2 shop_order: 1 sp_wps_shortcodes: 2 wp_global_styles: 1 wpcf7_contact_form: 4 ### Security ### Secure connection (HTTPS): ? Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ? ### Active Plugins (31) ### A-Z Listing: by Dani Llewellyn – 4.3.1 Advanced Woo Search: by ILLID – 2.60 Better Search Replace: by Delicious Brains – 1.4.1 Child Theme Configurator: by Lilaea Media – 2.5.9 Contact Form 7 - Dynamic Text Extension: by Chris Mavricos SevenSpark – 2.0.3 Contact Form 7: by Takayuki Miyoshi – 5.6.2 Facebook for WooCommerce: by Facebook – 2.6.20 Flamingo: by Takayuki Miyoshi – 2.3 Gallery Slider for WooCommerce: by ShapedPlugin – 1.1.9 GazChap's WooCommerce Auto Category Product Thumbnails: by Gareth 'GazChap' Griffiths – 1.4 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.7.0 Jetpack: by Automattic – 11.2 Google Ads & Marketing by Kliken: by Kliken – 1.0.8 Mailchimp for WooCommerce: by Mailchimp – 2.7.2 MC4WP: Mailchimp for WordPress: by ibericode – 4.8.7 Media Library Assistant: by David Lingren – 3.01 Active Products Tables for WooCommerce: by realmag777 – 1.0.6 Sezzle WooCommerce Payment: by Sezzle – 4.0.5 Page Builder by SiteOrigin: by SiteOrigin – 2.16.17 Slide Anything - Responsive Content / HTML Slider and Carousel: by – 2.4.5 Storefront Top Bar: by Wooassist – 1.1.1 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.22.14 PickPlugins Product Filter for WooCommerce: by PickPlugins – 1.0.9 Product Slider for WooCommerce: by ShapedPlugin – 2.5.7 WooBought - WooCommerce Live Sales Notifications: by Maarten Belmans – 1.3.7 WOOCS - WooCommerce Currency Switcher: by realmag777 – 1.3.8 WooCommerce Stripe Gateway: by WooCommerce – 6.5.1 WooCommerce PayPal Payments: by WooCommerce – 1.9.2 WooCommerce Shipping & Tax: by WooCommerce – 1.26.3 WooCommerce: by Automattic – 6.8.0 WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.2.6 ### Inactive Plugins (9) ### Enhanced Text Widget: by Clever Widgets – 1.5.3 ImageMagick Engine: by Orangelab – 1.7.4 iThemes Security: by iThemes – 8.1.2 SiteOrigin Widgets Bundle: by SiteOrigin – 1.39.0 Woo Store Vacation: by MyPreview – 1.4.5 WP Encryption - One Click SSL & Force HTTPS: by WP Encryption SSL – 5.7.20 Wp Maximum Upload File Size: by CodePopular – 1.0.9 YITH WooCommerce Wishlist: by YITH – 3.12.0 Yoast SEO: by Team Yoast – 19.5.1 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left 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 ### Shop base: #18 - /?page_id=18 Cart: #19 - /?page_id=19 Checkout: #20 - /?page_id=20 My account: #21 - /?page_id=21 Terms and conditions: #1055 - /?page_id=1055 ### Theme ### Name: Boutique_Child Version: 2.0.17 Author URL: https://woocommerce.com Child Theme: ? Parent Theme Name: Storefront Parent Theme Version: 4.1.2 Parent Theme Author URL: https://woocommerce.com/ WooCommerce Support: ? ### Templates ### Overrides: boutique_child/woocommerce/cart/cart-empty.php boutique_child/woocommerce/cart/cart-item-data.php boutique_child/woocommerce/cart/cart-shipping.php boutique_child/woocommerce/cart/cart-totals.php boutique_child/woocommerce/cart/cart.php boutique_child/woocommerce/cart/cross-sells.php boutique_child/woocommerce/cart/mini-cart.php boutique_child/woocommerce/cart/proceed-to-checkout-button.php boutique_child/woocommerce/cart/shipping-calculator.php boutique_child/woocommerce/checkout/cart-errors.php boutique_child/woocommerce/checkout/form-billing.php boutique_child/woocommerce/checkout/form-checkout.php boutique_child/woocommerce/checkout/form-coupon.php boutique_child/woocommerce/checkout/form-login.php boutique_child/woocommerce/checkout/form-pay.php boutique_child/woocommerce/checkout/form-shipping.php boutique_child/woocommerce/checkout/order-receipt.php boutique_child/woocommerce/checkout/payment-method.php boutique_child/woocommerce/checkout/payment.php boutique_child/woocommerce/checkout/review-order.php boutique_child/woocommerce/checkout/terms.php boutique_child/woocommerce/checkout/thankyou.php boutique_child/content-widget-price-filter.php ### WooCommerce PayPal Payments ### Onboarded: – Shop country code: CA WooCommerce currency supported: ? PayPal card processing available in country: ? Pay Later messaging available in country: – Webhook status: – Vault enabled: – Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour 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-08-10 22:31:45 +00:00 Options: ? Notes: 67 Onboarding: completed ### Action Scheduler ### Complete: 18,304 Oldest: 2022-07-10 22:56:51 +0000 Newest: 2022-08-10 13:53:03 +0000 Failed: 2 Oldest: 2022-04-15 18:37:28 +0000 Newest: 2022-06-17 13:43:29 +0000 Pending: 1 Oldest: 2022-08-10 19:44:46 +0000 Newest: 2022-08-10 19:44:46 +0000 ### Status report information ### Generated at: 2022-08-10 13:58:20 +00:00
Hello
I have noticed some oddities. I have multiple attribute filters set to “OR”. These leads to the unwanted results. Even , with the “OR” in one filter it should limit the fields available in the other filters. The great thing about “OR” is that it allows a user to choose multiple options in the same filter. If everything has to change to “AND”‘s that negates a lot of functionality of filtering. Ie, it would be just better to use the search bar instead.
Hello,
once a user applies a filter, I want the other filters to be updated with only the attributes remaining for the already filtered list of products to avoid confusion
To get the functionality you were originally looking to have, setting the query type to
AND
should work out.Here is a link to our documentation that tells the difference between
AND
andOR
: https://woocommerce.com/document/woocommerce-widgets/#section-6If everything has to change to “AND”‘s that negates a lot of functionality of filtering. Ie, it would be just better to use the search bar instead.
Can you please give us more details on the expected behavior?
Hello
When adding a product filter based on attributes,If I set the criteria to “AND” in a dropdown it limits selection to one choice on that filter attribute. But “OR” allows for multiselect of attributes. The same multiselect could be accomplished with “AND” and a “IN” criteria on the filter. However, this is not the main issue.
The main issue is as stated above, with “OR” filtering on all products filters, if a user selects on attribute in a filter -> hits apply = this should still negate all attributes to the products to have be filtered on the first pass. The “OR” criteria should be specific to the filter applied, and not to all filters. So, you might need an enhancement based on the incorrect logic of applying “OR” across multiple filters. One way to achieve this would be with a multi-select “AND” specific to a filter.
Where can I can upload some screenshots?
Hi @dkifiak
Thank you for your update
Where can I can upload some screenshots?
For screenshots you can use https://snipboard.io – please follow the instructions on that page, then paste the URL in this thread.
The main issue is as stated above, with “OR” filtering on all products filters, if a user selects on attribute in a filter -> hits apply = this should still negate all attributes to the products to have be filtered on the first pass.
What you are seeing is the default behavior of WooCommerce.
When browsing a certain product category, all product attributes will be seen on the sidebar filter, including attributes not related to that category.
That said, you can get a dynamic/contextual attributes’ filtering on your store by using this extension:
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
Hello
I will try the advanced layered navigation. Seems like something that should be free versus paid.Hi @dkifiak
I will try the advanced layered navigation.
Nice! If you run into any trouble or have any questions while using the extension, please note that we have an exclusive support channel for customers of our Premium extensions:
https://woocommerce.com/my-account/create-a-ticket/Seems like something that should be free versus paid.
That sounds like a great idea to me.
I’d recommend submitting your suggestion as an enhancement request here:
https://github.com/woocommerce/woocommerce/blob/trunk/.github/CONTRIBUTING.md#feature-requestsRegards
- The topic ‘multiple product filter attributes do not negate other attributes’ is closed to new replies.