From af8d967ce5cf59b728a4a35e1fa42000d45d0129 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 6 Sep 2017 12:13:57 +0000 Subject: - Bilderumschaltung AttachmentID normales Produkttemplate git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6458 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_productvariants/admin_edit.phtml | 2 +- views/mods/mod_productvariants/produkt.phtml | 59 +++++-------------------- views/produkttemplates/standard.phtml | 2 +- 3 files changed, 12 insertions(+), 51 deletions(-) (limited to 'views') diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml index 0ee21dc..ff68119 100644 --- a/views/mods/mod_productvariants/admin_edit.phtml +++ b/views/mods/mod_productvariants/admin_edit.phtml @@ -174,7 +174,7 @@   imagehandler->getAttachmentIDs($this->view['product_id'], $vari['id']); + $arAttachmentIDs = $this->imagehandler->getAttachmentIDs($this->view['product_id'], $vari['id'], true); ?> diff --git a/views/mods/mod_productvariants/produkt.phtml b/views/mods/mod_productvariants/produkt.phtml index ee87255..cbf15a4 100644 --- a/views/mods/mod_productvariants/produkt.phtml +++ b/views/mods/mod_productvariants/produkt.phtml @@ -61,32 +61,7 @@ - - get_option("wpsg_vp_showpic") == "1") { ?> - - $vari) { - if ($vari['active'] == "1" && isset($vari['showpic'])) { ?> - - - view['data']['product_key'])) { - $arAttachmentIDs = $this->imagehandler->getAttachmentIDs($this->view['data']['product_key']); - $attachmentID = $this->imagehandler->getAttachmentID($this->view['data']['product_key']); - - echo wp_get_attachment_image($attachmentID, 'medium'); - - } - - $pbw = $this->get_option("wpsg_vp_showpic_width"); - $pbh = $this->get_option("wpsg_vp_showpic_height"); - $img_src = $vari['guid']; - ?> - - - - - - + @@ -94,20 +69,17 @@
- + $vari) { $kkv++; if ($vari['active'] == '1' && (!$this->hasMod('wpsg_mod_stock') || $vari['stock'] > 0)) { ?> - view['data']['product_key'])) { - $arAttachmentIDs = $this->imagehandler->getAttachmentIDs($this->view['data']['product_key']); - $attachmentID = $this->imagehandler->getAttachmentID($this->view['data']['product_key']); - ?> - - - - - + callMod('wpsg_mod_productvariants', 'getSimulatedVariKey', array($this->view['data']['product_key'], $var['id'], $vari['id'])); ?> + imagehandler->getAttachmentID($simulated_product_key); ?> + + + + + @@ -122,7 +94,7 @@ diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index 691c5a1..865634c 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -12,7 +12,7 @@ $arAttachmentIDs = $this->imagehandler->getAttachmentIDs($this->view['data']['product_key']); $arAttachmentIDsAll = $this->imagehandler->getAttachmentIDs($this->view['data']['product_id']); - + ?>
-- cgit v1.2.3