Feature - Customer is far away
Summary
The “Inform customer that they are far away” feature has been implemented to enhance the customer experience by notifying them when they are in a distant location relative to their selected address or store. This notification will be displayed in a modal and follows specific rules based on the customer's geolocation preferences.
Geolocation enabled
If the customer has the geolocation enabled:
And places home delivery orders: The app compares the selected delivery address with the customer's current location. A modal will be shown if the selected address is considered 1 km distant.
And places mobile ordering orders (eat-in, take-away, table service, etc): The system checks the distance between the customer's location and the selected store. A modal notification will trigger if the store is considered 1 km far away.
UI Home Delivery | UI Mobile Ordering |
---|---|
|
|
Geolocation Disabled
If the customer chooses not share their location:
The system uses the address from the customer's last successful order for delivery, or the last store visited for mobile ordering. A modal will alert the customer if this address is different from the currently selected address.
If none of these conditions are met, the flow will continue without displaying the modal.
UI Home Delivery | UI Mobile Ordering |
---|---|
|
|
Feature Flag
Until the creation of this documentation, the new changes are protected by a feature flag. In the future, this flag will be removed, and the feature will be available to all markets.
Feature Flag | Value |
---|---|
enable-distance-warning | Enabled or Disabled |
Lokalise Keys
Key | Description | Default value in english |
---|---|---|
youAreFarFromThisAddress | Notification alerting the customer that they are far from the selected address and asking for confirmation. | "You are far from this address. Is this correct?" |
youAreFarFromThisRestaurant | Notification alerting the customer that they are far from the selected restaurant and asking for confirmation. | "You are far from this restaurant. Is this correct?" |
youAreSelectingNewAddress | Notification indicating that the customer is about to select a new address and asks for confirmation. | "You are selecting a new address. Is this correct?" |
youAreSelectingNewRestaurant | Notification indicating that the customer is about to select a new restaurant and asks for confirmation. | "You are selecting a new restaurant. Is this correct?" |
yesDeliverHere | Confirmation response indicating the customer agrees to delivery at the selected address. | "Yes, Deliver Here" |
noChangeAddress | Response indicating the customer does not wish to change the delivery address. | "No, Change Address" |
yesOrderHere | Confirmation response indicating the customer agrees to place an order at the selected location. | "Yes, Order Here" |
noChangeRestaurant | Response indicating the customer does not wish to change the restaurant selection. | "No, Change Restaurant" |