Skip to content

Commit

Permalink
fix: product page condition
Browse files Browse the repository at this point in the history
  • Loading branch information
iwate committed Dec 8, 2023
1 parent 316ddec commit 21fad43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/Partial/Page.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
join s in db.Products on m.PriceProductId equals s.Id into sku
from s in sku.DefaultIfEmpty()
where r.PageCode == args.code
&& p.Kind == "product"
&& (p.Kind == "product" || p.Kind == "productc")
&& p.DisplayStart <= args.Now
&& (p.DisplayEnd == null || p.DisplayEnd > args.Now)
&& (p.IsPublished || args.IsPreview)
Expand All @@ -59,6 +59,7 @@
join p in db.SitePages on r.RelateCode equals p.Code
where r.PageCode == args.code
&& p.Kind != "product"
&& p.Kind != "productc"
&& p.DisplayStart <= args.Now
&& (p.DisplayEnd == null || p.DisplayEnd > args.Now)
&& (p.IsPublished || args.IsPreview)
Expand Down

0 comments on commit 21fad43

Please sign in to comment.