diff --git a/controllers/cartItemController.go b/controllers/cartItemController.go index 88fba99..cd4509a 100644 --- a/controllers/cartItemController.go +++ b/controllers/cartItemController.go @@ -365,6 +365,7 @@ func (rc *cartItemController) CheckoutHandler(c *gin.Context) { return } + //TODO: should update or create here, in case user edited addressfield _, err = repositories.Orders.Create(order) if err != nil { data := CreateSessionData(c, gin.H{ @@ -416,5 +417,6 @@ func (rc *cartItemController) OrderView(c *gin.Context) { } func (rc *cartItemController) OrderHandler(c *gin.Context) { - + //get order by session id + //generate token, preview payment info } diff --git a/static/output.css b/static/output.css index 057e8a9..f8a1e2e 100644 --- a/static/output.css +++ b/static/output.css @@ -786,6 +786,10 @@ video { height: 100%; } +.h-20 { + height: 5rem; +} + .max-h-full { max-height: 100%; } @@ -830,6 +834,14 @@ video { width: 100%; } +.w-20 { + width: 5rem; +} + +.w-16 { + width: 4rem; +} + .max-w-2xl { max-width: 42rem; } diff --git a/views/order.html b/views/order.html index 328382d..eaa5879 100644 --- a/views/order.html +++ b/views/order.html @@ -1,7 +1,7 @@ {{ template "header.html" . }}
-
+

Order summary

@@ -35,9 +35,8 @@ @@ -80,9 +79,9 @@
- + - +
@@ -90,350 +89,4 @@
- - {{ template "footer.html" . }}