Latitude/Longitude as Required Field

This topic contains 6 replies, has 3 voices, and was last updated by  Paolo 8 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #47172

    Anita C
    Free User
    Post count: 50

    Not sure what is happening on here but I posted this same message about 10 minutes ago and it disappeared.

    I’d like to know if the latitude/longitude as a required field can be disabled in order to upload all of the other information. If someone has 1,000 or 2,000 businesses and they want to use your product – they are hindered by having to add the latitude/longitude on all of those a head of time. It would be easier to allow the upload without it and then go back and add latitude/longitude on each on while inside WP.

    If there isn’t a way to do it – can you please tell me what file controls this function so I can take a look at it myself?

    #47176

    Guust
    Moderator
    Post count: 29970

    I’ll get Paolo to have a look at your question too, but i am not so sure what you suggest would be easier or faster anyway.

    http://www.findlatitudeandlongitude.com/ has a bulk tool for conversion to lat and lng you might be interested in.

    #47177

    Anita C
    Free User
    Post count: 50

    Yes, I tried that link on another project and unfortunately the results it found were incorrect and unreliable.

    In my opinion, and I’ve been doing this type of work for years – it would be faster to have the “required” requirement removed from those two fields so that the import can happen. But it you all aren’t able to do that – please direct me to the file within the plugin that controls the import function and I will try to come up with my own code.

    Thank you.

    #47179

    Guust
    Moderator
    Post count: 29970

    While we wait for Paolo, why not just add some lat and lng, for example 5 for all, and then import. They should import just fine like that, and then you csn go into WP admin and fix as you suggest. Even adding zero for lat and lng will work, as long it is not empty.

    #47267

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    rather than editing the import function, if you want to edit them all one by one via the back end after importing, wouldn’t it be easier to add dummy lat and long coordinates for all the listings and then correct them?

    You can copy and paste the same numbers for all your listings much faster than it will take you to modify the import function.

    In addition you can only modify the function editing core plugin files (considered a customization beyond support), which will make you lose all your changes after every updates.

    Let us know,

    Thanks

    #47270

    Anita C
    Free User
    Post count: 50

    Well, I guess that would be an option. We can try that and hopefully we won’t receive any errors.

    By the way, any custom functions I would need to make wouldn’t be made in the core plugin itself. I would add them to my own plugin like I have previously on another project. So I wouldn’t lose any changes if your plugin was updated.

    I just find it odd, that even when asking twice – what file would contain the restricted code – no one has provided what that file is. I ask a question and don’t get the answer.

    #47285

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    for developers wanting to do customizations we provide a searchable codex: https://wpgeodirectory.com/docs/codex/geodirectory_functions/geodir_ajax_import_export/

    This is a core function of GeoDirectory and not everything can be customized via a 3rd plugin.

    Customizations are not included in the support we provide here.

    Thank you

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

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

Open Support Ticket