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/_product/index.fnl | |
| parent | d29f796b047c2a90db8f1e143d7da2a0159f9b7e (diff) | |
add volume to products
Diffstat (limited to 'pages/shop/_product/index.fnl')
| -rw-r--r-- | pages/shop/_product/index.fnl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pages/shop/_product/index.fnl b/pages/shop/_product/index.fnl index 4bcf579..b4df0e5 100644 --- a/pages/shop/_product/index.fnl +++ b/pages/shop/_product/index.fnl @@ -27,6 +27,7 @@ products.type, products.region, products.stock, + products.volume, products.packaging, products.published, products.year, @@ -66,6 +67,9 @@ (if (not (lib.empty? product.year)) (HTML [:span {} [:NO-ESCAPE (.. product.year " год, ")]]) "") + (if (not (lib.empty? product.volume)) + (HTML [:span {} [:NO-ESCAPE (.. product.volume " мл., ")]]) + "") (if (not (lib.empty? product.region)) (.. product.region ", ") "") (if (= product.packaging "piece") (HTML [:strong {} product.price-per "₽"]) |
