diff --git a/@ecomplus/storefront-app/src/components/html/EcOrderInfo.html b/@ecomplus/storefront-app/src/components/html/EcOrderInfo.html
index b0388b4ed..3fde586a2 100644
--- a/@ecomplus/storefront-app/src/components/html/EcOrderInfo.html
+++ b/@ecomplus/storefront-app/src/components/html/EcOrderInfo.html
@@ -421,6 +421,7 @@
:items="localOrder.items"
:buyer="(localOrder.buyer && localOrder.buyer[0]) || ecomPassport.getCustomer()"
:shippingAddress="shippingAddress"
+ @click:account="goToAccount"
/>
diff --git a/@ecomplus/storefront-app/src/components/js/EcOrderInfo.js b/@ecomplus/storefront-app/src/components/js/EcOrderInfo.js
index 78393b1a2..8e190511e 100644
--- a/@ecomplus/storefront-app/src/components/js/EcOrderInfo.js
+++ b/@ecomplus/storefront-app/src/components/js/EcOrderInfo.js
@@ -59,6 +59,10 @@ export default {
skipDataLoad: Boolean,
skipFirstDataLoad: Boolean,
skipCustomerUpdate: Boolean,
+ accountUrl: {
+ type: String,
+ default: '/app/#/account/'
+ },
accountOrdersUrl: {
type: String,
default: '/app/#/account/orders'
@@ -150,7 +154,7 @@ export default {
},
validThru () {
- const transactionMethod = this.transaction['banking_billet'] || this.transaction['account_deposit']
+ const transactionMethod = this.transaction.banking_billet || this.transaction.account_deposit
return transactionMethod && transactionMethod.valid_thru
},
@@ -369,6 +373,10 @@ export default {
.finally(() => {
this.isUpdating = false
})
+ },
+
+ goToAccount () {
+ window.location.href = this.accountUrl
}
},