7787 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Integration von AmazonPay in die Bestellverwaltung
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
$view = $this->view['wpsg_mod_amazon_v2'];
|
|
|
8 |
|
|
|
9 |
?>
|
|
|
10 |
|
|
|
11 |
<?php if (wpsg_isSizedString($view['referenceID'])) { ?>
|
|
|
12 |
<?php echo wpsg_drawForm_Input(false, __('Amazon-Referenznummer', 'wpsg'), wpsg_getStr($view['referenceID']), ['readonly' => true]); ?>
|
|
|
13 |
<?php } ?>
|
|
|
14 |
|
|
|
15 |
<?php if (wpsg_isSizedString($view['sesion_id'])) { ?>
|
|
|
16 |
<?php echo wpsg_drawForm_Input(false, __('Session ID', 'wpsg'), wpsg_getStr($view['sesion_id']), ['readonly' => true]); ?>
|
|
|
17 |
<?php } ?>
|
|
|
18 |
|
|
|
19 |
<?php if (wpsg_isSizedString($view['chargeId'])) { ?>
|
|
|
20 |
<?php echo wpsg_drawForm_Input(false, __('Charge ID', 'wpsg'), wpsg_getStr($view['chargeId']), ['readonly' => true]); ?>
|
|
|
21 |
<?php } ?>
|
|
|
22 |
|
|
|
23 |
<?php if (wpsg_isSizedString($view['refundId'])) { ?>
|
|
|
24 |
<?php echo wpsg_drawForm_Input(false, __('Refund ID', 'wpsg'), wpsg_getStr($view['refundId']), ['readonly' => true]); ?>
|
|
|
25 |
<?php } ?>
|
|
|
26 |
|
|
|
27 |
<div class="form-group form-group-text form-group-sm">
|
|
|
28 |
<label class="col-sm-6 control-label" for=""><?php echo __('Status', 'wpsg'); ?> [<a href="<?php
|
|
|
29 |
|
|
|
30 |
echo wpsg_admin_url('Order', 'view', ['action' => 'ajax', 'mod' => 'wpsg_mod_amazon_v2', 'do' => 'update', 'edit_id' => $this->view['oOrder']->getId()], ['noheader' => '1']);
|
|
|
31 |
|
|
|
32 |
?>"><?php echo __('Status Aktualisieren', 'wpsg'); ?></a>]</label>
|
|
|
33 |
<div class="col-sm-6">
|
|
|
34 |
<div class="wpsg_field_wrap">
|
|
|
35 |
<p class="form-control-static">
|
|
|
36 |
|
|
|
37 |
<?php echo wpsg_translate(__('#1#', 'wpsg'), $view['state']); ?>
|
|
|
38 |
|
|
|
39 |
</p>
|
|
|
40 |
</div>
|
|
|
41 |
</div>
|
|
|
42 |
</div>
|
|
|
43 |
|
|
|
44 |
<?php if (wpsg_isSizedString($view['chargeId']) && !wpsg_isSizedString($view['refundId'])) { ?>
|
|
|
45 |
|
|
|
46 |
<br />
|
|
|
47 |
|
|
|
48 |
<?php echo wpsg_drawForm_TextStart(); ?>
|
|
|
49 |
|
|
|
50 |
<a href="<?php echo wpsg_admin_url('Order', 'view', ['action' => 'ajax', 'mod' => 'wpsg_mod_amazon_v2', 'do' => 'refund', 'edit_id' => $this->view['oOrder']->getId()], ['noheader' => '1']); ?>" class="button">
|
|
|
51 |
<?php echo __('Zurückzahlen', 'wpsg'); ?>
|
|
|
52 |
</a>
|
|
|
53 |
|
|
|
54 |
<?php echo wpsg_drawForm_TextEnd(); ?>
|
|
|
55 |
|
|
|
56 |
<?php } else if (wpsg_isSizedString($view['refundId'])) { ?>
|
|
|
57 |
|
|
|
58 |
<div class="form-group form-group-text form-group-sm">
|
|
|
59 |
<label class="col-sm-6 control-label" for=""><?php echo __('Erstattungsstatus', 'wpsg'); ?> [<a href="<?php
|
|
|
60 |
|
|
|
61 |
echo wpsg_admin_url('Order', 'view', ['action' => 'ajax', 'mod' => 'wpsg_mod_amazon_v2', 'do' => 'updateRefund', 'edit_id' => $this->view['oOrder']->getId()], ['noheader' => '1']);
|
|
|
62 |
|
|
|
63 |
?>"><?php echo __('Status Aktualisieren', 'wpsg'); ?></a>]</label>
|
|
|
64 |
<div class="col-sm-6">
|
|
|
65 |
<div class="wpsg_field_wrap">
|
|
|
66 |
<p class="form-control-static">
|
|
|
67 |
|
|
|
68 |
<?php echo wpsg_translate(__('#1#', 'wpsg'), $view['refundState']); ?>
|
|
|
69 |
|
|
|
70 |
</p>
|
|
|
71 |
</div>
|
|
|
72 |
</div>
|
|
|
73 |
</div>
|
|
|
74 |
|
|
|
75 |
<?php } ?>
|