056
This commit is contained in:
parent
8bf39bcea6
commit
5b351712a4
@ -200,16 +200,15 @@ import
|
|||||||
form = ctx.urlForm
|
form = ctx.urlForm
|
||||||
val: Validity
|
val: Validity
|
||||||
validity = initTable[string, Validity]()
|
validity = initTable[string, Validity]()
|
||||||
qParams = ctx.queryParams
|
|
||||||
cookies = ctx.cookies
|
cookies = ctx.cookies
|
||||||
|
|
||||||
email = cookies.getOrDefault("email", "")
|
email = cookies.getOrDefault("email", "")
|
||||||
password = cookies.getOrDefault("password", "")
|
password = cookies.getOrDefault("password", "")
|
||||||
|
|
||||||
productName = qParams.getOrDefault("prod", "")
|
productName = form.getOrDefault("prod", "")
|
||||||
quantity = parseInt(qParams.getOrDefault("quantity", "0"))
|
quantity = parseInt(form.getOrDefault("quantity", "0"))
|
||||||
|
|
||||||
echo ctx.queryParams["prod"]
|
echo productName
|
||||||
|
|
||||||
var
|
var
|
||||||
country = form["c_country"]
|
country = form["c_country"]
|
||||||
|
@ -83,6 +83,8 @@
|
|||||||
hx-target="#change"
|
hx-target="#change"
|
||||||
class="row"
|
class="row"
|
||||||
>
|
>
|
||||||
|
<input type="hidden" name="prod" value="{{productName}}">
|
||||||
|
<input type="hidden" name="quantity" value="{{quantity}}">
|
||||||
<div class="col-md-6 mb-5 mb-md-0">
|
<div class="col-md-6 mb-5 mb-md-0">
|
||||||
<h2 class="h3 mb-3 text-black">Billing Details</h2>
|
<h2 class="h3 mb-3 text-black">Billing Details</h2>
|
||||||
<div class="p-3 p-lg-5 border">
|
<div class="p-3 p-lg-5 border">
|
||||||
|
@ -144,7 +144,9 @@ proc sendCheckOut*(val: Table[string, Validity], total: string): string =
|
|||||||
hx-post="/checkout"
|
hx-post="/checkout"
|
||||||
hx-target="#change"
|
hx-target="#change"
|
||||||
class="row"
|
class="row"
|
||||||
>
|
>
|
||||||
|
<input type="hidden" name="prod" value="{val["prod"].name}">
|
||||||
|
<input type="hidden" name="quantity" value="{val["quantity"].name}">
|
||||||
<div class="col-md-6 mb-5 mb-md-0">
|
<div class="col-md-6 mb-5 mb-md-0">
|
||||||
<h2 class="h3 mb-3 text-black">Billing Details</h2>
|
<h2 class="h3 mb-3 text-black">Billing Details</h2>
|
||||||
<div class="p-3 p-lg-5 border">
|
<div class="p-3 p-lg-5 border">
|
||||||
@ -479,4 +481,4 @@ proc sendThankYou*(): string=
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user