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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
<?php
/**
* User: Daschmi (daschmi@dsachmi.de)
* Date: 06.08.2016
* Time: 13:45
*/
?>
<?php echo wpsg_drawForm_AdminboxStart(__('Bestelldaten', 'wpsg')); ?>
<table class="wpsg_produkte table">
<tr class="wpsg_kopf">
<th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
<th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
<?php } ?>
<th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
<th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
</tr>
<?php $i = 0; foreach ($this->view['basket']['produkte'] as $produkt_key => $p) { $i ++; ?>
<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
<td class="wpsg_cell_name">
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $this->getProduktID($p['id']); ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
<?php echo wpsg_hspc($this->getProductName($this->getProduktID($p['id']))); ?>
</a>
</td>
<td class="wpsg_cell_preis"><?php echo wpsg_ff($p['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
<td class="wpsg_cell_mwst"><?php echo wpsg_ff($p['mwst_value']); ?> %</td>
<?php } ?>
<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['menge']); ?></td>
<td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['menge'] * $p['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
</tr>
<?php if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
<td class="wpsg_cell_name">
<?php echo __('Mögliche Versandarten', 'wpsg'); ?>:
</td>
<td class="wpsg_cell_gesamtpreis" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
<?php $j = 0; foreach ($p['order_allowedshipping'] as $shipping) { $j ++; ?>
<?php echo $this->getShippingName($shipping); ?><?php if ($j < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php $this->callMods('order_view_row', array(&$p, $i)); ?>
<?php } ?>
<?php if (isset($this->view['basket']['gs'])) { ?>
<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_gutschein">
<td class="wpsg_cell_name"><?php echo __('Gutschein', 'wpsg'); ?> <?php echo ($this->view['basket']['gs']['code'] != '')? '('.$this->view['basket']['gs']['code'].')':'' ?></td>
<td class="wpsg_cell_preis"><?php echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); ?></td>
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
<td class="wpsg_cell_mwst"><?php echo __('anteilig', 'wpsg'); ?></td>
<?php } ?>
<td class="wpsg_cell_menge">1</td>
<td class="wpsg_cell_gesamtpreis"><?php echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); ?></td>
</tr>
<?php } ?>
<?php if (isset($this->view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) { ?>
<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_row_rabatt">
<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_rabatt_label">
<?php echo __('Abzüglich Rabatt', 'wpsg'); ?>
</td>
<td class="wpsg_cell_rabatt_value wpsg_cell_gesamtpreis">
<?php echo '-'.wpsg_ff($this->view['basket']['sum']['preis_rabatt'], $this->get_option('wpsg_currency')); ?>
</td>
</tr>
<?php } ?>
<tr class="wpsg_row_summe">
<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
<?php } else { ?>
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
<?php } else { ?>
<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
<?php } ?>
<?php } ?>
</td>
<td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
<?php echo wpsg_ff($this->view['basket']['sum']['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
</td>
</tr>
<?php if ($this->view['basket']['sum']['preis_shipping'] != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
<tr class="wpsg_row_shipping">
<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_shipping_label">
<a href="<?php echo $this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN); ?>" target="_blank"><?php echo __('Versandkosten', 'wpsg'); ?></a>
</td>
<td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis">
<?php echo wpsg_ff($this->view['basket']['sum']['preis_shipping']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
</td>
</tr>
<?php } ?>
<?php if ($this->view['basket']['sum']['preis_payment'] != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
<tr class="wpsg_row_payment">
<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_payment_label">
<?php echo __('Zahlungsart', 'wpsg'); ?>
</td>
<td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis">
<?php echo wpsg_ff($this->view['basket']['sum']['preis_payment']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
</td>
</tr>
<?php } ?>
<?php if ($this->get_option('wpsg_preisangaben') == '1' && $this->get_option('wpsg_kleinunternehmer') != '1') { ?>
<?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
<tr class="wpsg_row_mwst">
<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
</td>
<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
<?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
</td>
</tr>
<?php } ?>
<?php } ?>
<tr class="wpsg_row_gesamt">
<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_gesamt_label">
<?php echo __('Gesamtpreis', 'wpsg'); ?>
</td>
<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
<strong><?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
</td>
</tr>
<?php if ($this->get_option('wpsg_kleinunternehmer') == '1' || $this->get_option('wpsg_preisangaben') != '1') { ?>
<?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
<tr class="wpsg_row_mwst">
<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
<?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
<?php } else { ?>
<?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
<?php } ?>
</td>
<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
<?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
</td>
</tr>
<?php } ?>
<?php } ?>
</table>
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|