From 9f46ad9d1cb992055a57ad2eca68450bbd1ec549 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Mon, 22 Feb 2021 10:24:09 +0000 Subject: - Globales Template in Variante definierbar für DLPlus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7849 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productvariants/admin_edit.phtml | 41 ++++++++++++++++++++++++- views/mods/mod_productvariants/produkt.phtml | 27 ++++++++-------- views/mods/mod_productvars/renderTemplate.phtml | 2 +- views/produkttemplates/standard.phtml | 2 +- 4 files changed, 56 insertions(+), 16 deletions(-) diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index d69b05e..cf5a021 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -250,6 +250,45 @@ + + hasMod('wpsg_mod_downloadplus')) { ?> +
+ + callMod('wpsg_mod_downloadplus', 'getTemplate', []); + $arTemplatesLabel = [ + 0 => __('Unverändert', 'wpsg') + ]; + + foreach ($arTemplates as $t) $arTemplatesLabel[intval($t['id'])] = $t['name']; + + ?> + + 0 && isset($arTemplatesLabel[$template_id])) echo $arTemplatesLabel[$template_id]; + else __('Unverändert', 'wpsg'); + + ?> + + + +
+ - + view['product_id'])) { ?>

diff --git a/views/mods/mod_productvariants/produkt.phtml b/views/mods/mod_productvariants/produkt.phtml index a1ed798..ee6999c 100644 --- a/views/mods/mod_productvariants/produkt.phtml +++ b/views/mods/mod_productvariants/produkt.phtml @@ -75,8 +75,8 @@ callMod('wpsg_mod_productvariants', 'getSimulatedVariKey', array($this->view['data']['product_key'], $var['id'], $vari['variation_id'])); ?> imagehandler->getAttachmentID($simulated_product_key); ?> - - + + @@ -127,22 +127,23 @@ view['vp_data'] as $k => $var) */ ?> - + + + \ No newline at end of file diff --git a/views/mods/mod_productvars/renderTemplate.phtml b/views/mods/mod_productvars/renderTemplate.phtml index bea2820..8c349af 100644 --- a/views/mods/mod_productvars/renderTemplate.phtml +++ b/views/mods/mod_productvars/renderTemplate.phtml @@ -5,7 +5,7 @@ */ ?> - +
view['wpsg_mod_productvars']['data'] as $pv) { ?>
diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index 625da0a..4f6a251 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -12,7 +12,7 @@ /** @var wpsg_product $oProduct */ $oProduct = $this->view['oProduct']; - + ?>
-- cgit v1.2.3