-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…-order-placing Bugfix/#2409 check for multiple order placing
- Loading branch information
Showing
11 changed files
with
56 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
export default { | ||
isThankYouPage (state) { | ||
return state.isThankYouPage | ||
} | ||
import { GetterTree } from 'vuex' | ||
import CheckoutState from '../../types/CheckoutState' | ||
import RootState from '@vue-storefront/core/types/RootState' | ||
|
||
const getters: GetterTree<CheckoutState, RootState> = { | ||
isThankYouPage: state => state.isThankYouPage | ||
} | ||
|
||
export default getters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { GetterTree } from 'vuex' | ||
import OrderState from '../types/OrderState' | ||
import RootState from '@vue-storefront/core/types/RootState' | ||
|
||
const getters: GetterTree<OrderState, RootState> = { | ||
getSessionOrderHashes: state => state.session_order_hashes | ||
} | ||
|
||
export default getters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { Module } from 'vuex' | ||
import actions from './actions' | ||
import mutations from './mutations' | ||
import getters from './getters' | ||
import RootState from '@vue-storefront/core/types/RootState' | ||
import OrderState from '../types/OrderState' | ||
|
||
export const module: Module<OrderState, RootState> = { | ||
namespaced: true, | ||
state: { | ||
last_order_confirmation: null | ||
last_order_confirmation: null, | ||
session_order_hashes: [] | ||
}, | ||
actions, | ||
mutations | ||
mutations, | ||
getters | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export const SN_ORDER = 'order' | ||
export const ORDER_PLACE_ORDER = SN_ORDER + '/PLACE_ORDER' | ||
export const ORDER_PROCESS_QUEUE = SN_ORDER + '/PROCESS_QUEUE' | ||
export const ORDER_LAST_ORDER_WITH_CONFIRMATION = SN_ORDER + '/LAST_ORDER_CONFIRMATION' | ||
export const ORDER_LAST_ORDER_WITH_CONFIRMATION = SN_ORDER + '/LAST_ORDER_CONFIRMATION' | ||
export const ORDER_ADD_SESSION_ORDER_HASH = SN_ORDER + '/ADD_SESSION_ORDER_HASH' | ||
export const ORDER_REMOVE_SESSION_ORDER_HASH = SN_ORDER + '/REMOVE_SESSION_ORDER_HASH' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export default interface OrderState { | ||
last_order_confirmation: any | ||
last_order_confirmation: any, | ||
session_order_hashes: Array<string>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters