Tagged: search results
-
AuthorPosts
-
November 24, 2025 at 3:56 am #1491703
Hi there!
I have a range of products listed in our e-com store that are restricted by specific user IDs. To do this, we use a plugin called Members Only.
These products are private and cannot be purchased or viewed by the general public – only specific logged in users can see their specific custom products. To a general user browsing our website, these products do not display in the shop (which is correct). However, if someone was to use the search bar for an item (e.g. “Flag”), these private, restricted products display in the search dropdown.
Search result dropdown, logged out user:
https://www.dropbox.com/scl/fi/590zcjp3uqnwnlsk8oro9/ClientPortal_LoggedOut_Flag.png?rlkey=xvg6qvjiuxf7o6w0tinu7s0tq&dl=0When you click “view all results”, these products don’t display in the results page – so it’s only in the dropdown itself.
These products are set to not display in the search results, as a failsafe:
https://www.dropbox.com/scl/fi/0fjw5836a5tbzzuwky6hn/ClientPortal_SuperButcherFlag_ShopOnly.png?rlkey=mnxq6izhmmw1x4ra5y3c1bbd9&dl=0Yet they’re still displaying.
I’ve reached out to Plugin Republic, the dev for Members Only, and they’ve said it’s a theme issue:
Is there a filter they could use to check if the product is restricted before it gets displayed in the search results dropdown please?
Thank you in advance for your help :)
November 24, 2025 at 6:38 am #1491707Hey sarahd167,
Thank you for the inquiry.
You may need to use the avf_ajax_search_query filter to adjust how the items in the search results are retrieved. Please forward this filter to the plugin developers — they will know the correct query to use.
Best regards,
IsmaelNovember 24, 2025 at 6:55 am #1491711Hey Ismael,
Amazing, thank you very much! I’ve forwarded that onto the plugin developers. Fingers crossed!
I appreciate your help, thank you!
Many thanks,
SarahNovember 24, 2025 at 7:40 am #1491721 -
AuthorPosts
- You must be logged in to reply to this topic.
