From fe1b43a2645ee78032acffc581d52609a6d1698a Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Thu, 28 May 2026 04:16:42 +0000 Subject: - Widerrufsformular git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8520 0d5edaf7-2b12-4e95-93f4-047927463d4b --- .../mod_revocation/mails/mail_admin_html.phtml | 80 ++++++++++++++++++++++ .../mod_revocation/mails/mail_admin_text.phtml | 44 ++++++++++++ .../mod_revocation/mails/mail_customer_html.phtml | 75 ++++++++++++++++++++ .../mod_revocation/mails/mail_customer_text.phtml | 53 ++++++++++++++ 4 files changed, 252 insertions(+) create mode 100644 views/mods/mod_revocation/mails/mail_admin_html.phtml create mode 100644 views/mods/mod_revocation/mails/mail_admin_text.phtml create mode 100644 views/mods/mod_revocation/mails/mail_customer_html.phtml create mode 100644 views/mods/mod_revocation/mails/mail_customer_text.phtml (limited to 'views/mods/mod_revocation/mails') diff --git a/views/mods/mod_revocation/mails/mail_admin_html.phtml b/views/mods/mod_revocation/mails/mail_admin_html.phtml new file mode 100644 index 0000000..57920b5 --- /dev/null +++ b/views/mods/mod_revocation/mails/mail_admin_html.phtml @@ -0,0 +1,80 @@ +view['arSubmitData'] ?? []; + $arReason = Revocation::getReasons(); + +?> +

+ +

+ +

+ : %kunde_anrede% %kunde_vname% %kunde_name%
+ : %kunde_email% +

+ +
+ + $d): + + $oOrder = $d['oOrder']; + $oOrderProduct = $d['oOrderProduct']; + + $reasonText = array_values(array_filter( + $arReason, + function($item) use ($d) { + return $item['id'] === $d['reason']; + } + ))[0]['text'] ?? ''; +?> + +
+

+ : + getNr(); ?> +

+ +

+ : + x getProduct()->getProductName(true); ?> + / : + getProduct()->getNr(); ?> +

+ +

+ : + +

+ +

+ : + +

+
+ + + +

+ : + +

+ +

+ +

+ +

+
+ get_option('wpsg_shopdata_name'), 'wpsgRevocation'); ?> + - +

\ No newline at end of file diff --git a/views/mods/mod_revocation/mails/mail_admin_text.phtml b/views/mods/mod_revocation/mails/mail_admin_text.phtml new file mode 100644 index 0000000..8ce601a --- /dev/null +++ b/views/mods/mod_revocation/mails/mail_admin_text.phtml @@ -0,0 +1,44 @@ +view['arSubmitData'] ?? []; + $arReason = Revocation::getReasons(); + +?> + + + + %kunde_anrede% %kunde_vname% %kunde_name% + %kunde_email% + + $d) { + + /** @var \wpsg_order $oOrder */ + $oOrder = $d['oOrder']; + + /** @var \wpsg_order_product $oOrderProduct */ + $oOrderProduct = $d['oOrderProduct']; + +?> + getNr(); ?> + x getProduct()->getProductName(true); ?> / : getProduct()->getNr(); ?> + + + + + + + + + + +get_option('wpsg_shopdata_name'), 'wpsgRevocation'); ?> - \ No newline at end of file diff --git a/views/mods/mod_revocation/mails/mail_customer_html.phtml b/views/mods/mod_revocation/mails/mail_customer_html.phtml new file mode 100644 index 0000000..f946efa --- /dev/null +++ b/views/mods/mod_revocation/mails/mail_customer_html.phtml @@ -0,0 +1,75 @@ +view['arSubmitData'] ?? []; + $arReason = Revocation::getReasons(); + +?> +

%kunde_anrede% %kunde_name%,

+ +

+ +

+ + $d): + + $oOrder = $d['oOrder']; + $oOrderProduct = $d['oOrderProduct']; + + $reasonText = array_values(array_filter( + $arReason, + function($item) use ($d) { + return $item['id'] === $d['reason']; + } + ))[0]['text'] ?? ''; +?> + +
+

+ : + getNr(); ?> +

+ +

+ : + x getProduct()->getProductName(true); ?> + / : + getProduct()->getNr(); ?> +

+ +

+ : + +

+ + +

+ : + +

+ +
+ + + +

+ : + +

+ +

+ +

+
+ get_option('wpsg_shopdata_name'); ?> + - +

\ No newline at end of file diff --git a/views/mods/mod_revocation/mails/mail_customer_text.phtml b/views/mods/mod_revocation/mails/mail_customer_text.phtml new file mode 100644 index 0000000..0608fc5 --- /dev/null +++ b/views/mods/mod_revocation/mails/mail_customer_text.phtml @@ -0,0 +1,53 @@ +view['arSubmitData'] ?? []; + $arReason = Revocation::getReasons(); + +?> %kunde_anrede% %kunde_name%, + + + + + + $d): + + $oOrder = $d['oOrder']; + $oOrderProduct = $d['oOrderProduct']; + + $reasonText = array_values(array_filter( + $arReason, + function($item) use ($d) { + return $item['id'] === $d['reason']; + } + ))[0]['text'] ?? ''; +?> + + getNr(); ?> + + x getProduct()->getProductName(true); ?> / : getProduct()->getNr(); ?> + + + + + + + + + + + + + + + +get_option('wpsg_shopdata_name'); ?> - \ No newline at end of file -- cgit v1.2.3