summaryrefslogtreecommitdiff
path: root/views/mods/mod_revocation/mail_row_html.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2026-05-28 04:16:42 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2026-05-28 04:16:42 +0000
commitfe1b43a2645ee78032acffc581d52609a6d1698a (patch)
tree3d7b0bb74c67a9bac23ea2fb513b8012f4e13dbc /views/mods/mod_revocation/mail_row_html.phtml
parentfd9122e4359db02258da7f6a0460c0fc962e5420 (diff)
- Widerrufsformular
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@8520 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_revocation/mail_row_html.phtml')
-rwxr-xr-xviews/mods/mod_revocation/mail_row_html.phtml24
1 files changed, 24 insertions, 0 deletions
diff --git a/views/mods/mod_revocation/mail_row_html.phtml b/views/mods/mod_revocation/mail_row_html.phtml
new file mode 100755
index 0000000..e7f2945
--- /dev/null
+++ b/views/mods/mod_revocation/mail_row_html.phtml
@@ -0,0 +1,24 @@
+<?php
+
+ /**
+ * Template für die Integration des Widerruflinks in die Kunden- und Adminmail (HTML)
+ */
+
+ $i = intval($this->view['i']);
+
+ $order_id = intval($this->view['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']);
+
+ $revo_url = get_home_url('/', '', 'http').'?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'); ?>">
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos">&nbsp;</td>
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Widerruf', 'wpsgRevocation'); ?>:</td>
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="4">
+ <a href="<?php echo $revo_url; ?>"><?php echo __('Widerruf starten', 'wpsgRevocation'); ?></a>
+ </td>
+</tr>