summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorRoger Rehnelt <noreply@maennchen1.de>2026-09-26 12:22:53 +0200
committerRoger Rehnelt <noreply@maennchen1.de>2026-09-26 12:22:53 +0200
commit76b2b2c317acf0ab3256e565179e8f5b7500fce5 (patch)
tree765e6a2e92ce2d93c9a665a07a80db4e00606026 /views
parenta904570c8039cd81025e99cc6ab691ba8908cfd1 (diff)
Widerruf: Grund, Warnungen und Betreff in den Mails
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'views')
-rwxr-xr-xviews/mods/mod_revocation/mail_row.phtml6
-rwxr-xr-xviews/mods/mod_revocation/mail_row_html.phtml6
2 files changed, 6 insertions, 6 deletions
diff --git a/views/mods/mod_revocation/mail_row.phtml b/views/mods/mod_revocation/mail_row.phtml
index fc784e7..3a5361a 100755
--- a/views/mods/mod_revocation/mail_row.phtml
+++ b/views/mods/mod_revocation/mail_row.phtml
@@ -4,13 +4,13 @@
* Template für die Integration des Widerruflinks in die Kunden- und Adminmail
*/
- $order_id = intval($this->view['order_id']);
+ $order_id = intval($this->view['wpsg_mod_revocation']['order_id']);
$order_nr = $this->view['wpsg_mod_revocation']['order_nr'];
$product_nr = $this->view['wpsg_mod_revocation']['product_nr'];
$amount = $this->view['wpsg_mod_revocation']['amount'];
- $order_product_id = intval($this->view['order_product_id']);
+ $order_product_id = intval($this->view['wpsg_mod_revocation']['order_product_id']);
- $revo_url = get_home_url('/', '', 'http').'?wpsg_revo_order='.urlencode($order_nr).'&wpsg_revo_product='.urlencode($product_nr).'&wpsg_revo_amount='.urlencode($amount);
+ $revo_url = home_url('/').'?wpsg_revo_order='.urlencode($order_nr).'&wpsg_revo_product='.urlencode($product_nr).'&wpsg_revo_amount='.urlencode($amount);
?><?php echo "\n"; ?>
<?php echo wpsg_pad_left(__('Vertrag widerrufen:', 'wpsg').' ', 15); ?> <?php echo $revo_url; ?>
diff --git a/views/mods/mod_revocation/mail_row_html.phtml b/views/mods/mod_revocation/mail_row_html.phtml
index e58ae64..207e575 100755
--- a/views/mods/mod_revocation/mail_row_html.phtml
+++ b/views/mods/mod_revocation/mail_row_html.phtml
@@ -6,13 +6,13 @@
$i = intval($this->view['i']);
- $order_id = intval($this->view['order_id']);
+ $order_id = intval($this->view['wpsg_mod_revocation']['order_id']);
$order_nr = $this->view['wpsg_mod_revocation']['order_nr'];
$product_nr = $this->view['wpsg_mod_revocation']['product_nr'];
$amount = $this->view['wpsg_mod_revocation']['amount'];
- $order_product_id = intval($this->view['order_product_id']);
+ $order_product_id = intval($this->view['wpsg_mod_revocation']['order_product_id']);
- $revo_url = get_home_url('/', '', 'http').'?wpsg_revo_order='.urlencode($order_nr).'&wpsg_revo_product='.urlencode($product_nr).'&wpsg_revo_amount='.urlencode($amount);
+ $revo_url = home_url('/').'?wpsg_revo_order='.urlencode($order_nr).'&wpsg_revo_product='.urlencode($product_nr).'&wpsg_revo_amount='.urlencode($amount);
?>
<tr class="productrow productrow2 <?php echo ((($i % 2) == 0)?'productrow_odd':'productrow_even'); ?>">