From 2c83a9eb9da67d41f992d54ea7d142e06baae67a Mon Sep 17 00:00:00 2001 From: Jean-Luc Beer Date: Wed, 1 Jul 2026 08:08:41 +0000 Subject: Widerrufseite view git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8538 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_revocation/page_form.phtml | 191 ++++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 views/mods/mod_revocation/page_form.phtml (limited to 'views/mods/mod_revocation/page_form.phtml') diff --git a/views/mods/mod_revocation/page_form.phtml b/views/mods/mod_revocation/page_form.phtml new file mode 100644 index 0000000..daa8eff --- /dev/null +++ b/views/mods/mod_revocation/page_form.phtml @@ -0,0 +1,191 @@ +callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn')); + + if ($customer_login_id > 0) { + + $oCustomer = \wpsg_customer::getInstance($customer_login_id); + $contact_email = $oCustomer->getEmail(); + + } + + // Vorbelegung über GET-Parameter (z.B. aus Verlinkung in der Bestellbestätigungsmail) + $get_order = isset($_GET['wpsg_revo_order']) ? \sanitize_text_field($_GET['wpsg_revo_order']) : ''; + $get_product = isset($_GET['wpsg_revo_product']) ? \sanitize_text_field($_GET['wpsg_revo_product']) : ''; + $get_amount = isset($_GET['wpsg_revo_amount']) ? max(1, intval($_GET['wpsg_revo_amount'])) : 1; + $get_contact = isset($_GET['wpsg_revo_contact']) ? \sanitize_email($_GET['wpsg_revo_contact']) : ''; + + if ($contact_email === '' && $get_contact !== '' && \is_email($get_contact)) $contact_email = $get_contact; + + $key = 0; + +?> + +
+ +
+ +
+ +
+ +
+
+
+ +
+
+ +
+
+
+ + +
+
+ +
+
+
+ +
+
+ +
+
+
+ +
+
+ +
+ +
+
+
+ 0 && $contact_email !== '') ? 'readonly' : ''); ?> + /> +
+
+ +

+ + . +

+ +
+ +
+ +
+ +
+ + -- cgit v1.2.3