This commit is contained in:
Aritra Banik 2024-03-03 15:14:55 +05:30
parent 5b351712a4
commit e39e69fb47
3 changed files with 0 additions and 13 deletions

Binary file not shown.

BIN
src/a3

Binary file not shown.

View File

@ -208,8 +208,6 @@ import
productName = form.getOrDefault("prod", "")
quantity = parseInt(form.getOrDefault("quantity", "0"))
echo productName
var
country = form["c_country"]
firstName = form["c_fname"]
@ -221,15 +219,11 @@ import
phone = form["c_phone"]
password1: string
echo 3
password1 = form.getOrDefault("password", "")
if email != "":
productCount = micsCartProductCount(email, password)
echo 4
if country != "" and firstName != "" and lastName != "" and address != "" and state != "" and zip != "" and email != "" and phone != "":
var
userId = db.getUserId(email, password)
@ -264,8 +258,6 @@ import
else:
echo 5
for a, b in form:
if form[a] == "":
val.name = ""
@ -278,8 +270,6 @@ import
val.mark = ""
validity[a] = val
echo productName
if productName == "":
var
userId = db.getUserId(email, password)
@ -295,11 +285,8 @@ import
ca: Cart
product.id = 1
echo product
product.name = productName
echo product
product.price = db.getPriceByProductName(productName)
echo product
ca.quantity = quantity
products.add(product)
cart.add(ca)