From fe729d467d24bd2025f845efc83bfdec4de131ae Mon Sep 17 00:00:00 2001 From: hartmut Date: Mon, 11 Sep 2017 12:54:43 +0000 Subject: Korrektur Produktbilder->ImageHandler git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6491 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mailtemplates/html/order.phtml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'views/mailtemplates/html/order.phtml') diff --git a/views/mailtemplates/html/order.phtml b/views/mailtemplates/html/order.phtml index 558dd3b..0b5bfbd 100644 --- a/views/mailtemplates/html/order.phtml +++ b/views/mailtemplates/html/order.phtml @@ -18,14 +18,19 @@
- hasMod('wpsg_mod_produktbilder') && wpsg_isSizedInt($this->get_option('wpsg_imagehandler_overviewimage'))) { $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->getProduktId($p['id']))); ?> - + get_option('wpsg_imagehandler_overviewimage'))) { + + if (isset($p['product_key'])) { + $bild = $this->imagehandler->getAttachmentID($p['product_key']); + } else { + $arBilder = $this->imagehandler->getAttachmentIDs($this->getProduktId($p['id'])); + $bild = $arBilder[0]; + } + ?> + - - - - + -- cgit v1.2.3