Skip Navigation

[Resolved] Views order by distance bug?

This support ticket is created 6 years, 4 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 7 replies, has 2 voices.

Last updated by Nigel 6 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#957096
toolset_mapsBug.jpg

I am trying to:
Display the closest result based of geolocation (see attached screenshot). When all results are returned the ordering is correct based off my location. I want to be able to return the closest store based off the users location.

I expected to see:
Recline Furniture Morayfield (when result limit is set to 1)

Instead, I got:
Recline Furniture Castle Hill (see attached screenshot)

When I want to limit the results to 1 (to display just the closest store) the result is incorrect.

Is this unexpected behaviour due to the post limit query happening prior to the geocode lookup? Is there any way just to return the closest store without having to write my own custom jQuery?

#957182

Nigel
Supporter

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

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

Hi Darren

I tested this locally and found the same, it's a bug.

I've reported it and will let you know as soon as I have any feedback.

#958374

Thanks for letting me know, glad I could help find the bug.

#959867

Nigel
Supporter

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

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

The Maps developer is looking at this today.

While waiting for news I'll reset the status of this to escalated.

#1072527

Nigel
Supporter

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

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

Hi Darren

The issue has been identified and will be fixed in the next release. That's due in a couple of weeks. The developer said the nature of the fix made it difficult to extract into a patch, so we won't have an update before then I'm afraid.

#1093310

Hi Nigel,

Any ETA on the new version?

#1123003

Still following this up... has the bug been fixed?

#1123420

Nigel
Supporter

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

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

Sorry Darren

I overlooked advising you that Maps was updated some time ago (it got held up for a while with a backlog of plugins requiring QA testing).

The current version is 1.5.4, please go ahead and update.