-

Shopping Cart

- {{ if eq (len $.items) 0 }} -

Your shopping cart is empty.

- Browse Products +

Your shopping cart is empty!

+

Items you add to your shopping cart will appear here.

+ Browse Products → + {{ else }} +

{{ len $.items }} item {{- if gt (len $.items) 0}}s{{end}} + in your Shopping Cart

{{ end }} {{ range $.items }} @@ -39,7 +41,7 @@
- Proceed to Checkout + Proceed to Checkout →
diff --git a/src/frontend/templates/footer.html b/src/frontend/templates/footer.html index 7b8d3f1..acfdca7 100644 --- a/src/frontend/templates/footer.html +++ b/src/frontend/templates/footer.html @@ -1,6 +1,6 @@ {{ define "footer" }} - This is a demo application. + This is a demo application. ({{$.session_id}}) {{ end }} diff --git a/src/frontend/templates/header.html b/src/frontend/templates/header.html index 76bb700..81502f4 100644 --- a/src/frontend/templates/header.html +++ b/src/frontend/templates/header.html @@ -23,7 +23,7 @@ {{end}} - View Cart ({{$.cart_size}}) + View Cart ({{$.cart_size}}) diff --git a/src/frontend/templates/product.html b/src/frontend/templates/product.html index 332c3b4..192816f 100644 --- a/src/frontend/templates/product.html +++ b/src/frontend/templates/product.html @@ -30,15 +30,16 @@
- + - + diff --git a/src/frontend/templates/recommendations.html b/src/frontend/templates/recommendations.html index e3c2728..66c5b6a 100644 --- a/src/frontend/templates/recommendations.html +++ b/src/frontend/templates/recommendations.html @@ -1,6 +1,6 @@ {{ define "recommendations" }} -
Similar products
-
+
Products you might like
+
{{range . }}