Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Service Location
- This topic has 20 replies, 2 voices, and was last updated 5 years, 8 months ago by
Alex Meda.
-
AuthorPosts
-
September 9, 2020 at 5:49 pm #29284
Alex Meda
ParticipantHi,
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 #29297Ernest Marcinko
KeymasterHi,
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:
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.September 10, 2020 at 5:11 pm #29303Alex Meda
ParticipantYou cannot access this content.
September 11, 2020 at 1:36 pm #29308Ernest Marcinko
KeymasterThanks!
The problem is caused by this custom code: https://i.imgur.com/A6hicbG.png
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.September 11, 2020 at 4:17 pm #29317Alex Meda
ParticipantHi 🙂
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 #29318Alex Meda
ParticipantYou cannot access this content.
September 14, 2020 at 12:12 pm #29337Ernest Marcinko
KeymasterHi,
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.
September 14, 2020 at 12:40 pm #29339Alex Meda
ParticipantHi 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 #29405Alex Meda
ParticipantYou cannot access this content.
September 18, 2020 at 6:31 am #29427Alex Meda
ParticipantHi 🙂
I hope you are doing good. Are you still there?September 18, 2020 at 12:43 pm #29438Ernest Marcinko
KeymasterSure, 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).
This may require decent amount of custom coding though. I definitely recommend javascript for this, instead of a back-end (PHP) solution.September 18, 2020 at 6:32 pm #29447Alex Meda
ParticipantOk 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 #29456Ernest Marcinko
KeymasterWell, 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/
September 21, 2020 at 5:22 pm #29480Alex Meda
ParticipantHi,
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 #29508Alex Meda
ParticipantHi Ernest 🙂
Are you still there? I hope you’re doing so well 🙂 -
AuthorPosts
- You must be logged in to reply to this topic.