diff options
| author | unwox <me@unwox.com> | 2025-09-14 21:27:56 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-09-14 21:29:18 +0600 |
| commit | 598578a314962c5b5ffdc73cd41e3add9adc52d7 (patch) | |
| tree | 6515d052ec94e97fafe8af0b936fc8e802ab759c /pages/shop/index.fnl | |
| parent | d29f796b047c2a90db8f1e143d7da2a0159f9b7e (diff) | |
add volume to products
Diffstat (limited to 'pages/shop/index.fnl')
| -rw-r--r-- | pages/shop/index.fnl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/shop/index.fnl b/pages/shop/index.fnl index 5c1d734..bd3e88b 100644 --- a/pages/shop/index.fnl +++ b/pages/shop/index.fnl @@ -16,6 +16,7 @@ products.published, products.short_description as \"short-description\", products.price_per AS \"price-per\", + products.volume, products.packaging, products.type, products.image1, @@ -76,6 +77,9 @@ [:a {:href item-url} [:h3 {:class "shop-item-title"} product.title]] [:div {:style "font-style: italic; margin-bottom: 0.25rem;"} (or (dicts.label dicts.product-type product.type) product.type) ", " + (if (not (lib.empty? product.volume)) + (HTML [:span {} [:NO-ESCAPE (.. product.volume " мл., ")]]) + "") (if (= product.packaging "piece") (HTML [:strong {} product.price-per "₽"]) (HTML [:strong {} (* 50 product.price-per) "₽ за 50 гр. "]))] |
