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

    (@tijmensmit)

    What is the url where this happens? Did you modify anything in the original files?

    Thread Starter vimalsoneil

    (@vimalsoneil)

    Yes made small tweak on description . In backend i am putting image url there and showing in front end.
    http://awesomescreenshot.com/07c3n0010a

    If i undo my customization still getting same issue .

    Thread Starter vimalsoneil

    (@vimalsoneil)

    my Mistake. missed code

    Actually i want to show a image here

    http://awesomescreenshot.com/04f3n01a64

    I was thinking i will put image link <img src=”” /> in description box(in backed) but on front end its not coming/printing image path

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I just added the address to the store list on my dev site, and search for ‘Port Charlotte’ and it returns ‘0.5 mi’.

    Which browser are you using? Because the distance is formatted in js, and maybe something weird happens in the browser you are using?

    To rule out there is somehow a space in front of the distance that makes it return NaN, can you open the /js/wpsl-gmap.js file. Then search for ‘function storeHtml( response, url )’ and replace the distance = with this line and see if that makes a difference?

    distance = parseFloat( $.trim( response.distance ) ).toFixed(1) + " " + wpslSettings.distanceUnit;
    Thread Starter vimalsoneil

    (@vimalsoneil)

    Wooo Thanks Man ..You rock .Just followed your guideline all working fine now.

    Thanks

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You can change the order of the store details in the function storeHtml( response, url ) and then at the bottom you see this.

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

    You can move the storeImg around to the end of the line or wherever you want to.

    Thread Starter vimalsoneil

    (@vimalsoneil)

    No No Tijmen
    Ahh Sorry for bothering you.

    http://awesomescreenshot.com/0703n04p58
    If you look into screenshot.
    #1. Image coming from description box in backend map setting
    http://awesomescreenshot.com/0143n0570c

    I want to display that image on left hand side at place on #2

    Any idea ?

    Thanks

    Plugin Author Tijmen Smit

    (@tijmensmit)

    The reason it’s not showing on the front-end is because the html is stripped out of the content.

    If you open the /frontend/wpsl-ajax-functions.php and search for ‘$store_results[]’ you see the list of store data being collected. If you remove the strip_tags from the description field then it think it will work.

    Thread Starter vimalsoneil

    (@vimalsoneil)

    hmm Got It
    Thanks Man.

    Please update me when premium version will come in market,I will buy and i am sure there will be lots of features.

    Great work man.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Distance’ is closed to new replies.