From 4151e7a73ef0476b4aea5a356d391a7060b8a01c Mon Sep 17 00:00:00 2001 From: unwox Date: Thu, 30 Oct 2025 19:01:32 +0600 Subject: small improvements here and there --- pages/shop/cart/add.fnl | 2 +- pages/shop/cart/remove.fnl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'pages/shop/cart') 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)) -- cgit v1.2.3