blob: ae060c1a1e96ee0ca37029cfff414f46648f02fc (
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
|
<?php
/**
* Template für die Integration des Widerruflinks in die Kunden- und Adminmail (HTML)
* @version 4.6.1
*/
$i = intval($this->view['i']);
$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['wpsg_mod_revocation']['order_product_id']);
// Schlüssel der Bestellung (S18): bestätigt den Widerruf; keine Nonce, siehe Revocation::orderToken()
$revo_url = home_url('/').'?wpsg_revo_order='.urlencode($order_nr).'&wpsg_revo_product='.urlencode($product_nr).'&wpsg_revo_amount='.urlencode($amount).'&wpsg_revo_key='.urlencode((string)($this->view['wpsg_mod_revocation']['key'] ?? ''));
?>
<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"> </td>
<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Widerruf', 'wpsg'); ?>:</td>
<td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="4">
<a href="<?php echo esc_url($revo_url); ?>"><?php echo __('Vertrag widerrufen', 'wpsg'); ?></a>
</td>
</tr>
|