1996 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Übersichtsseite der Bestellungen im Frontend
|
|
|
5 |
*/
|
|
|
6 |
|
5237 |
daniel |
7 |
//wpsg_debug($this->view['arOrder']);
|
5082 |
roger |
8 |
|
1996 |
daniel |
9 |
?>
|
|
|
10 |
|
3444 |
daniel |
11 |
<div class="wpsg_mod_kundenverwaltung_order wpsg">
|
1996 |
daniel |
12 |
|
|
|
13 |
<?php echo $this->writeFrontendMessage(); ?>
|
|
|
14 |
|
|
|
15 |
<?php if (wpsg_isSizedArray($this->view['arOrder'])) { ?>
|
|
|
16 |
<?php foreach ($this->view['arOrder'] as $order) { ?>
|
2583 |
david |
17 |
|
2989 |
daniel |
18 |
<div class="wpsg_box">
|
3444 |
daniel |
19 |
|
|
|
20 |
<h2><?php echo wpsg_translate(__('Bestellung vom #1# über #2#', 'wpsg'), date('d.m.Y', strtotime($order['cdate'])), wpsg_ff($order['price_gesamt'], $this->get_option('wpsg_currency'))); ?></h2>
|
|
|
21 |
|
2989 |
daniel |
22 |
<div class="wpsg_inner wpsg_order_<?php echo $order['id']; ?>">
|
2308 |
daniel |
23 |
<strong><?php echo __('Bestellstatus', 'wpsg'); ?>:</strong>
|
|
|
24 |
<?php echo $this->arStatus[$order['status']]; ?>
|
|
|
25 |
<?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
|
|
|
26 |
|
|
|
27 |
<?php if ($r = $this->callMod('wpsg_mod_rechnungen', 'getOrderInvoice', array($order['id']))) { ?>
|
|
|
28 |
<a href="<?php echo $this->callMod('wpsg_mod_rechnungen', 'getFrontendLink', array($r['id'])); ?>"><?php echo wpsg_translate(__('Rechnung #1#', 'wpsg'), $r['rnr']); ?></a>
|
|
|
29 |
<?php } else if ($r = $this->callMod('wpsg_mod_rechnungen', 'getOrderCredit', array($order['id']))) { ?>
|
4389 |
daniel |
30 |
<a href="<?php echo $this->callMod('wpsg_mod_rechnungen', 'getFrontendLink', array($r['id'])); ?>"><?php echo wpsg_translate(__('Rechnungskorrektur #1#', 'wpsg'), $r['gnr']); ?></a>
|
2308 |
daniel |
31 |
<?php } ?>
|
|
|
32 |
|
|
|
33 |
<?php } ?>
|
|
|
34 |
<br />
|
|
|
35 |
<strong><?php echo __('Rechnungsbetrag', 'wpsg'); ?>:</strong> <?php echo wpsg_ff($order['price_gesamt'], $this->get_option('wpsg_currency')); ?><br />
|
|
|
36 |
<strong><?php echo __('Bestellte Produkte', 'wpsg'); ?>:</strong>
|
3444 |
daniel |
37 |
|
2308 |
daniel |
38 |
<table class="wpsg_mod_kundenverwaltung_producttable">
|
|
|
39 |
<tr>
|
2497 |
daniel |
40 |
<th class="col_name"><?php echo __('Name', 'wpsg'); ?></th>
|
|
|
41 |
<th class="col_price"><?php echo __('Preis', 'wpsg'); ?></th>
|
2308 |
daniel |
42 |
</tr>
|
2583 |
david |
43 |
<?php foreach ((array)$order['arProdukte'] as $p) { ?>
|
2308 |
daniel |
44 |
<tr>
|
|
|
45 |
<td class="col_name">
|
5237 |
daniel |
46 |
<a href="<?php echo $p['url']; ?>"><?php echo $this->getProductName($this->getProduktID($p['id']), true); ?></a>
|
2308 |
daniel |
47 |
<br /><?php echo __('Artikelnummer', 'wpsg'); ?>: <?php echo $p['anr']; ?>
|
|
|
48 |
<?php if ($this->hasMod('wpsg_mod_varianten') && wpsg_isSizedString($p['mod_vp_varkey'])) { $arVarInfo = $this->callMod('wpsg_mod_varianten', 'getVariantenInfoArray', array($p['mod_vp_varkey'])); ?>
|
|
|
49 |
<br /><?php echo __('Variante', 'wpsg'); ?>: <?php echo $arVarInfo['key']; ?>
|
2343 |
daniel |
50 |
<?php } ?>
|
|
|
51 |
<?php if ($this->hasMod('wpsg_mod_downloadplus')) { ?>
|
|
|
52 |
<?php if ($this->callMod('wpsg_mod_downloadplus', 'isPDFProdukt', array($p['id'])) === true) { $arDownloads = $this->callMod('wpsg_mod_downloadplus', 'getIndivFiles', array($p['id'], $order['id'])); ?>
|
|
|
53 |
<?php foreach ((array)$arDownloads as $d) { ?>
|
|
|
54 |
<br /><?php echo wpsg_translate(__('Datei "#1#": ', 'wpsg'), ((strlen($d['file_out']) > 0)?$d['file_out']:$d['file'])); ?>
|
|
|
55 |
<?php if ($d['status'] == '0') { ?>
|
|
|
56 |
<?php echo __('Noch nicht geplant', 'wpsg'); ?>
|
|
|
57 |
<?php } else if ($d['status'] == '1') { ?>
|
|
|
58 |
<?php echo wpsg_translate(__('Geplant am #1#.', 'wpsg'), date('d.m.Y', strtotime($d['scheduled']))); ?>
|
|
|
59 |
<?php } else if ($d['status'] == '2') { ?>
|
|
|
60 |
<?php $strURL = site_url().'?wpsg_action=wpsg_mod_downloadplus_download&hash='.$d['hash'].'&indi='.$d['indiv_id']; ?>
|
|
|
61 |
<?php echo wpsg_translate(__('<a href="#1#" target="blank">Download</a>', 'wpsg'), $strURL); ?>
|
|
|
62 |
<?php } ?>
|
|
|
63 |
<?php } ?>
|
|
|
64 |
<?php } ?>
|
2583 |
david |
65 |
<?php } ?>
|
3709 |
daniel |
66 |
<br />
|
4912 |
daniel |
67 |
<?php if ($this->hasMod('wpsg_mod_productvars')) { $arPV = $this->callMod('wpsg_mod_productvars', 'getAllProductVarValues', array($order['id'], $p['product_index'])); ?>
|
3709 |
daniel |
68 |
<?php if (wpsg_isSizedArray($arPV)) { ?>
|
|
|
69 |
<?php foreach ($arPV as $pv) { ?>
|
|
|
70 |
<?php echo wpsg_hspc($pv['name']); ?>: <?php echo wpsg_hspc($pv['value']); ?>
|
2583 |
david |
71 |
<?php } ?>
|
3709 |
daniel |
72 |
<?php } ?>
|
2583 |
david |
73 |
<?php } ?>
|
2308 |
daniel |
74 |
</td>
|
|
|
75 |
<td class="col_price">
|
3654 |
daniel |
76 |
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
|
2308 |
daniel |
77 |
<?php echo wpsg_ff($p['preis_netto'], $this->get_option('wpsg_currency')); ?>
|
|
|
78 |
<?php } else { ?>
|
|
|
79 |
<?php echo wpsg_ff($p['preis'], $this->get_option('wpsg_currency')); ?>
|
|
|
80 |
<?php } ?>
|
|
|
81 |
</td>
|
|
|
82 |
</tr>
|
|
|
83 |
<?php } ?>
|
|
|
84 |
</table>
|
3444 |
daniel |
85 |
|
1996 |
daniel |
86 |
</div>
|
2989 |
daniel |
87 |
</div>
|
|
|
88 |
|
1996 |
daniel |
89 |
<?php } ?>
|
|
|
90 |
<?php } else { ?>
|
5238 |
daniel |
91 |
<p><?php echo __('Bisher keine Bestellungen durchgeführt.', 'wpsg'); ?></p>
|
1996 |
daniel |
92 |
<?php } ?>
|
|
|
93 |
|
|
|
94 |
</div>
|