feat: add shipping cost to cart

This commit is contained in:
Vlad Stan 2023-07-07 15:02:51 +03:00
parent 761a3137a6
commit 303afcfab4
4 changed files with 46 additions and 53 deletions

View file

@ -53,7 +53,8 @@ const market = async () => {
merchants: [],
shoppingCarts: [],
shoppingCartCheckout: null,
checkoutCart: null,
checkoutStall: null,
activePage: 'market',
@ -611,8 +612,9 @@ const market = async () => {
this.$q.localStorage.set('nostrmarket.shoppingCarts', this.shoppingCarts)
},
checkoutCart(cart) {
this.shoppingCartCheckout = cart
checkoutStallCart(cart) {
this.checkoutCart = cart
this.checkoutStall = this.stalls.find(s => s.id === cart.id)
this.setActivePage('shopping-cart-checkout')
}