diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2017-01-26 13:40:02 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2017-01-26 13:40:02 +0000 |
| commit | ab8ab074ff1eb340e2cc363b4fde5c87ca6465a5 (patch) | |
| tree | d315484bd71e4b63b9813f9618d3013177dedb43 | |
| parent | 8443f1aded19e5fa02b0f3156039c45c272f5e6c (diff) | |
- Korrektes Variantenbild in HTML Mail zumindest der Stand von V3
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6038 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/mailtemplates/html/order.phtml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/mailtemplates/html/order.phtml b/views/mailtemplates/html/order.phtml index 7fc6a8e..39706c9 100644 --- a/views/mailtemplates/html/order.phtml +++ b/views/mailtemplates/html/order.phtml @@ -21,6 +21,9 @@ <?php if ($this->hasMod('wpsg_mod_produktbilder') && wpsg_isSizedInt($this->get_option('wpsg_mod_produktbilder_overviewimage'))) { $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->getProduktId($p['id']))); ?>
<?php if (wpsg_isSizedArray($arBilder)) { ?>
<a style="width:50px; width:50px; margin-right:10px; float:left;" href="<?php echo $this->getProduktLink($this->getProduktId($p['id'])); ?>" title="<?php echo wpsg_hspc(((wpsg_isSizedString($p['detailname'])?$p['detailname']:$p['name']))); ?>">
+
+ <?php if (wpsg_isSizedString($p['varianten_image'])) $arBilder = array($p['varianten_image']); ?>
+
<img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->getProduktId($p['id']), array_shift($arBilder), 50, 50, 'sz')); ?>" alt="<?php echo wpsg_hspc(((wpsg_isSizedString($p['detailname'])?$p['detailname']:$p['name']))); ?>" />
</a>
<?php } ?>
|
