Reply To: Exlcude variations from search results IF the variable/parent product is shown?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Exlcude variations from search results IF the variable/parent product is shown? Reply To: Exlcude variations from search results IF the variable/parent product is shown?

#15493

iscsales
Participant

Ernest,

I noticed something unusual related to this change. While the results are being removed exactly as requested, it looks like the number of results and the pages of results are both thrown off. For example, this page shows 50 results with 11 appearing on page one, then there is a 404 on page 2:

https://www.isconline.com/?post_type=product&s=hiviz+lime&asp_active=1&p_asid=1&p_asp_data=Y3VycmVudF9wYWdlX2lkPTE4NTM4Jndvb19jdXJyZW5jeT1VU0QmcXRyYW5zbGF0ZV9sYW5nPTAmYXNwX2dlbiU1QiU1RD10aXRsZSZhc3BfZ2VuJTVCJTVEPWNvbnRlbnQmYXNwX2dlbiU1QiU1RD1leGNlcnB0JmN1c3RvbXNldCU1QiU1RD1wcm9kdWN0JmN1c3RvbXNldCU1QiU1RD1wcm9kdWN0X3ZhcmlhdGlvbiZjdXN0b21zZXQlNUIlNUQ9cG9zdA==

Is there a way that this code snippet can also be used to correct the number of results and pagination?