Forum Replies Created
-
AuthorPosts
-
April 22, 2015 at 5:46 pm in reply to: Trying to stop JS to add in-line CSS for the .orig class #4567
Ernest Marcinko
KeymasterThat query is the pagination calculation, which is not related. It’s not possible to override the search query to get the results from the ajax search pro, since it works differently.
The plugin does it’s own query, then gets the ID’s of the posts inflicted, then queries these posts as objects. Look for includes/hooks.php for details. The pagination values are set there as well.
Overriding search results is very complicated due to some limitations of wordpress, so be careful with changes.
Ernest Marcinko
KeymasterHi Lee!
Sure, it’s possible. On the General Options -> Behavior tab on the bottom there is an option Max. results, which is set to 10 by default.
April 22, 2015 at 5:13 pm in reply to: Trying to stop JS to add in-line CSS for the .orig class #4563Ernest Marcinko
KeymasterIf you just refresh that page or click on the link the POST data is not sent again.
The plugin will only override if the query is sent via the ajax search pro search box, because it needs additional POST data for the override to work correctly. Using simply a link or the default search box won’t work.
Ernest Marcinko
KeymasterCurrently only by custom CSS, for example:
[code]p.asp-try a {
color: #FFF !important;
}[/code]Ernest Marcinko
KeymasterYou’re welcome!
Sure, I’ve cleared the information, so it’s no longer accessible.
Ernest Marcinko
KeymasterThank you for the details, I think I have found the solution finally.
Upon activation the search tables were created with the incorrect prefix. I’ve made a modification to the main search file and re-activated the plugin. I also created a search instance with the name “test”.
Thanks again, I’ll surely add this bug fix to the upcoming release.
Ernest Marcinko
KeymasterGreat!
You can edit your first post in this thread, or upload a txt file with the details. Both methods are safe and only visible to me and you.
Ernest Marcinko
KeymasterHi!
Okays. This is a known problem, but so far you are only the 3rd person to report it. I remember it was something with an incorrect database prefix or something, but I could not solve it permanently because I didn’t have ftp access to the other servers, so I was just guessing.
If you have a test server or anything I can access via FTP with this problem it would be awesome. I could finally figure out what’s causing this, because I was unable to reproduce it on my test servers.
April 22, 2015 at 2:11 pm in reply to: Trying to stop JS to add in-line CSS for the .orig class #4545Ernest Marcinko
KeymasterI guess it should work, if the changes are not too major, so I don’t think you need other changes.
Ernest Marcinko
KeymasterI think I understand a bit better now. You are trying to search Custom Fields for Customer data.
On the General Options->Sources panel, you can select which fields you want to search, I have already selected a few, see screenshot: http://i.imgur.com/u2XDg7M.png
Next, I have created a filter for price as an example. This is how it looks like on the back end: http://i.imgur.com/7PR12GK.png
It shows a slider on the front-end with a range of 1-1000000: http://i.imgur.com/CtuKWga.pngErnest Marcinko
KeymasterLook I’m happy to help you, but I have to ask questions to know what you are trying to achieve with the plugin.
What do you mean by clearing the query?
Do you know the name of the custom field which holds the product price?I will try to set up an example with explanations, but I need this information 😉
Ernest Marcinko
KeymasterDo you know the name of the custom field is storing the price of the product?
I will try to set up a filter related to the price, but I don’t know which custom field holds the price.
Ernest Marcinko
KeymasterThe support is FREE
All I’m asking is to be respectful with me, as I’m respectful with you.
Ernest Marcinko
KeymasterI don’t think it’s time wasting… I’m not even obligated to give any kind of support.
Other authors may give you only paid support, and being rude and abusive with me might result in a ban from the ticket system.
Please be respectful, as I’m only trying to help you for free of charge.
April 22, 2015 at 1:12 pm in reply to: Trying to stop JS to add in-line CSS for the .orig class #4530Ernest Marcinko
KeymasterHi!
You had a custom filter enabled, which does not match anything, plus the search in posts and pages was disabled.
Moreover the search.php file in your theme does invoke new queries based on the default search query, I’m guessing because of the grouping of the results. The problem with that is, that there is no way of overriding those queries from plugin code, so you might need to do it programaticaly. It means that the theme already has it’s custom search code, and it overrides the overriden search query by ajax search pro.
-
AuthorPosts