Geolocation to set city

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 5 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #475473

    vivek
    Full Member
    Post count: 246

    Hi , i understand that the “Near me” button triggers the geolocation (and makes the browser ask the user for location sharing permission), and then shows the location near me with lat/long.

    I am using “selected cities’ in my directory and want to give the user and option to set the city based on the geolocation, rather than asking user to select using location switcher

    ie. say i am currently in a city called “Pune” and the ‘near me” button takes me to this URL: https://yopune.com/location/near/me/18.5683732,73.9079119/

    However, i would like it to see that this lcoation is in Pune, and so take me to https://yopune.com/location/maharashtra/pune

    In my desired city location page, the links to CPTs are also changed to the city, whereas in the near/me/lat/long the CPT links are generic (all cities), and not contextualised to near me anymore

    Any suggestions on how i can achieve this?

    thanks,
    Vivek

    #475571

    Alex Rollin
    Moderator
    Post count: 27815

    No, those are two different things/features. It would require a customization.

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount