How to show the distance to a location in miles?

How to show the distance to a location in miles?

The default Store Locator for Magento 2 functionality allows you to define the linear units to be used to show the distance on the Store Locator page. It is to be set in Stores → Configuration → Amasty Extensions → Store Locator → Store Locator Page → General Visual Settings → Distance Units.



Once set, the distance units will be updated on the frontend page.


      • Related Articles

      • What's the difference between Store Pickup, Store Locator and Store Pickup with Locator?

        Our Store Pickup extension adds a new free shipping method on the storefront and allows users to choose store pickup at checkout. You may add multiple points of sales and, on the storefront, the extension will automatically detect the nearest store ...
      • How to configure the map so that the nearest location is automatically displayed?

        The Store Locator extension has the feature of zooming the map to let the customer easily find the nearest location. If you would like the nearest location to be shown for a customer automatically, you need to enable the option in the global ...
      • How to change the location marker?

        The Store Pickup with Locator allows uploading a custom location marker to be displayed on the map. To change the default one, please, navigate to Content → Locations → [Your Locations] → Location On Map and upload the marker image. Here is the ...
      • The location isn't displayed correctly on the map. How to fix this?

        When the location is configured, sometimes it can be wrongly displayed on the map. This happens when the longitude and latitude for the store location aren't specified correctly. You may check the values of those fields in Content → Locations → ...
      • Store Pickup with Locator

        1. Amasty\StorePickupWithLocator\Api\GuestLocationPickupValuesInterface - class for managin store pickup for guests: POST /V1/amstorepickup/:cartId/saveSelectedPickupValues, method="saveSelectedPickupValues" - deprecated query, retained for backward ...