summaryrefslogtreecommitdiff
path: root/views/mods/mod_revocation/ajaxDialogContent.phtml
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-10-03 15:38:49 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-10-03 15:38:49 +0200
commitf786f0c59d9a95d6829aaf58d99c882a609355ed (patch)
tree3b6e97793ed5c1eaffcc06dbecd94f62f55f8287 /views/mods/mod_revocation/ajaxDialogContent.phtml
parent6b03b7e7a5b47b52ea5d5b6aae2efb945f4dd686 (diff)
Widerrufsformular: Bestätigung ohne Bestelldaten, Name und Schlüssel
Jeder Widerruf wird angenommen; die Eingangsbestätigung an die eingetragene Adresse enthält nur die eigenen Angaben, der Betreiber bekommt die Bestelldaten mit Vermerken. Neues Pflichtfeld Name; der Link aus der Bestellmail bestätigt den Widerruf. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views/mods/mod_revocation/ajaxDialogContent.phtml')
-rw-r--r--views/mods/mod_revocation/ajaxDialogContent.phtml12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/mods/mod_revocation/ajaxDialogContent.phtml b/views/mods/mod_revocation/ajaxDialogContent.phtml
index 163d004..e10202c 100644
--- a/views/mods/mod_revocation/ajaxDialogContent.phtml
+++ b/views/mods/mod_revocation/ajaxDialogContent.phtml
@@ -22,6 +22,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
if (!is_array($dialog_config)) $dialog_config = [];
$contact_email = "";
+ $contact_name = "";
$customer_login_id = intval(\wpsg_ShopController::getShop()->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn'));
@@ -30,6 +31,7 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
$oCustomer = \wpsg_customer::getInstance($customer_login_id);
$contact_email = $oCustomer->getEmail();
+ $contact_name = trim($oCustomer->getFirstname().' '.$oCustomer->getName());
}
@@ -137,6 +139,16 @@ $arReason = \wpsgRevocation\Revocation::getReasons();
<?php } ?>
<div class="form_field">
+ <label class="label" for="wpsg_rvd_name"><?php echo __('Name', 'wpsg'); ?></label>
+ <div class="value">
+ <input type="text" required id="wpsg_rvd_name" autocomplete="name" name="wpsg_revocation_reason[name]" value="<?php echo \esc_attr($contact_name); ?>" />
+ </div>
+ </div>
+
+ <?php /* Schlüssel aus dem Link der Bestellmail, füllt wp_footer.phtml aus wpsg_revo_key (S18) */ ?>
+ <input type="hidden" name="wpsg_revocation_reason[key]" value="" />
+
+ <div class="form_field">
<label class="label" for="wpsg_rvd_contact"><?php echo __('Kontakt - E-Mail', 'wpsg'); ?></label>
<div class="value">
<input type="email" required id="wpsg_rvd_contact" autocomplete="email" name="wpsg_revocation_reason[contact]" value="<?php echo \esc_attr($contact_email); ?>"