From cec3e44180fa66be47c2568cf205ef63e229082d Mon Sep 17 00:00:00 2001 From: Andrej Shadura Date: Sun, 6 Nov 2022 02:00:42 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20attempt=20to=20show=20prices=20?= =?UTF-8?q?for=20products=20without=20price?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/products/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/products/list.html b/layouts/products/list.html index a726631..8533eaa 100644 --- a/layouts/products/list.html +++ b/layouts/products/list.html @@ -25,6 +25,7 @@
{{ .Title }}

{{ .Params.Description }}

+ {{ if .Params.Price }}
{{ if .Params.PriceBefore }} {{ site.Params.currencySymbol }}{{ .Params.PriceBefore }} @@ -36,6 +37,7 @@ data-item-price="{{ .Params.Price }}" data-item-url="{{ .Permalink }}" data-item-description="{{ .Description }}"> Add to cart + {{ end }}