Skip to content

Commit

Permalink
Improved: Added Get Available Shipment Methods & BOPIS Product Store …
Browse files Browse the repository at this point in the history
…Settings on Facility Update (hotwax#500)
  • Loading branch information
R-Sourabh committed Jan 29, 2025
1 parent c6b9e51 commit 37ed1cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ const actions: ActionTree<UserState, RootState> = {
commit(types.USER_CURRENT_ECOM_STORE_UPDATED, eComStore)
//fetching partial order rejection config for BOPIS orders aftering updating facility
await dispatch("getPartialOrderRejectionConfig");
await dispatch("fetchBopisProductStoreSettings");
await useProductIdentificationStore().getIdentificationPref(eComStore?.productStoreId)
},
/**
Expand Down
5 changes: 4 additions & 1 deletion src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,10 @@ export default defineComponent({
async updateFacility(facility: any) {
await this.store.dispatch('user/setFacility', facility?.facilityId);
await this.store.dispatch('user/fetchNotificationPreferences')
this.getRerouteFulfillmentConfiguration();
if(Object.keys(this.rerouteFulfillmentConfigMapping).length > 0) {
this.getAvailableShipmentMethods();
this.getRerouteFulfillmentConfiguration();
}
},
async timeZoneUpdated(tzId: string) {
await this.store.dispatch("user/setUserTimeZone", tzId)
Expand Down

0 comments on commit 37ed1cd

Please sign in to comment.