summaryrefslogtreecommitdiff
path: root/views/mailtemplates/html/order.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2021-06-02 05:35:45 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2021-06-02 05:35:45 +0000
commitec8777e2484f5d8f70d9674d012873f82f8dfc60 (patch)
tree3f8d7e77f676dffa326230e7a9893e1a4d661631 /views/mailtemplates/html/order.phtml
parent84c020827ecf96c2a57e04f56b0f7e68ae974d7d (diff)
- Bugfix: Weitere Kundendaten werden in Admin- und Kundenmail und Bestellverwaltung angezeigt
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7900 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mailtemplates/html/order.phtml')
-rw-r--r--views/mailtemplates/html/order.phtml29
1 files changed, 28 insertions, 1 deletions
diff --git a/views/mailtemplates/html/order.phtml b/views/mailtemplates/html/order.phtml
index cb0f2de..b024ec8 100644
--- a/views/mailtemplates/html/order.phtml
+++ b/views/mailtemplates/html/order.phtml
@@ -1,5 +1,8 @@
<?php
-
+
+ /** @var wpsg_order $oOrder */
+ $oOrder = $this->view['oOrder'];
+
if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto';
else $display_brutto_netto = 'netto';
@@ -201,6 +204,30 @@
</tr>
<?php $this->callMods('mail_order_end', [&$this->view['basket']['arCalculation'], true]); ?>
</table>
+
+ <?php
+
+ $arCV = $oOrder->getCustomer()->getCustomerVariables();
+
+ if (wpsg_isSizedArray($arCV)) { ?>
+
+ <strong><?php echo __('Weitere Kundendaten', 'wpsg'); ?>:</strong><br />
+
+ <table>
+
+ <?php foreach ($arCV as $cv) { ?>
+ <tr>
+ <th><?php echo $cv['label']; ?></th>
+ <td><?php echo $cv['value']; ?></td>
+ </tr>
+ <?php } ?>
+
+ </table>
+
+ <?php }
+
+ ?>
+
</div>
<br /> \ No newline at end of file