diff --git a/src/components/Cart.svelte b/src/components/Cart.svelte new file mode 100644 index 0000000..7035acb --- /dev/null +++ b/src/components/Cart.svelte @@ -0,0 +1,64 @@ + + + + +{#if products.length > 0} + + {#if caption}{/if} + {#if header} + + + + + + + + + {/if} + + {#each products as product} + {#each product.variations as variation} + {#if !summary || $store[`${variation.slug}/${product.slug}`]} + + + + + + + {/if} + {/each} + {/each} + + {#if footer} + + + + + + + + + {/if} +
Shopping cart
ProductUnit priceUnitsTotal
{variation.description} {product.name} + + {$store[`${variation.slug}/${product.slug}`]} + +
Grand total
+{/if} diff --git a/src/components/Tile.svelte b/src/components/Tile.svelte index 5b03b50..887bc22 100644 --- a/src/components/Tile.svelte +++ b/src/components/Tile.svelte @@ -1,9 +1,10 @@ @@ -25,6 +26,8 @@ section {
{#each data.products as product, id} - + {/each}
+ +