WordPress.org

Ready to get started?Download WordPress

Forums

WP Store Locator
[resolved] City after zipcode in Dutch (3 posts)

  1. SietseB
    Member
    Posted 2 months ago #

    How to place the city after the zipcode in the list under the map for Dutch language?
    3514 AN Utrecht instead of Utrecht 3514 AN

    https://wordpress.org/plugins/wp-store-locator/

  2. The_Hegemon
    Member
    Posted 2 months ago #

    If you don't have a problem with having the zipcode before the city with other countries here's a solution:

    Open the file wpsl-gmap.js in the folder js.

    For the marker popups look for this:
    windowContent += "<p>" + storeHeader + "<span>" + infoWindowData.address + "</span>" + address2 + "<span>" + infoWindowData.city + "</span></p>";
    and replace it with this:
    windowContent += "<p>" + storeHeader + "<span>" + infoWindowData.address + "</span>" + address2 + "<span>" + infoWindowData.zip + " " + infoWindowData.city + "</span></p>";

    For the list under the map look for this:
    html = "<li data-store-id='" + id + "'><div><p>" + storeImg + "<strong>" + store + "</strong><span class='wpsl-street'>" + address + "</span>" + address2 + city + " " + state + " " + zip + "<span class='wpsl-country'>" + country + "</p>" + moreInfo + "</div>" + distance + "<a class='wpsl-directions' " + url.target + " href='" + url.src + "'>" + wpslLabels.directions + "</a></li>";
    and replace it with this:
    html = "<li data-store-id='" + id + "'><div><p>" + storeImg + "<strong>" + store + "</strong><span class='wpsl-street'>" + address + "</span>" + address2 + zip + " " + city + "<span class='wpsl-country'>" + country + "</p>" + moreInfo + "</div>" + distance + "<a class='wpsl-directions' " + url.target + " href='" + url.src + "'>" + wpslLabels.directions + "</a></li>";

  3. SietseB
    Member
    Posted 2 months ago #

    Thank you very much! That worked!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags