fixed pricing new registered user redirection to checkout
This commit is contained in:
parent
72cc12b49b
commit
f7657c296e
|
@ -131,7 +131,7 @@ export default {
|
||||||
this.closeModal()
|
this.closeModal()
|
||||||
// redirect to /cart
|
// redirect to /cart
|
||||||
// window.location.href = "/cart"
|
// window.location.href = "/cart"
|
||||||
// TODO: redirect to checkout instead of cart
|
// redirect to checkout instead of cart
|
||||||
window.location.href = `/checkout/${data[0].order_id}/order_information`
|
window.location.href = `/checkout/${data[0].order_id}/order_information`
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|
|
@ -187,9 +187,9 @@ export default {
|
||||||
dispatch('getUser').then(userdata => {
|
dispatch('getUser').then(userdata => {
|
||||||
console.log('User Loggedin', state.isAdmin, state.isAdherent)
|
console.log('User Loggedin', state.isAdmin, state.isAdherent)
|
||||||
// have to reload systematicly because of autologout library not loaded if not logged in the begining
|
// have to reload systematicly because of autologout library not loaded if not logged in the begining
|
||||||
// if (state.isAdmin) {
|
if (state.isAdmin) {
|
||||||
// window.location.reload()
|
window.location.reload()
|
||||||
// }
|
}
|
||||||
if (state.isAdherent) {
|
if (state.isAdherent) {
|
||||||
// router.push({
|
// router.push({
|
||||||
// name: 'base'
|
// name: 'base'
|
||||||
|
@ -197,9 +197,10 @@ export default {
|
||||||
// // TODO: openCloseHamMenu(false)
|
// // TODO: openCloseHamMenu(false)
|
||||||
// dispatch('Common/openCloseHamMenu', false)
|
// dispatch('Common/openCloseHamMenu', false)
|
||||||
window.location = '/base'
|
window.location = '/base'
|
||||||
} else {
|
|
||||||
window.location.reload()
|
|
||||||
}
|
}
|
||||||
|
// else {
|
||||||
|
// // * window.location.reload()
|
||||||
|
// }
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue