From ec8777e2484f5d8f70d9674d012873f82f8dfc60 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 2 Jun 2021 05:35:45 +0000 Subject: - 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 --- views/admin/kundendaten_tab2.phtml | 13 ++++++++----- views/mailtemplates/html/order.phtml | 29 ++++++++++++++++++++++++++++- views/mailtemplates/order.phtml | 18 ++++++++++++++++-- views/order/view_customerdata.phtml | 19 +++++++++++++++++-- 4 files changed, 69 insertions(+), 10 deletions(-) diff --git a/views/admin/kundendaten_tab2.phtml b/views/admin/kundendaten_tab2.phtml index 6473f6d..0f9cdba 100644 --- a/views/admin/kundendaten_tab2.phtml +++ b/views/admin/kundendaten_tab2.phtml @@ -90,14 +90,17 @@ indicator: '', tooltip: '', callback: function(el) { - if (el == '') - { + + if (el == '1') { + jQuery('#row_auswahl_').show(); - } - else - { + + } else { + jQuery('#row_auswahl_').hide(); + } + } }); 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 @@ view['oOrder']; + if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto'; else $display_brutto_netto = 'netto'; @@ -201,6 +204,30 @@ callMods('mail_order_end', [&$this->view['basket']['arCalculation'], true]); ?> + + getCustomer()->getCustomerVariables(); + + if (wpsg_isSizedArray($arCV)) { ?> + + :
+ + + + + + + + + + +
+ + +
\ No newline at end of file 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 @@ view['oOrder']; + if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto'; else $display_brutto_netto = 'netto'; @@ -121,4 +124,15 @@ view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')), 34); ?> callMods('mail_order_end', [&$this->view['basket']['arCalculation'], false]); ?> -callMods('mail_aftercalculation', array(&$this->view['order']['id'])); ?> \ No newline at end of file +callMods('mail_aftercalculation', array(&$this->view['order']['id'])); ?> +getCustomer()->getCustomerVariables(); + + if (wpsg_isSizedArray($arCV)) { ?> +: + + +: + + \ No newline at end of file diff --git a/views/order/view_customerdata.phtml b/views/order/view_customerdata.phtml index 66d7d76..c76ec1a 100644 --- a/views/order/view_customerdata.phtml +++ b/views/order/view_customerdata.phtml @@ -6,6 +6,9 @@ * Time: 10:40 */ + /** @var wpsg_customer $Customer */ + $Customer = $this->view['oCustomer']; + ?>