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/warenkorb/ajaxDialog.phtml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'views/warenkorb/ajaxDialog.phtml') diff --git a/views/warenkorb/ajaxDialog.phtml b/views/warenkorb/ajaxDialog.phtml index 4ac5c4f..02a2941 100644 --- a/views/warenkorb/ajaxDialog.phtml +++ b/views/warenkorb/ajaxDialog.phtml @@ -9,18 +9,23 @@ // $this->view['amount_basket'] // So oft befindet sich das hinzugefügte Produkt im Warenkorb // $this->view['product_data'] // Array mit Produktdaten // $this->view['product_index'] // Index des Produktes im Warenkorb - - $arImages = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['product_data']['product_id'])); - if (!wpsg_isSizedArray($arImages)) $arImages = array(); + + if (isset($_REQUEST['wpsg']['product_key'])) { + //$image = $this->imagehandler->getAttachmentID($this->view['product_data']['product_key']); + $image = $this->imagehandler->getAttachmentID($_REQUEST['wpsg']['product_key']); + } else { + $arImages = $this->imagehandler->getAttachmentIDs($this->view['product_data']['product_id']); + $image = $arImages[0]; + } $arBasket = $this->basket->toArray(); ?>
- +
- +
@@ -78,12 +83,13 @@