Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added: filter to fetch only pickup allowed facilities and modified error message when no inventory is found at any nearby store(#82) #84

Merged
merged 6 commits into from
Jun 25, 2024
2 changes: 1 addition & 1 deletion src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
"Failed to update the pickup store": "Failed to update the pickup store",
"Failed to update the shipping addess": "Failed to update the shipping addess",
"Fetching address": "Fetching address",
"Inventory not available at any nearby store, please select alternate delivery method": "Inventory not available at any nearby store, please select alternate delivery method",
"Last name": "Last name",
"Login": "Login",
"Logout": "Logout",
"mi": "mi",
"Nearby stores": "Nearby stores",
"No nearby stores found": "No nearby stores found",
"OMS": "OMS",
"Order ID": "Order ID",
"Order cancelled successfully": "Order cancelled successfully",
Expand Down
4 changes: 2 additions & 2 deletions src/views/PickupLocationModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</ion-radio-group>
</ion-list>
<ion-item v-else lines="none" class="ion-text-center">
<ion-label>{{ $t("No nearby stores found") }}</ion-label>
<ion-label>{{ $t("Inventory not available at any nearby store, please select alternate delivery method") }}</ion-label>
</ion-item>
<!-- Only show select button if there are stores to select from -->
<div v-if="nearbyStores.length" class="ion-text-center">
Expand Down Expand Up @@ -125,7 +125,7 @@ export default defineComponent({
async getStores(point?: string) {
let payload = {
"viewSize": process.env.VUE_APP_VIEW_SIZE,
"filters": ["storeType: RETAIL_STORE"]
"filters": ["storeType: RETAIL_STORE", "pickup_pref: true"]
} as any

if (point) {
Expand Down
Loading