How to Make Street Address Optional

This topic contains 41 replies, has 7 voices, and was last updated by  HelloYoga 9 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #23052

    directory
    Expired Member
    Post count: 1502

    Is there a way to make the street address optional and just keep the city, state and zip code as required fields?

    I have more than one site now that requires this feature because they are service related where listing owners work from home and don’t want to disclose their exact address.

    It’s now becoming more obvious that requiring street address is more suitable for displaying places and venues but not for service professionals who work from home.

    #23055

    Paolo
    Site Admin
    Post count: 31206

    They can insert the ciy name twice. In address and city field if they don’t want to disclose their full address. But that filed can’t be made optional.

    Thx

    #23063

    Guust
    Moderator
    Post count: 29970

    Or anything like “My online business” after you have set the location on the map.
    Basically like Paolo says, the address field cannot be empty, but it can contain anything you like AFTER you set the location on the map.

    #30761

    jimmymoto
    Full Member
    Post count: 91

    I am facing the same problem with home-based services not wanting their location to show on map.
    I suppose I could specify a transparent png as an invisible map anchor, but that would require a separate CPT or category for such businesses (not a big deal really).

    It would be nice however if there could be a way to control the map tab based visibility on custom post type basis (I believe the map tab can only be shown/hidden globally via GD/Design/Detail). A map tab doesn’t make sense for home-based services that don’t want to show their location (there are A LOT of these businesses).

    #33709

    HelloYoga
    Free User
    Post count: 48

    Hi,

    are you going to add option for address field to be optional? Or is there a way to have only city, country and state as required fields? We want to have listings assigned only to cities without exact address.

    Thanks,
    Michal

    #33736

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    simply input only the city name in the address field.

    It will work.

    Thanks

    #33917

    HelloYoga
    Free User
    Post count: 48

    Hi Paolo,

    Understood. This will do for now as a temporary workaround.

    Our directory will have yoga teachers. They are like mobile freelancers. They usually don’t want to list their home address. They may teach in a number of different venues. So, we want to make it mandatory for them to input just the country and state they are based in. Some may choose to also mention the city they are in.

    However, we also want them to have the option of specifying an entire pinpoint address if they really want to. For example, they may own their studio and it may be the only place they ever teach.

    #34685

    HelloYoga
    Free User
    Post count: 48

    On second thoughts, this is actually a major usability issue for us. My target market are generally not tech savvy and we have to keep things as simple as possible. Workarounds like this will confuse them.

    Our ideal situation for yoga teachers is like the teacher sign up on this site:
    http://www.yogatrail.com/listing/add

    And, on the teacher profile, it will only show the country, state and city:
    http://www.yogatrail.com/teacher/anton-brandt-875699

    So, if this is not going to be possible within a few weeks, we’re going to have to find another plugin to implement our teacher directory.

    That said, we do appreciate that the plugin is called GEO-Directory – i.e. it focuses on locations.

    If you know any other plugins that might be more suitable for our purposes, please let us know.

    Best regards,
    Dylan Robertson

    #34705

    Paolo
    Site Admin
    Post count: 31206

    Hi Dylan,

    I’m not 100% sure, but I think this can be done with jQuery. I totally failed at writing the jQuery snippet myself (I’m not that good with jQuery), but I believe it is possible to hide the address and automatically populate it with the name of the city selected.

    The snippet shouldn’t be longer than a couple of lines of code.

    I’ll ask Stiofan if he can confirm and correct what I did. We will keep you posted.

    Thanks

    #34753

    HelloYoga
    Free User
    Post count: 48

    @paolo

    That sounds great and it would be fantastic if you can integrate such measures into the plugin.

    I imagine that the three customers posting in this thread are not the only ones who would like this level of flexibility. However, we respectfully recognize that you guys have a lot on your plate.

    In the Feature Requests section, there is a request for “Non-location based Listings (Like websites).” Whilst their requirement is a bit different, perhaps we can merge it with ours so that you can hit two birds with one stone? Or should we regard this as a separate feature?

    We were going to add it as a new/separate request, but couldn’t find how:
    https://wpgeodirectory.com/support/topic/how-to-add-request/

    Please kindly advise.

    Best regards,
    Dylan Robertson

    #34756

    Guust
    Moderator
    Post count: 29970

    Hi Dylan and ManilaBoy, have a look at this article, I have done some testing and it should work, but let us know if things don’t quite work out.
    http://docs.wpgeodirectory.com/how-to-use-gd-without-street-addresses/

    #34759

    HelloYoga
    Free User
    Post count: 48

    @guust
    Thank you very much for your kind and rapid response. Really appreciate the amazing value your team brings for such a low price.

    What you showed looks ideal. However, it would be great if this could be built into the Geodirectory plugin as selectable options in the admin UI.

    We are thinking that we would make two separate directory pages:

    1. For location-based listings such as yoga studios. This would work as usual.

    2. For yoga teacher listings that can be filtered by country, state and city.

    For #2, is there a way to turn off maps completely? Yoga teachers will not want a map pinpoint because it is their home address. Also, we don’t want to confuse site visitors into thinking they can visit the teacher’s home.

    Teachers just want to be listed under their Country, State (and sometimes, city). And, we want the site visitors to be able to search for a yoga teacher in their area by filtering listings by country, state and city.

    How would you suggest we implement #2 above?

    Best regards,
    Dylan Robertson

    #34766

    Guust
    Moderator
    Post count: 29970

    Hi Dylan, like it says on that page: “This will apply to all your listings.”
    Unless you have some conditional code that knows what CPT the listing is. That might be something Paolo can help with.

    You can turn maps off using some code, but again, you only want it for one CPT only, which needs conditional coding.

    #34769

    HelloYoga
    Free User
    Post count: 48

    @guust

    Ok, thank you very much for clarifying.

    Since custom coding by us will void the support and possibly interfere with future plugin updates, it seems like we’ll probably decide to use Geodirectory for location-based listings such as studios and find another plugin for yoga teachers.

    But, I am not a technical person, so please advise if I am misunderstanding.

    Best regards,
    Dylan Robertson

    #34771

    Guust
    Moderator
    Post count: 29970

    There would be no need to touch any of the plugin themselves. Coding would just be added to your child theme. Let’s wait for Paolo’s input.

Viewing 15 posts - 1 through 15 (of 42 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