• Resolved mrglennbosch

    (@mrglennbosch)


    Just a question regarding the default format of address. For example in the list of address it shows the following format (not in the pop-up):

    [company name]
    [address] [City] [State] [Zip] (all shown on one row)
    [Country]

    Have a look at : https://www.taxatiemanagementinstituut.nl/locaties/
    —————–
    Bedrijfsnaam
    Ernststraat 189 Amsterdam Noord-Holland 1083 GV
    Nederland
    —————–
    I realise some countries do have different address formats. Although I saw in some of your screenshots the format was somehow different. Did I miss something?
    —————–
    I would prefer the following standard format:
    [company name]
    [address]
    [Zip] [City]
    [Country]
    —————-
    Maybe add an option to include [address_2] and [state]
    —————

    Just want to say a great plugin, any news regarding a premium version

    https://www.ads-software.com/plugins/wp-store-locator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    If you open the /js/wpsl-gmap.js file and search for ‘function storeHtml’, then look at the bottom of that function. You will see a line that starts with this.

    html = "<li data-store-id='" + id + "'>

    If you scroll to the right you will see city, state, zip etc. You can change the order in the js file there.

    The html for the info window is created in the ‘function createInfoWindowHtml’. Where you can also change the order of the data.

    In the 2.0 version you will be able to set the address format through the settings panel.

    Thread Starter mrglennbosch

    (@mrglennbosch)

    Hi Tijmen,

    Thanks did the job

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Address format in list’ is closed to new replies.