This commit is contained in:
Aritra Banik 2024-02-25 12:44:46 +05:30
parent 6c6e47ae1e
commit 6092493b47
2 changed files with 2 additions and 4 deletions

BIN
src/a3

Binary file not shown.

View File

@ -191,8 +191,8 @@ import
# addressError = "" # addressError = ""
# stateError = "" # stateError = ""
# zipError = "" # zipError = ""
emailError = "" # emailError = ""
phoneError = "" # phoneError = ""
ch = "" ch = ""
try: try:
@ -235,14 +235,12 @@ import
for c, d in cart: for c, d in cart:
var product = db.getProductById(d.productId) var product = db.getProductById(d.productId)
echo product
products.add(product) products.add(product)
compileTemplateFile(getScriptDir() / "a3a" / "checkout.nimja") compileTemplateFile(getScriptDir() / "a3a" / "checkout.nimja")
"/checkout" -> post: "/checkout" -> post:
var var
# res = Response()
email: string email: string
password: string password: string
db = newDatabase() db = newDatabase()