Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Service Location
This topic contains 20 replies, has 2 voices, and was last updated by Alex Meda 3 years, 2 months ago.
- AuthorPosts
- September 9, 2020 at 5:49 pm #29284
Hi,
In this new project, I would really like you to help me overcome this new challenge that I’ve been doing my best to achieve during the last 2 weeks.Well, as a matter of fact, I implemented 3 options of location for users to locate their service using a “post form”. And I want only the chosen location option information to be displayed in “ASP Results Content”. You’ll find more details in the following video.
Please Click Here
Thanks a lot for your time πSeptember 10, 2020 at 1:21 pm #29297Hi,
The configuration seems to be okay, that field should not be showing. I suspect, that there are probably whitespace characters of some sort in the field, and it is then still considered as “filled”, so it is displayed.
I cannot confirm that only by video, so if you can provide temporary FTP and back-end access, I will be able to check.
If not, well, then this is going to be very hard to debug, but you can try this change, in case it helps:
Best,
1. Make a back-up of your server files, just in case
2. Open up the wp-content/plugins/ajax-search-pro/includes/classes/search/class-asp-search-cpt.php file on your server
3. Replace it’s contents with this
4. Save the file
If there was whitespace in the contents, then this change will help.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 10, 2020 at 5:11 pm #29303You cannot access this content.September 11, 2020 at 1:36 pm #29308Thanks!
The problem is caused by this custom code: https://i.imgur.com/A6hicbG.png
Best,
It is adding another line of “location” but from a different custom field. I added a few lines to to check for empty values, to help you out with that.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 11, 2020 at 4:17 pm #29317Hi π
Thanks for the details…However I wanted to check out your work by creating some other custom posts in order to see if things were working properly with the search results as requested. And unfortunately I haven’t been able to create a post as a subscriber, I mean I have to login in as an administrator in order to create a post. Because the post form doesn’t display for subscriber user role anymore.My request for you is to double-check your code in order make sure that the issue isn’t caused by your code. I suggest you just “cut-paste” your code in another file aside you and use the following test account user( user role: Subscriber) login details to create a post. On the menu just click on the button “Post a Service” If the post form still doesn’t show up then it’s not your code.
Thank you for confirming me this please.
September 11, 2020 at 4:55 pm #29318You cannot access this content.September 14, 2020 at 12:12 pm #29337Hi,
I tried to disable the code, but nothing has changed on the form. It should not affect it in any way, the issue is somewhere else I’m afraid.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 14, 2020 at 12:40 pm #29339Hi Earnest π
Thank you for checking this out for me. We recently identified the isssue some where else and we’re working on it. I will let you know once I start creating other posts in order to test the search feature.
Have an amazing start of the week, take care πSeptember 17, 2020 at 6:30 am #29405You cannot access this content.September 18, 2020 at 6:31 am #29427Hi π
I hope you are doing good. Are you still there?September 18, 2020 at 12:43 pm #29438Sure, sorry I was not able to answer yet.
This is a tough one. I think that using a custom script for this for the front-end search would be the easiest solution. Some sort of an event listener on the location input, and wherever the desired values are selected, hide the other two address inputs (and possibly reset them).
Best,
This may require decent amount of custom coding though. I definitely recommend javascript for this, instead of a back-end (PHP) solution.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 18, 2020 at 6:32 pm #29447Ok thank you so much for the details, I understand π
But how much time do you think this gonna take you to resolve it ?
Once again, I really appreciate your tech support.
Have an amazing weekend and take care πSeptember 19, 2020 at 9:33 am #29456Well, this falls heavily into customization category. We are not available for custom jobs, I am very sorry. You can try looking for custom developers on envato studio perhaps: http://studio.envato.com/
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 21, 2020 at 5:22 pm #29480Hi,
Thank you for the details but as a matter of, I recently hired the same developer who has once worked on ASP customization(It was about displaying on mobile phone, the filters box as soon as the user starts typing) . So I think he can do it, I just need you to give me some instructions that I will forward him to start with.September 23, 2020 at 3:10 pm #29508Hi Ernest π
Are you still there? I hope you’re doing so well π - AuthorPosts
You must be logged in to reply to this topic.