diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2021-06-02 05:35:45 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2021-06-02 05:35:45 +0000 |
| commit | ec8777e2484f5d8f70d9674d012873f82f8dfc60 (patch) | |
| tree | 3f8d7e77f676dffa326230e7a9893e1a4d661631 /views/mailtemplates/order.phtml | |
| parent | 84c020827ecf96c2a57e04f56b0f7e68ae974d7d (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/order.phtml')
| -rw-r--r-- | views/mailtemplates/order.phtml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/views/mailtemplates/order.phtml b/views/mailtemplates/order.phtml index ae91725..40f5803 100644 --- a/views/mailtemplates/order.phtml +++ b/views/mailtemplates/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';
@@ -121,4 +124,15 @@ <?php echo wpsg_pad_left(wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')), 34); ?>
<?php $this->callMods('mail_order_end', [&$this->view['basket']['arCalculation'], false]); ?>
-<?php $this->callMods('mail_aftercalculation', array(&$this->view['order']['id'])); ?>
\ No newline at end of file +<?php $this->callMods('mail_aftercalculation', array(&$this->view['order']['id'])); ?>
+<?php
+
+ $arCV = $oOrder->getCustomer()->getCustomerVariables();
+
+ if (wpsg_isSizedArray($arCV)) { ?>
+<?php echo __('Weitere Kundendaten', 'wpsg'); ?>:
+
+<?php foreach ($arCV as $cv) { ?>
+<?php echo $cv['label']; ?>: <?php echo $cv['value']."\r\n"; ?>
+<?php } ?>
+<?php } ?>
\ No newline at end of file |
