summaryrefslogtreecommitdiff
path: root/iridescence/src/components/cart/Totals.vue
blob: 5c211ae3e5e0c33347b54a1ca6192c3328f6da9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<template>
  <div>
    <h1 class="subtitle has-text-centered">
      Total
    </h1>
    <hr />

    <h1 class="title has-text-centered">{{ cartTotal }}</h1>
    <router-link
      to="/checkout"
      class="button is-success is-fullwidth is-rounded is-medium"
    >
      Checkout Now
    </router-link>
  </div>
</template>

<script>
export default {
  name: "Totals",
  computed: {
    cartTotal() {
      return this.$store.getters.cartTotal;
    }
  },
  methods: {}
};
</script>