summaryrefslogtreecommitdiff
path: root/views/warenkorb
diff options
context:
space:
mode:
authorhartmut <noreply@maennchen1.de>2017-05-12 14:44:21 +0000
committerhartmut <noreply@maennchen1.de>2017-05-12 14:44:21 +0000
commit4699f08728ca20c41b239aeb550cbeacc2b359af (patch)
treee3b26c559d98d6c400dc207316de3a67eded752a /views/warenkorb
parent5ea9179a85b918c7a284918ccdf69e05c51ed2b4 (diff)
Korrektur Variationen und Produktbilder
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6265 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/warenkorb')
-rw-r--r--views/warenkorb/basket.phtml6
-rw-r--r--views/warenkorb/overview.phtml10
2 files changed, 15 insertions, 1 deletions
diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml
index 5f43120..93dc7cc 100644
--- a/views/warenkorb/basket.phtml
+++ b/views/warenkorb/basket.phtml
@@ -72,9 +72,15 @@
?>
<div class="wpsg_basket_productimage">
<?php if (wpsg_isSizedString($arBilder[0]['guid'])) { ?>
+ /*
<?php $href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
<?php $imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
<img src="<?php echo $href[0]; ?>" width="30" height="30" alt="<?php echo wpsg_hspc((($p['detailname'] != '')?$p['detailname']:$p['name'])); ?>" />
+ */
+
+ $url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($p['product_key'], 'medium'));
+ echo "<img src=".$url." alt='' />";
+
<?php } ?>
</div>
<?php } ?>
diff --git a/views/warenkorb/overview.phtml b/views/warenkorb/overview.phtml
index 386e6fa..48e6602 100644
--- a/views/warenkorb/overview.phtml
+++ b/views/warenkorb/overview.phtml
@@ -145,10 +145,18 @@
?>
<div class="wpsg_overview_productimage">
+
<?php if (wpsg_isSizedString($arBilder[0]['guid'])) { ?>
+ /*
<?php $href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
<?php $imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
- <img src="<?php echo $href[0]; ?>" width="30" height="30" alt="<?php echo wpsg_hspc((($p['detailname'] != '')?$p['detailname']:$p['name'])); ?>" />
+ */
+
+ <?php $img_url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($p['product_key'], 'thumbnail')); ?>
+ <?php if ($img_url !== false) { ?>
+ <img class="theme_border_color_2 theme_color_2" src="<?php echo $img_url; ?>" alt="<?php echo wpsg_translate(__('Produktbilder von Produkte #1#', 'wspg'), $p['name']); ?>" />
+ <?php } ?>
+
<?php } ?>
</div>
<?php } ?>