diff --git a/src/lib/components/checkout.svelte b/src/lib/components/checkout.svelte new file mode 100644 index 0000000..849858b --- /dev/null +++ b/src/lib/components/checkout.svelte @@ -0,0 +1,213 @@ + + +
+
+
+ +
+

Order Summary

+
+ {#each $cart as item} +
+
+

{item.product.title}

+

+ {item.variant.title} × {item.quantity} +

+
+

{(item.variant.calculated_price.calculated_amount * item.quantity).toFixed(2)} €

+
+ {/each} +
+ +
+ Total: + {calculateTotal($cart)} € +
+
+ + +
+

Shipping Details

+ +
+
+ + +
+ +
+ + +
+
+ +
+ + +
+ +
+
+ + +
+ +
+ + +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+ + +
+ + +
+
+
+
\ No newline at end of file diff --git a/src/lib/stores/cart.ts b/src/lib/stores/cart.ts index cc16735..6af66d0 100644 --- a/src/lib/stores/cart.ts +++ b/src/lib/stores/cart.ts @@ -59,7 +59,7 @@ function createCartStore() { autoCloseTimeout = window.setTimeout(() => { isOpenStore.set(false); autoCloseTimeout = undefined; - }, 2000); + }, 800); }, updateQuantity: (index: number, quantity: number) => { update(items => { diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 426b1da..bb09c30 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -3,7 +3,6 @@ import Header from '$lib/components/Header.svelte'; import Footer from '$lib/components/Footer.svelte'; import { page } from '$app/stores'; - import MiniCart from '$lib/components/mini-cart.svelte'; @@ -18,9 +17,6 @@