summaryrefslogtreecommitdiff
path: root/templates.fnl
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-10-30 20:58:45 +0600
committerunwox <me@unwox.com>2025-10-30 20:58:45 +0600
commit5ea0e8309eaed8d0349696504e4a8b78997058b0 (patch)
treec342e67f028979f18dd80486da812fef43645e1c /templates.fnl
parent13574cca2d2660911e8a20bb191371c76af47a71 (diff)
make ordering a bit more obvious
Diffstat (limited to 'templates.fnl')
-rw-r--r--templates.fnl4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates.fnl b/templates.fnl
index d7d83e3..542b898 100644
--- a/templates.fnl
+++ b/templates.fnl
@@ -88,7 +88,9 @@
(basket-item item redirect-url)))]
[:div {:class "mt-0-25"} "—"]
[:div {} [:strong {} (.. "Итого: " (lib.format-price total) "₽")]]
- [:a {:href "/shop/order"} "Оформить заказ ⟶"]])))
+ (if (~= redirect-url "/shop/order")
+ (HTML [:a {:href "/shop/order#content"} "Оформить заказ ⟶"])
+ "")])))
(fn product-overview [product classes]
(local classes (or classes ""))