From 9bbdb358daed1771815731435162ed963f644300 Mon Sep 17 00:00:00 2001 From: Jean-Luc Beer Date: Fri, 12 Sep 2025 08:17:31 +0000 Subject: - voucher new column "Produkte" - voucher product selection sorted and only active products git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8502 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_gutschein/index.phtml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/views/mods/mod_gutschein/index.phtml b/views/mods/mod_gutschein/index.phtml index a665516..26931c4 100644 --- a/views/mods/mod_gutschein/index.phtml +++ b/views/mods/mod_gutschein/index.phtml @@ -76,7 +76,8 @@ - + + @@ -124,6 +125,28 @@ } ?> + getAllowedProduct()) { + + $arAllowed = $oVoucher->getAllowedProduct(); + $names = []; + + foreach ($arAllowed as $productID) { + if (!wpsg_isSizedInt($productID)) continue; + try { + $p = wpsg_product::getInstance($productID); + $names[] = wpsg_hspc($p->getProductName()); + } catch (\Exception $e) {} + } + echo implode(', ', $names); + } else if ($oVoucher->isLimitedProductgroup()) { + echo __('spezielle Produktgruppen', 'wpsg'); + } else { + echo __('Alle', 'wpsg'); + } + + ?> comment; if (wpsg_isSizedString($comment)) { ?> -- cgit v1.2.3