This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 1 year, 1 month ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Filter result is not accurate
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 1 year, 1 month ago.
We are using the product filter shortcode – “[wd_asp id=1]” for https://shootersdelightstaging.gcdev.com.au/shop/ left side filters. For the filter “Brand” we have a custom function in functions.php and we use product tags for the brand. When we select the “A-ZOOM” brand, it shows 50 products but if you have it in the backend we only have 38 products with the assigned tag “A-ZOOM” (https://shootersdelightstaging.gcdev.com.au/wp-admin/term.php?taxonomy=product_tag&tag_ID=593&post_type=product&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dproduct_tag%26post_type%3Dproduct%26s%3DA-ZOOM).
The filter result also shows some products which have 0 tags assigned. How do we fix this so it only shows 38 products?
Hi,
Thank you for the details!
I see that filter is added programmatically. I checked the custom code, and the “allow_empty” argument was set to “true” – which allowed results to show up where the tag is not defined. I corrected that in the custom codes on both filters: https://i.imgur.com/ixCrA7B.png
It should be okay now.
Best,You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |