• Resolved YEWS-Grigory

    (@yews-grigory)


    Currently this plugin only seems to allow for miles?

    Is it possible to change the distance unit to kilometres (km)?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author umangmetatagg

    (@umangmetatagg)

    Hey @YEWS-Grigory

    Thank you for using our plugin. Currently, our plugin doesn’t support distance units in kilometers.

    However, I’m pleased to inform you that we are planning to incorporate this feature in an upcoming release of the plugin. This enhancement will enable users to seamlessly switch between kilometers and miles.

    Thanks!

    We also need kilometers ??

    I changed in the file
    ?/wp-content/plugins/custom-store-locator/assets/csl-map-functions.js“
    and
    ?/wp-content/plugins/custom-store-locator/assets/csl-full-map-functions.js“

    function convertMetersToMiles(meters) {
    return (meters * 0.000621371);
    }

    to

    function convertMetersToMiles(meters) {
    return (meters * 0.001);
    }

    As a quick and dirty solution it works.

    Plugin Author umangmetatagg

    (@umangmetatagg)

    Hey @wnsunconcept

    Okay, Great! I will add option to change distance unit from plugin settings page on backend in future release of plugin. Make sure to change when you update the plugin.

    Thanks!

    • This reply was modified 6 months, 2 weeks ago by umangmetatagg.
    Plugin Author umangmetatagg

    (@umangmetatagg)

    Hey?@wnsunconcept

    We’re excited to announce the release of version 1.4.5! This update includes a new feature: the “Distance Units” field in the plugin settings page, allowing you to set the distance unit to either kilometers or miles.

    Please remember to update the Distance Units settings whenever you update the plugin.

    I’m closing this ticket for now. If you need any further assistance, feel free to raise a new support ticket.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘KM instead of Miles?’ is closed to new replies.