diff --git a/db5.sqlite3 b/db5.sqlite3
index 0bd9012..97813e1 100644
Binary files a/db5.sqlite3 and b/db5.sqlite3 differ
diff --git a/src/a3 b/src/a3
index 16d4f4d..132462c 100755
Binary files a/src/a3 and b/src/a3 differ
diff --git a/src/a3pkg/htmx.nim b/src/a3pkg/htmx.nim
index 6d3a3f9..1539718 100644
--- a/src/a3pkg/htmx.nim
+++ b/src/a3pkg/htmx.nim
@@ -129,13 +129,13 @@ proc sendPhone*(phone: string, input: Validity): string =
"""
-proc sendCheckOut*(val: Table[string, Validity], total: string): string =
+proc sendCheckOut*(val: Table[string, Validity], total: string, productName: string, quantity: int): string =
result = fmt"""
diff --git a/src/validation.nim b/src/validation.nim
index 254bddb..1ed2f6d 100644
--- a/src/validation.nim
+++ b/src/validation.nim
@@ -22,7 +22,6 @@ proc validationCheckOut*(ctx: Context) =
productName = form.getOrDefault("prod", "")
quantity = parseInt(form.getOrDefault("quantity", "0"))
- var
country = form["c_country"]
firstName = form["c_fname"]
lastName = form["c_lname"]
@@ -107,7 +106,7 @@ proc validationCheckOut*(ctx: Context) =
products.add(product)
cart.add(ca)
- ctx.send(sendCheckOut(validity, totalPriceHTML(products, cart)))
+ ctx.send(sendCheckOut(validity, totalPriceHTML(products, cart), productName, quantity))
proc validationLName*(ctx: Context) =
var lname = ctx.urlForm["c_lname"]
@@ -195,4 +194,4 @@ proc validationCountry*(ctx: Context) =
else:
val.message = ""
val.mark = ""
- ctx.send sendCountry(country, val)
\ No newline at end of file
+ ctx.send sendCountry(country, val)