5th Commit

This commit is contained in:
Aritra Banik 2024-02-04 00:07:01 +05:30
parent 71bd264cb2
commit e368dc0c1c
3 changed files with 3 additions and 19 deletions

BIN
src/a3

Binary file not shown.

View File

@ -146,8 +146,6 @@ import
var
email: string
password: string
db2 = newDatabase2()
db3 = newDatabase3()
db1 = newDatabase1()
availableProducts = db1.availableProducts()
@ -161,13 +159,7 @@ import
password = ""
if email != "" and password != "":
var
userId = db2.getUserId(email, password)
cart = db3.getUserCart(userId)
for c, d in cart:
var product = db1.getProductById(d.productId)
products.add(product)
products = micsGetProducts(email, password)
compileTemplateFile(getScriptDir() / "a3a" / "shop.nimja")
@ -176,8 +168,6 @@ import
var
email: string
password: string
db2 = newDatabase2()
db3 = newDatabase3()
db1 = newDatabase1()
productName = ctx.queryParams["prod"]
@ -194,13 +184,7 @@ import
password = ""
if email != "" and password != "":
var
userId = db2.getUserId(email, password)
cart = db3.getUserCart(userId)
for c, d in cart:
var product1 = db1.getProductById(d.productId)
products.add(product1)
products = micsGetProducts(email, password)
compileTemplateFile(getScriptDir() / "a3a" / "shop-single.nimja")

View File

@ -30,7 +30,7 @@
<li>
<a href="/cart" class="site-cart">
<span class="icon icon-shopping_cart"></span>
<span class="count">2</span>
{# <span class="count">2</span> #}
</a>
</li>
<li class="d-inline-block d-md-none ml-md-0"><a href="#" class="site-menu-toggle js-menu-toggle"><span class="icon-menu"></span></a></li>