summaryrefslogtreecommitdiff
path: root/views/mods/mod_revocation/mails/mail_customer_html.phtml
blob: 96ee023d6f89b0be698d87f635c285cb9c7db8b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
	/** @version 4.6.1 */

	declare(strict_types=1);

	/**
	 * Eingangsbestätigung an die eingetragene Adresse (HTML)	 *
	 * Nur die Angaben des Absenders, keine Daten aus der Bestellung (S18): Die Adresse hat der Absender selbst eingetragen.
	 * Ohne order_id versendet, Platzhalter wie %kunde_name% bleiben deshalb leer.
	 */

	namespace wpsgRevocation;

	$arSubmitData = \wpsg_ShopController::getShop()->view['arSubmitData'] ?? [];
	$time = (string)($arSubmitData[0]['time'] ?? \current_time('mysql'));

?>
<p><?php echo __('Hallo', 'wpsg'); ?> <?php echo \esc_html($arSubmitData[0]['name'] ?? ''); ?>,</p>

<p><?php echo __('wir bestätigen den Eingang Ihrer Widerrufserklärung mit folgenden Angaben:', 'wpsg'); ?></p>

<?php foreach ($arSubmitData as $d): ?>
<div style="margin-bottom:20px; padding:15px; background-color:#f9f9f9; border-radius:5px;">
	<p style="margin:0 0 10px 0;"><strong><?php echo __('Bestellnummer', 'wpsg'); ?>:</strong> <?php echo \esc_html($d['order_nr']); ?></p>
	<?php if ($d['product_nr'] !== '') { ?><p style="margin:0 0 10px 0;"><strong><?php echo __('Artikelnr.', 'wpsg'); ?>:</strong> <?php echo \esc_html($d['product_nr']); ?></p><?php } ?>
	<p style="margin:0 0 10px 0;"><strong><?php echo __('Menge', 'wpsg'); ?>:</strong> <?php echo intval($d['amount']); ?></p>
	<p style="margin:0 0 10px 0;"><strong><?php echo __('Grund', 'wpsg'); ?>:</strong> <?php echo \esc_html(Revocation::reasonText((string)$d['reason'])); ?></p>
	<?php if ($d['comment'] !== '') { ?><p style="margin:0 0 10px 0;"><strong><?php echo __('Bemerkung', 'wpsg'); ?>:</strong> <?php echo nl2br(\esc_html($d['comment'])); ?></p><?php } ?>
</div>
<?php endforeach; ?>

<p>
	<strong><?php echo __('Name', 'wpsg'); ?>:</strong> <?php echo \esc_html($arSubmitData[0]['name'] ?? ''); ?><br>
	<strong><?php echo __('E-Mail', 'wpsg'); ?>:</strong> <?php echo \esc_html($arSubmitData[0]['contact'] ?? ''); ?><br>
	<strong><?php echo __('Eingang', 'wpsg'); ?>:</strong> <?php echo \esc_html(\mysql2date('d.m.Y H:i', $time)); ?>
</p>

<p><?php echo __('Dies ist eine Bestätigung des Eingangs. Die Prüfung der Wirksamkeit und Reichweite Ihrer Widerrufserklärung steht noch aus; wir melden uns bei Rückfragen.', 'wpsg'); ?></p>

<p>
	<?php echo __('Mit freundlichen Grüßen', 'wpsg'); ?><br>
	<?php echo \esc_html(\wpsg_ShopController::getShop()->get_option('wpsg_shopdata_name')); ?> - <?php echo __('Team', 'wpsg'); ?>
</p>