Skip to content

Commit 2884ff9

Browse files
authored
Merge pull request #988 from w3bdesign/dev
Success page
2 parents 1d542d1 + a2ef611 commit 2884ff9

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

components/Checkout/CheckoutForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const handleSubmit = ({
9191
9292
mutate(checkoutData);
9393
94-
onDone(() => alert("Order placed!"));
94+
onDone(async () => await navigateTo("/success"));
9595
9696
onError(() => alert("Error, order not placed"));
9797
};

pages/success.vue

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<template>
2+
<div>
3+
<h1>Thank you for your order!</h1>
4+
<h2>Please check your email for an order confirmation</h2>
5+
</div>
6+
</template>
7+
8+
<style scoped>
9+
h1 {
10+
@apply h-10 p-6 text-3xl font-bold text-center;
11+
}
12+
13+
h2 {
14+
@apply h-10 p-6 text-2xl font-bold text-center mt-4;
15+
}
16+
</style>

0 commit comments

Comments
 (0)