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

    (@tijmensmit)

    Add this to the wpsl-gmap.js file on line 814, just above html = in the storeHtml function.

    if ( ( typeof( response.url ) !== "undefined" ) && ( response.url !== "" ) ) {
        store = "<a " + url.target + " href=" + response.url + ">" + store + "</a>";
    }
    Thread Starter Jackpudding

    (@jackpudding)

    Hi Tijmen, thanks for getting back so promptly. However I tried the change to the js file but it hasn’t worked. Could you take a look and make sure I have put it in the right place?

    } else {
    moreInfo = “<p>” + wpslLabels.moreInfo +

    “</p>”;
    }

    }
    if ( ( typeof( response.url ) !== “undefined” ) && ( response.url !== “” ) ) {
    store = “” + store + ““;
    }
    html = “<li data-store-id='” + id + “‘><div><p>” + storeImg + “” + store + “<span class=’wpsl-street’>” + street +

    “</span>” + city + ” ” + state + ” ” + zip + “<span class=’wpsl-country’>” + country + “</p>” + moreInfo + “</div>” + distance + “<a class=’wpsl-

    directions’ ” + url.target + ” href='” + url.src + “‘>” + wpslLabels.directions + “”;

    return html;
    }

    Sorry to be pain, and I do appreciate your hard work. Cheers Paul

    Thread Starter Jackpudding

    (@jackpudding)

    Some of that didn’t copy&paste correctly but I did put in the whole code as below:

    if ( ( typeof( response.url ) !== “undefined” ) && ( response.url !== “” ) ) {
    store = “” + store + ““;
    }

    Thread Starter Jackpudding

    (@jackpudding)

    Hi Tijmen, I owe you an apology – your code is fine – it’s my fault it didn’t work. In the URL box, on the form, you have to make sure you don’t to finish with a forwardslash / otherwise it won’t work. I deleted them and bingo! Many thanks for a great plugin.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Hmm I wasn’t aware a / would break it, I will look into fixing that for the next release. Good to hear it works now ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is it possible to make the store name in results list live?’ is closed to new replies.