Skip Navigation

[Resolved] Location disappears when trying to search y distance

This thread is resolved. Here is a description of the problem and solution.

Problem:
There was a UI glitch with Toolset maps which meant that in certain circumstances a location entered using the auto-fill could be immediately overwritten and lost.

Solution:
This has been fixed and updating Maps will resolve the issue.

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 14 replies, has 3 voices.

Last updated by gavinS-2 6 years, 9 months ago.

Assisted by: Nigel.

Author
Posts
#604268

I am trying to: Create a search filter by distance

Link to a page where the issue can be seen: hidden link

I expected to see: Results filtered by distance

Instead, I got: When I try and input a location, the location disappears, and when I click on search it says 'Please fill out this field'

#604353

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Gavin

It appears that you have inserted the search filters via a widget, is that correct?

You must update results via a page refresh with a submit button when you include the search form in a widget.

I checked that myself on a local test site and it worked as expected.

Can you update your View and re-test?

#604357

Hi Nigel

Thanks, but I do have the submit button there below the other filters?

#604358

The location clears before I can press submit

#604362

Hmm.. It seems to work if I only have a location filter, but if I add other filters on the same page, then the location clears before I can submit.

#604367

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Gavin

Sorry, the styling of the button meant I didn't notice it.

It still seems to me, though, that there is an ajax request submitted once the location has been chosen.

Can you double-check your View. It should update results via a page refresh, and not by ajax.

#604380
screenshot.png

Hi Nigel

I have checked the button for "Full page refresh when visitors click on the search button".

(See screenshot attached)

I have tried this on another test view and it seems to only work when I only have the location filter. If I add another filter for dates or my taxonomy options, then it doesn't work.

#604390

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, thanks for confirming.

Let me try and reproduce this on my local test site and I'll get back to you a little later...

#604447

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

chicago.gif

Hi Gavin

I tested again, this time including other filters in the search form, and I was able to reproduce the problem, which you can see in this screenshot.

I found it sometimes worked after the initial failed attempt, but that the problem was also visible whether the search form was in a separate widget or not.

I've escalated this so that it can be investigated further, and I'll report back when I have some news.

Thanks for your patience.

#614087

Hi Nigel

Any news on this?

#614105

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Gavin

I checked the internal tickets and the issue was confirmed by the developers (it happens when the View filter form and View results are inserted separately) and a fix has been produced. It is currently undergoing testing along with several other bug fixes that will be included in a single Maps update.

I don't have a date for when that will be published, but I expect it to be soon. I'll raise it with the developers and if it looks like being delayed I'll ask them to produce a patch for this particular issue that you can use in the meantime.

#614108

Fantastic

Thanks for all your help

#615959
#620594

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Gavin

The update came and went and I didn't notice this needed updating.

Hopefully you will have noticed the new Maps versions and have updated, but if not, updating to the latest version you should find this issue fixed.

If you find otherwise let me know.

#620798

Whoohooo

Thanks Nigel (and the rest of the team)

I've actually been too busy with other things to come back to this project since I contacted you guys about this. But I hope to get back to it soon.

Great news as my project really depended on this part working.