diff --git a/src/frontend/handlers.go b/src/frontend/handlers.go index 8c9dc4b..065bdb8 100644 --- a/src/frontend/handlers.go +++ b/src/frontend/handlers.go @@ -266,6 +266,8 @@ func (fe *frontendServer) viewCartHandler(w http.ResponseWriter, r *http.Request } totalPrice = money.Must(money.Sum(totalPrice, *shippingCost)) + log.Info("🌈 ITEMS: %v", items) + year := time.Now().Year() if err := templates.ExecuteTemplate(w, "cart", map[string]interface{}{ "session_id": sessionID(r), @@ -276,8 +278,6 @@ func (fe *frontendServer) viewCartHandler(w http.ResponseWriter, r *http.Request "cart_size": cartSize(cart), "shipping_cost": shippingCost, "total_cost": totalPrice, - "banner_color": os.Getenv("BANNER_COLOR"), // illustrates canary deployments - "ad": fe.chooseAd(r.Context(), []string{}, log), "items": items, "expiration_years": []int{year, year + 1, year + 2, year + 3, year + 4}, "platform_css": plat.css, diff --git a/src/frontend/templates/cart.html b/src/frontend/templates/cart.html index 4b67cf1..e7fa724 100755 --- a/src/frontend/templates/cart.html +++ b/src/frontend/templates/cart.html @@ -28,8 +28,8 @@ -
SKU: #{{.Item.Id}}
+SKU: #{{ .Item.Id }}
Shipping Cost: {{ renderMoney .shipping_cost }}
@@ -59,7 +60,6 @@