diff --git a/lib/Listener/MenuBoardProviderListener.php b/lib/Listener/MenuBoardProviderListener.php
index d94ea8aeb6..9d9fcc6d45 100644
--- a/lib/Listener/MenuBoardProviderListener.php
+++ b/lib/Listener/MenuBoardProviderListener.php
@@ -60,7 +60,17 @@ public function onProductRequest(MenuBoardProductRequest $event): void
return;
}
- $products = $this->menuBoardCategoryFactory->getProductData(null, ['menuId' => $menuId]);
+ // Build a filter
+ $filter = [
+ 'menuId' => $menuId,
+ ];
+
+ // Show Unavailable?
+ if ($dataProvider->getProperty('showUnavailable', 0) === 0) {
+ $filter['availability'] = 0;
+ }
+
+ $products = $this->menuBoardCategoryFactory->getProductData(['name'], $filter);
foreach ($products as $menuBoardProduct) {
$product = $menuBoardProduct->toProduct();
diff --git a/modules/menuboard-category.xml b/modules/menuboard-category.xml
index c404556476..780320c46f 100644
--- a/modules/menuboard-category.xml
+++ b/modules/menuboard-category.xml
@@ -37,10 +37,21 @@