Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Order in Search Page without Relevance when ordering by price
- This topic has 7 replies, 2 voices, and was last updated 4 years, 6 months ago by
Ernest Marcinko.
-
AuthorPosts
-
December 1, 2021 at 6:59 pm #35840
niumalta96
ParticipantWe have a situation where in the search page (not in the ajax search heade) when someone sorts by Price Desc or Price Asc, the results are also being ordered/grouped by the relevance of the search terms as well.
So just to explain myself better. If someone searches for ‘batteries’ and there are 10 results with different prices and 5 of them have ‘batteries’ in the title the other 5 do not have.
After someone sorts the results by price asc first we are getting the 5 results that have ‘batteries’ in the title ordered by price asc after those 5 products we have the other 5 products that do not have ‘batteries’ in the title in price ASC. Therefore the price is not ascending from the first product till the last.
This makes sense for us when doing the ajax search filter in the header however we do not want the relative ordering/sorting on the search page as well.
Is there a way to have the search page only ordered by price without any relevance whilst keeping the same relevance ordering for the ajax search filter?
December 2, 2021 at 1:07 pm #35844Ernest Marcinko
KeymasterHi,
The relevance should not affect that when ordering by the price.
Can you please make sure you are using the most recent release of the plugin (4.21.6), it might be an issue, which had been resolved earlier.
Let me know!December 2, 2021 at 3:27 pm #35845niumalta96
ParticipantYou cannot access this content.
December 3, 2021 at 9:48 am #35851Ernest Marcinko
KeymasterOkay. Can you please then add temporary FTP access?
I would like to debug the query to see what is going wrong with the ordering.December 4, 2021 at 8:14 am #35859niumalta96
ParticipantYou cannot access this content.
December 4, 2021 at 4:18 pm #35871Ernest Marcinko
KeymasterThank you very much!
I actually found a problem, I had to make direct edits to multiple files to resolve it. It should be okay now. I will make sure to include this in the upcoming release.
December 4, 2021 at 5:47 pm #35872niumalta96
ParticipantThank you for your assistance. I can confirm that it is working fine now and moved the plugin to the live environment.
December 5, 2021 at 10:08 am #35873Ernest Marcinko
KeymasterPerfect, thank you!
I will make sure to include this fix in the next upcoming release.
-
AuthorPosts
- You must be logged in to reply to this topic.