add basic cart
This commit is contained in:
18
views/cart.html
Normal file
18
views/cart.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ template "header.html" . }}
|
||||
|
||||
{{ range .data.cartItems }}
|
||||
|
||||
<div class="group relative">
|
||||
<div class="mt-4 flex justify-between">
|
||||
<div>
|
||||
<h3 class="text-sm text-gray-700">
|
||||
{{ .ShopItemId }}
|
||||
</h3>
|
||||
</div>
|
||||
<p class="text-sm font-medium text-gray-900">{{ .Quantity }} pieces</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ template "footer.html" . }}
|
||||
Reference in New Issue
Block a user