From 598578a314962c5b5ffdc73cd41e3add9adc52d7 Mon Sep 17 00:00:00 2001 From: unwox Date: Sun, 14 Sep 2025 21:27:56 +0600 Subject: add volume to products --- pages/shop/_product/edit.fnl | 1 + pages/shop/_product/index.fnl | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'pages/shop/_product') diff --git a/pages/shop/_product/edit.fnl b/pages/shop/_product/edit.fnl index 7e7548d..a8fd445 100644 --- a/pages/shop/_product/edit.fnl +++ b/pages/shop/_product/edit.fnl @@ -24,6 +24,7 @@ products.description, products.price_per, products.stock, + products.volume, products.vendor, products.vendor_article, products.vendor_description, 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 "₽"]) -- cgit v1.2.3