diff options
| author | unwox <me@unwox.com> | 2025-10-30 20:58:45 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-10-30 20:58:45 +0600 |
| commit | 5ea0e8309eaed8d0349696504e4a8b78997058b0 (patch) | |
| tree | c342e67f028979f18dd80486da812fef43645e1c | |
| parent | 13574cca2d2660911e8a20bb191371c76af47a71 (diff) | |
make ordering a bit more obvious
| -rw-r--r-- | pages/shop/order/index.fnl | 2 | ||||
| -rw-r--r-- | templates.fnl | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/pages/shop/order/index.fnl b/pages/shop/order/index.fnl index 35a48aa..c49f71b 100644 --- a/pages/shop/order/index.fnl +++ b/pages/shop/order/index.fnl @@ -31,7 +31,7 @@ (if (not agreed-to-cookies?) (templates.cookies-agreement) "") [:div {:class "back"} [:a {:href "/shop"} "⟵ Обратно к списку"]] [:section {} - [:h2 {} "Оформление заказа"] + [:h2 {:id "content"} "Оформление заказа"] (forms.render-form %order-form data errors)]])]) (fn check-stocks [db basket] 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 "")) |
