Geolocation
This topic contains 9 replies, has 3 voices, and was last updated by Alex Rollin 6 years, 7 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
August 23, 2018 at 8:45 am #443670
Hi,
I am having trouble with the geolocation. When the user allows to be geolocated, the location/me page opens and shows the nearby listings correctly. However, when choosing any of the menu’s post types, or after returning to the home page, the geolocation is lost and I get all listings displayed, regardless of location…
Am I missing some setting? I think this was working before, and coincidentally after the last update this is no longer working (but I have made other changes as well).Thanks,
AndreAugust 23, 2018 at 1:08 pm #443702The location/me page does not set a location, but the listings that are shown are “near your physical location”, not near a “city location”.
Because the page does not “set” a city location, the links to categories cannot link to specific city location categories.
Hopefully that is a bit clearer. ThanksAugust 23, 2018 at 11:14 pm #443793Hi Guust,
I was expecting (and believe it was like this before) that when I am either geolocated (location/me) or select a city, then clicking on one of the categories on the menu would show me the listings close to my location or selected city.
Please check here: parentland.pt
August 24, 2018 at 12:28 am #443795Only if a city location is set, not when you are shown listings around your physical geolocation.
If there is no city slug in the page URL, then no city location has been set.
ThanksAugust 27, 2018 at 9:01 am #444152Hi Guust,
That seems to me like a major drawback…
I am wondering now about the UX:
1. User accepts to be geolocated
2. Main page refreshes and Popular Post View plugins show listings around his location
3. User decides to select one of the CPT from the main menu
4. Page opens without location set…Is there any other way, such as that the menu URL also change according to location, like the Popular Post View which has the “View All” URL changed:
… ?geodir_search=1&stype=gd_activities&s&snear=Near:%20Me&sgeo_lat=41.3442048&sgeo_lon=-8.7318528
Thanks
AndreAugust 27, 2018 at 9:42 am #444167With V2 there is the option to have a city location ‘set’ when the user lands on a Detail page (also) as opposed to only when they choose a location from the location switcher or land on a location page.
About your question, I am not sure I understand what you are getting at with the URL. Could you clarify more what you are trying to achieve?
August 27, 2018 at 1:42 pm #444198That sounds like a plan.
Regarding my question, perhaps easier to show it on my website:
Regardless of being geolocated (location/me) or not, the menu URLs point to the default listings, e.g. https://parentland.pt/activities/
But if I am geolocated, the View All link on the Popular Post View widgets show me the “near me” listings: https://parentland.pt/?geodir_search=1&stype=gd_activities&s&snear=Near:%20Me&sgeo_lat=41.3442048&sgeo_lon=-8.7318528
Would be interesting that also the menu items, as well as the CPT widget would do the same, ie, change the URL to show the “near me” listings such as above.
August 27, 2018 at 3:39 pm #444210With V2 also yes the “Places” menu link can have the location ‘set’ so that the menu item is redirected to the URL like site.com/CPT/country/region/city
The “View All” is a search page in that case, which is the only way to show the ‘distance to’ information.
August 27, 2018 at 6:12 pm #444228Ok, I managed to implement a workaround, with the “Near Me” search only on the search page (so the user can repeat the geolocation).
Looking forward for V2 to get this perfect!
Thanks guys.
August 28, 2018 at 7:23 am #444281Hello,
Please do take time to try out V2 with Location Manager and Advanced Search. We look forward to your feedback.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket