From 9ea3ec87f712b0d3bde112614fb092b528bf1099 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sun, 8 Feb 2026 11:57:05 -0800 Subject: [PATCH] Fix modifiers not showing in app - CategoryID filter excluded them Modifiers are saved with CategoryID=0 and ParentItemID pointing to their parent item. The query was filtering by CategoryID IN (visible categories) which excluded all modifiers. Changed to: (CategoryID IN (visible) OR (CategoryID=0 AND ParentItemID>0)) Co-Authored-By: Claude Opus 4.5 --- api/menu/items.cfm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/api/menu/items.cfm b/api/menu/items.cfm index b10aea6..f035544 100644 --- a/api/menu/items.cfm +++ b/api/menu/items.cfm @@ -203,7 +203,7 @@ LEFT JOIN Stations s ON s.ID = i.StationID WHERE i.BusinessID = :bizId AND i.IsActive = 1 - AND i.CategoryID IN (#visibleCategoryIds#) + AND (i.CategoryID IN (#visibleCategoryIds#) OR (i.CategoryID = 0 AND i.ParentItemID > 0)) AND NOT EXISTS (SELECT 1 FROM lt_ItemID_TemplateItemID tl WHERE tl.TemplateItemID = i.ID) AND NOT EXISTS (SELECT 1 FROM lt_ItemID_TemplateItemID tl2 WHERE tl2.TemplateItemID = i.ParentItemID) AND NOT (i.ParentItemID = 0 AND i.CategoryID = 0 AND i.Price = 0) @@ -529,13 +529,14 @@ - + + @@ -546,6 +547,9 @@ + + + @@ -564,6 +568,7 @@ "BRANDCOLOR": brandColor, "HEADERIMAGEURL": headerImageUrl, "TAXRATE": val(businessTaxRate), + "PAYFRITFEE": val(businessPayfritFee), "Menus": menuList, "SelectedMenuID": requestedMenuID })>