diff options
Diffstat (limited to 'views/warenkorb')
| -rw-r--r-- | views/warenkorb/basket.phtml | 6 | ||||
| -rw-r--r-- | views/warenkorb/overview.phtml | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml index 4c68672..1454e54 100644 --- a/views/warenkorb/basket.phtml +++ b/views/warenkorb/basket.phtml @@ -76,7 +76,11 @@ <?php if (wpsg_isSizedString($arBilder[0]['guid'])) { ?>
<?php
- $url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($p['product_key'], 'medium'));
+ if (isset($p['product_key'])) {
+ $url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($p['product_key'], 'medium'));
+ } else {
+ $url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($p['productkey'], 'medium'));
+ }
echo "<img src=".$url." alt='' />";
?>
diff --git a/views/warenkorb/overview.phtml b/views/warenkorb/overview.phtml index 1433e94..4e11189 100644 --- a/views/warenkorb/overview.phtml +++ b/views/warenkorb/overview.phtml @@ -148,7 +148,12 @@ <?php if (wpsg_isSizedString($arBilder[0]['guid'])) { ?>
- <?php $img_url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($p['product_key'], 'thumbnail')); ?>
+ <?php
+ if (isset($p['product_key'])) {
+ $img_url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($p['product_key'], 'thumbnail'));
+ } else {
+ $img_url = $this->callMod('wpsg_mod_produktbilder', 'getProductImage_MT', array($p['productkey'], '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 } ?>
|
