Blame | Last modification | View Log | RSS feed
<?php
/**
* Template für die Integration von AmazonPay in die Bestellverwaltung
*/
$view = $this->view['wpsg_mod_amazon_v2'];
?>
<?php if (wpsg_isSizedString($view['referenceID'])) { ?>
<?php echo wpsg_drawForm_Input(false, __('Amazon-Referenznummer', 'wpsg'), wpsg_getStr($view['referenceID']), ['readonly' => true]); ?>
<?php } ?>
<?php if (wpsg_isSizedString($view['sesion_id'])) { ?>
<?php echo wpsg_drawForm_Input(false, __('Session ID', 'wpsg'), wpsg_getStr($view['sesion_id']), ['readonly' => true]); ?>
<?php } ?>
<?php if (wpsg_isSizedString($view['chargeId'])) { ?>
<?php echo wpsg_drawForm_Input(false, __('Charge ID', 'wpsg'), wpsg_getStr($view['chargeId']), ['readonly' => true]); ?>
<?php } ?>
<?php if (wpsg_isSizedString($view['refundId'])) { ?>
<?php echo wpsg_drawForm_Input(false, __('Refund ID', 'wpsg'), wpsg_getStr($view['refundId']), ['readonly' => true]); ?>
<?php } ?>
<div class="form-group form-group-text form-group-sm">
<label class="col-sm-6 control-label" for=""><?php echo __('Status', 'wpsg'); ?> [<a href="<?php
echo wpsg_admin_url('Order', 'view', ['action' => 'ajax', 'mod' => 'wpsg_mod_amazon_v2', 'do' => 'update', 'edit_id' => $this->view['oOrder']->getId()], ['noheader' => '1']);
?>"><?php echo __('Status Aktualisieren', 'wpsg'); ?></a>]</label>
<div class="col-sm-6">
<div class="wpsg_field_wrap">
<p class="form-control-static">
<?php echo wpsg_translate(__('#1#', 'wpsg'), $view['state']); ?>
</p>
</div>
</div>
</div>
<?php if (wpsg_isSizedString($view['chargeId']) && !wpsg_isSizedString($view['refundId'])) { ?>
<br />
<?php echo wpsg_drawForm_TextStart(); ?>
<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">
<?php echo __('Zurückzahlen', 'wpsg'); ?>
</a>
<?php echo wpsg_drawForm_TextEnd(); ?>
<?php } else if (wpsg_isSizedString($view['refundId'])) { ?>
<div class="form-group form-group-text form-group-sm">
<label class="col-sm-6 control-label" for=""><?php echo __('Erstattungsstatus', 'wpsg'); ?> [<a href="<?php
echo wpsg_admin_url('Order', 'view', ['action' => 'ajax', 'mod' => 'wpsg_mod_amazon_v2', 'do' => 'updateRefund', 'edit_id' => $this->view['oOrder']->getId()], ['noheader' => '1']);
?>"><?php echo __('Status Aktualisieren', 'wpsg'); ?></a>]</label>
<div class="col-sm-6">
<div class="wpsg_field_wrap">
<p class="form-control-static">
<?php echo wpsg_translate(__('#1#', 'wpsg'), $view['refundState']); ?>
</p>
</div>
</div>
</div>
<?php } ?>