summaryrefslogtreecommitdiff
path: root/pages/shop/cart
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-10-30 19:01:32 +0600
committerunwox <me@unwox.com>2025-10-30 20:36:58 +0600
commit4151e7a73ef0476b4aea5a356d391a7060b8a01c (patch)
treea576a0017fa5fa0c368d39c270a1df99b79b6014 /pages/shop/cart
parentb06fdc9c3b4b6dc0d5d60098303dd57d5c098e13 (diff)
small improvements here and there
Diffstat (limited to 'pages/shop/cart')
-rw-r--r--pages/shop/cart/add.fnl2
-rw-r--r--pages/shop/cart/remove.fnl2
2 files changed, 2 insertions, 2 deletions
diff --git a/pages/shop/cart/add.fnl b/pages/shop/cart/add.fnl
index b276608..f6b3d54 100644
--- a/pages/shop/cart/add.fnl
+++ b/pages/shop/cart/add.fnl
@@ -4,7 +4,7 @@
(fn render [request db]
(if (= request.method "POST")
(do
- (var order-id (shop.order-id request))
+ (var order-id request.cookies.order)
(var headers {})
(when (not order-id)
diff --git a/pages/shop/cart/remove.fnl b/pages/shop/cart/remove.fnl
index 0cdc417..fd514f0 100644
--- a/pages/shop/cart/remove.fnl
+++ b/pages/shop/cart/remove.fnl
@@ -3,7 +3,7 @@
(fn render [request db]
(if (= request.method "POST")
- (let [order-id (shop.order-id request)]
+ (let [order-id request.cookies.order]
(if (and order-id request.body)
(do
(local body-values (lib.parse-values request.body))