From af25c7b8304147a086a30e4b2ca3ab18f5f3a027 Mon Sep 17 00:00:00 2001 From: Sandesh Ratnawat Date: Thu, 20 Jun 2024 20:37:56 +0530 Subject: [PATCH 1/4] Added: filter to fetch only pickup allowed facilities --- src/views/PickupLocationModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/PickupLocationModal.vue b/src/views/PickupLocationModal.vue index e3e6d1f8..9bbbb544 100644 --- a/src/views/PickupLocationModal.vue +++ b/src/views/PickupLocationModal.vue @@ -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) { From e1ce74cacc079213bee13f8af197c912d92ba6bf Mon Sep 17 00:00:00 2001 From: Sandesh Ratnawat Date: Thu, 20 Jun 2024 20:37:56 +0530 Subject: [PATCH 2/4] Added: filter to fetch only pickup allowed facilitiesi(#82) --- src/views/PickupLocationModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/PickupLocationModal.vue b/src/views/PickupLocationModal.vue index e3e6d1f8..9bbbb544 100644 --- a/src/views/PickupLocationModal.vue +++ b/src/views/PickupLocationModal.vue @@ -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) { From d4845bb40ce4985ef4063ddc22ff2501302dbe21 Mon Sep 17 00:00:00 2001 From: Sandesh Ratnawat Date: Fri, 21 Jun 2024 12:37:34 +0530 Subject: [PATCH 3/4] Changed: error message when inventory of item is not available at any nearby store --- src/i18n/locales/en.json | 2 +- src/views/PickupLocationModal.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index b8c851cd..7868a517 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -26,7 +26,7 @@ "Logout": "Logout", "mi": "mi", "Nearby stores": "Nearby stores", - "No nearby stores found": "No nearby stores found", + "Inventory not available at any nearby store, please select alternate delivery method": "Inventory not available at any nearby store, please select alternate delivery method", "OMS": "OMS", "Order ID": "Order ID", "Order cancelled successfully": "Order cancelled successfully", diff --git a/src/views/PickupLocationModal.vue b/src/views/PickupLocationModal.vue index c27f52af..48eabf15 100644 --- a/src/views/PickupLocationModal.vue +++ b/src/views/PickupLocationModal.vue @@ -37,7 +37,7 @@ - {{ $t("No nearby stores found") }} + {{ $t("Inventory not available at any nearby store, please select alternate delivery method") }}
From b69f8a1fea9e83ae394d6617a886699adc14ca66 Mon Sep 17 00:00:00 2001 From: Sandesh Ratnawat Date: Fri, 21 Jun 2024 12:44:36 +0530 Subject: [PATCH 4/4] Changed: order of the label for code readability --- src/i18n/locales/en.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 7868a517..0a67920b 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -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", - "Inventory not available at any nearby store, please select alternate delivery method": "Inventory not available at any nearby store, please select alternate delivery method", "OMS": "OMS", "Order ID": "Order ID", "Order cancelled successfully": "Order cancelled successfully",