Subversion Repositories wpShopGermany4

Rev

Rev 7179 | Rev 7198 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7179 Rev 7197
Line 2... Line 2...
2
 
2
 
3
    /**
3
    /**
4
     * Template für die Produkttabelle im Backend der Bestellverwaltung
4
     * Template für die Produkttabelle im Backend der Bestellverwaltung
5
     */
5
     */
6
    
6
    
7
    $arCalculation = $this->view['oCalculation']->getCalculationArray($this->getBackendTaxView()); 
7
    $arCalculation = $this->view['oCalculation']->getCalculationArray(true);
8
    $arTax = $this->view['oCalculation']->getTaxLabelArray();
8
	$arTax = $this->view['oCalculation']->getTaxLabelArray();
9
    $arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
9
	$arTaxShort = $this->view['oCalculation']->getTaxLabelArray(true);
10
 
10
	     
11
    $this->view['colspan'] = 3;
11
    $this->view['colspan'] = 3;
12
    if ($this->get_option('wpsg_showMwstAlways') == '1' || sizeof($arCalculation['tax']) > 1) $this->view['colspan'] ++;
12
    if ($this->get_option('wpsg_showMwstAlways') == '1' || sizeof($arCalculation['tax']) > 1) $this->view['colspan'] ++;
13
    
13
    
14
    $this->view['arCalculation'] = $arCalculation;
14
    $this->view['arCalculation'] = $arCalculation;
15
    
15
    
-
 
16
    if ($this->getBackendTaxView() === WPSG_NETTO) $display = 'netto';
-
 
17
    else $display = 'brutto';
-
 
18
    
16
?>
19
?>
17
 
20
 
18
<style>
21
<style>
19
 
22
 
20
    .wpsg_row_small td { font-size:0.8em; }
23
	.wpsg_row_small td { font-size:0.8em; }
21
	#wpsg-bs .wpsg_row_small  .wpsg-glyphlink-td > span { margin-top:0px; }
24
	#wpsg-bs .wpsg_row_small  .wpsg-glyphlink-td > span { margin-top:0px; }
22
    
25
 
23
</style>
26
</style>
24
 
27
 
-
 
28
 
25
<table class="wpsg_produkte table">
29
<table class="wpsg_produkte table">
-
 
30
	<thead>
26
    <tr class="wpsg_kopf">
31
		<tr class="wpsg_kopf">
27
        <th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
32
			<th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
28
        <th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
33
			<th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
29
        <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
34
			<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
30
            <th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
35
				<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
31
        <?php } ?>
36
			<?php } ?>
32
        <th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
37
			<th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
33
        <th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
38
			<th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
34
    </tr>
39
		</tr>
-
 
40
	</thead>
-
 
41
	<tbody>
-
 
42
 
35
    <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
43
		<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
36
    <?php $i = 0; foreach ($arCalculation['products'] as $p) { $i ++; $product_price = $p['price']; ?>        
44
		<?php $i = 0; foreach ($arCalculation['product'] as $p) { $i ++; $product_price = $p[$display]; ?>
37
        <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
45
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
38
            <td class="wpsg_cell_name">
46
				<td class="wpsg_cell_name">
39
                <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $p['product_id']; ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
47
					<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $p['product_id']; ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
40
                    <?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
48
						<?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
41
                </a>
49
					</a>
42
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Product.editProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
50
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Product.editProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
43
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.remvoeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
51
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.remvoeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
44
            </td>
52
				</td>
45
            <td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
53
				<td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
46
            <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
54
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
47
                <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$p['tax_key']]; ?></td>
55
					<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$p['tax_key']]; ?></td>
48
            <?php } ?>
56
				<?php } ?>
49
            <td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
57
				<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
50
            <td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
58
				<td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
51
        </tr>
59
			</tr>
52
        <?php /* if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
-
 
53
            <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
-
 
54
                <td class="wpsg_cell_name">
-
 
55
                    <?php echo __('Mögliche Versandarten', 'wpsg'); ?>:
-
 
56
                </td>
-
 
57
                <td class="wpsg_cell_gesamtpreis" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
-
 
58
                    <?php $j = 0; foreach ($p['order_allowedshipping'] as $shipping) { $j ++; ?>
-
 
59
                        <?php echo $this->getShippingName($shipping); ?><?php if ($j < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
-
 
60
                    <?php } ?>
-
 
61
                </td>
-
 
62
            </tr>
-
 
63
        <?php } */ ?>
-
 
64
        <?php $this->callMods('order_view_row', array(&$p, $i)); ?>
60
			<?php $this->callMods('order_view_row', array(&$p, $i)); ?>
65
        <tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
61
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
66
    <?php } ?>
62
		<?php } ?>
67
	
63
		
68
	<?php /* Gutscheine */ ?>
64
		<?php // Gutscheine  ?>
69
	<?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
65
		<?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
-
 
66
			
-
 
67
			<?php foreach ($arCalculation['voucher'] as $v) { ?>
-
 
68
 
-
 
69
				<tr class="wpsg_row_discount wpsg_row_small">
-
 
70
					<td colspan="" class="wpsg_cell_mwst_label">
70
 
71
 
-
 
72
						<div>
71
		<?php foreach ($arCalculation['voucher'] as $v) { ?>
73
							<?php echo __('Gutschein', 'wpsg'); ?>
-
 
74
							
-
 
75
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
-
 
76
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
-
 
77
							<?php } else { ?>
-
 
78
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
-
 
79
							<?php } ?>
72
 
80
 
-
 
81
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher();"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
82
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher();"><span class="glyphicon glyphicon-trash"></span></a>
-
 
83
						</div>
-
 
84
						<div>
-
 
85
							Code: <?php echo $v['code']; ?>
-
 
86
						</div>
-
 
87
 
-
 
88
					</td>
-
 
89
					<td class="wpsg_cell_preis">
-
 
90
						
-
 
91
						<?php if (strpos($v['set'], '%') === false) { ?>
-
 
92
							<?php echo wpsg_ff($arCalculation['sum']['voucher_'.$display], $this->get_option('wpsg_currency')); ?>
-
 
93
						<?php } else { ?>
-
 
94
							<?php echo wpsg_ff($v['set'], '%'); ?>
-
 
95
						<?php } ?>
-
 
96
						
-
 
97
					</td>
-
 
98
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
-
 
99
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
-
 
100
					<?php } ?>
-
 
101
					<td>1</td>
73
			<tr class="wpsg_row_discount wpsg_row_small">
102
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
103
						<?php echo wpsg_ff($arCalculation['sum']['voucher_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
104
					</td>
-
 
105
				</tr>
-
 
106
			
-
 
107
			<?php } ?>
-
 
108
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
-
 
109
		
-
 
110
		<?php } ?>
-
 
111
 
-
 
112
		<tr class="wpsg_row_summe">
74
				<td colspan="" class="wpsg_cell_mwst_label">
113
			<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
-
 
114
				
-
 
115
				<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
75
					
116
					
-
 
117
					<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
 
118
				
-
 
119
				<?php } else { ?>
-
 
120
					
-
 
121
					<?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
-
 
122
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
 
123
					<?php } else { ?>
-
 
124
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
 
125
					<?php } ?>
-
 
126
				
-
 
127
				<?php } ?>
-
 
128
 
-
 
129
			</td>
-
 
130
			<td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
-
 
131
				
-
 
132
				<?php echo wpsg_ff($arCalculation['sum']['productsum_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
133
 
-
 
134
			</td>
-
 
135
		</tr>
-
 
136
		
-
 
137
		<?php // Versandkosten  ?>
-
 
138
		<?php $price_shipping = $arCalculation['sum']['shipping_'.$display]; ?>
-
 
139
		<?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
-
 
140
			<tr class="wpsg_row_shipping">
-
 
141
				<td class="wpsg_cell_shipping_label" colspan="2">
-
 
142
					<?php echo __('Versandkosten', 'wpsg'); ?>
-
 
143
					<?php echo __('  ('.$this->arShipping[$arCalculation['shipping'][0]['shipping_key']]['name'].')', 'wpsg'); ?>
-
 
144
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Versandart ändern', 'wpsg'); ?>"  onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
145
				</td>
-
 
146
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
-
 
147
				<td><?php echo $arTaxShort[$arCalculation['shipping'][0]['tax_key']]; ?></td>
-
 
148
				<?php } ?>
-
 
149
				<td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis" colspan="2">
-
 
150
					<span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
-
 
151
					<?php echo $this->get_option('wpsg_currency'); ?>
-
 
152
				</td>
-
 
153
			</tr>
-
 
154
		<?php } ?>
-
 
155
		
-
 
156
		<?php // Zahlungskosten  ?>
-
 
157
		<?php $price_payment = $arCalculation['sum']['payment_'.$display]; ?>
-
 
158
		<?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
-
 
159
			<tr class="wpsg_row_payment">
-
 
160
				<td colspan="2" class="wpsg_cell_payment_label">
-
 
161
					<?php echo __('Zahlungsart', 'wpsg'); ?>
-
 
162
					<?php echo __('  ('.$this->arPayment[$arCalculation['payment'][0]['payment_key']]['name'].')', 'wpsg'); ?>
-
 
163
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Zahlungsart ändern', 'wpsg'); ?>" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
164
				</td>
-
 
165
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
-
 
166
					<td><?php echo $arTaxShort[$arCalculation['payment'][0]['tax_key']]; ?></td>
-
 
167
				<?php } ?>
-
 
168
				<td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" colspan="2">
-
 
169
					<span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
-
 
170
					<?php echo $this->get_option('wpsg_currency'); ?>
76
					<div>
171
				</td>
-
 
172
			</tr>
-
 
173
		<?php } ?>
-
 
174
		
-
 
175
		<?php // Rabatte  ?>
-
 
176
		<?php if (wpsg_isSizedArray($arCalculation['discount'])) { ?>			
-
 
177
			<?php foreach ($arCalculation['discount'] as $d) { ?>
-
 
178
				<tr class="wpsg_row_discount wpsg_row_small">
-
 
179
					<td colspan="" class="wpsg_cell_mwst_label">
-
 
180
						
77
						<?php echo __('Gutschein', 'wpsg'); ?>
181
						<?php echo __('Rabatt', 'wpsg'); ?>
78
						
182
						
79
						<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
183
						<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
80
							<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
184
							<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
81
						<?php } else { ?>
185
						<?php } else { ?>
82
							<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
186
							<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
83
						<?php } ?>
187
						<?php } ?>
84
	
-
 
85
						<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher();"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
86
						<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher();"><span class="glyphicon glyphicon-trash"></span></a>
-
 
87
					</div>
-
 
88
					<div>
-
 
89
						Code: <?php echo $v['code']; ?>
-
 
90
					</div>
-
 
91
 
188
 
-
 
189
						<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.editDiscount();"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
190
						<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.removeDiscount();"><span class="glyphicon glyphicon-trash"></span></a>
-
 
191
 
-
 
192
					</td>
-
 
193
					<td class="wpsg_cell_preis">
-
 
194
						
-
 
195
						<?php if (strpos($v['set'], '%') === false) { ?>
-
 
196
							<?php echo wpsg_ff($arCalculation['sum']['voucher_'.$display], $this->get_option('wpsg_currency')); ?>
-
 
197
						<?php } else { ?>
-
 
198
							<?php echo wpsg_ff($v['set'], '%'); ?>
-
 
199
						<?php } ?>
-
 
200
						
-
 
201
					</td>
-
 
202
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
-
 
203
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
-
 
204
					<?php } ?>
-
 
205
					<td></td>
-
 
206
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
207
						<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
208
					</td>
-
 
209
				</tr>
-
 
210
			<?php } ?>
-
 
211
		<?php } ?>
-
 
212
		
-
 
213
		<?php if ($this->getBackendTaxView() === WPSG_NETTO) { ?>
-
 
214
			
-
 
215
			<tr class="wpsg_row_gesamt">
-
 
216
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
-
 
217
					<?php echo __('Summe', 'wpsg'); ?>
-
 
218
					<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
92
				</td>
219
				</td>
93
				<td class="wpsg_cell_preis">
220
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
94
					<?php echo wpsg_ff($v['set'], $this->get_option('wpsg_currency'), true); ?>
221
					<?php echo wpsg_ff($arCalculation['sum'][$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
95
				</td>
222
				</td>
-
 
223
			</tr>
96
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
224
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
-
 
225
				<tr class="wpsg_row_mwst wpsg_row_small">
-
 
226
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
-
 
227
						<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
-
 
228
					</td>
97
					<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
229
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
230
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
231
					</td>
-
 
232
				</tr>
98
				<?php } ?>				
233
			<?php } } ?>
-
 
234
			<tr class="wpsg_row_gesamt">
-
 
235
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
-
 
236
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
-
 
237
					<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
99
				<td>1</td>
238
				</td>
100
				<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
239
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
101
					<?php echo wpsg_ff($arCalculation['sum']['voucher_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
240
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
102
				</td>
241
				</td>
103
			</tr>
242
			</tr>
104
			
243
			
105
		<?php } ?>		
244
		<?php } else { ?>
106
		<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
-
 
107
		
-
 
108
	<?php } ?>
-
 
109
	
-
 
110
    <tr class="wpsg_row_summe">
-
 
111
        <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
-
 
112
            
-
 
113
            <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
-
 
114
                
-
 
115
                <?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
 
116
           
-
 
117
            <?php } else { ?>
-
 
118
                
-
 
119
                <?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
-
 
120
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
 
121
                <?php } else { ?>
-
 
122
                    <?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
-
 
123
                <?php } ?>
-
 
124
                
-
 
125
            <?php } ?>
-
 
126
            
-
 
127
        </td>
-
 
128
        <td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
-
 
129
            
-
 
130
            <?php echo wpsg_ff($arCalculation['sum']['product']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
131
            
-
 
132
        </td>
-
 
133
    </tr>
-
 
134
    
-
 
135
    <?php /* Versandkosten */ ?>
-
 
136
    <?php $price_shipping = $arCalculation['shipping']['price']; ?>
-
 
137
    <?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
-
 
138
        <tr class="wpsg_row_shipping">
-
 
139
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_shipping_label">
-
 
140
                <?php echo __('Versandkosten', 'wpsg'); ?> 
-
 
141
                <?php echo __('  ('.$this->arShipping[$arCalculation['shipping']['key']]['name'].')', 'wpsg'); ?>
-
 
142
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Versandart ändern', 'wpsg'); ?>"  onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
143
            </td>
-
 
144
            <td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis">
-
 
145
                <span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
-
 
146
                <?php echo $this->get_option('wpsg_currency'); ?>
-
 
147
            </td>
-
 
148
        </tr>
-
 
149
    <?php } ?>
-
 
150
 
-
 
151
    <?php /* Zahlungskosten */ ?>
-
 
152
    <?php $price_payment = $arCalculation['payment']['price']; ?>
-
 
153
    <?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
-
 
154
        <tr class="wpsg_row_payment">
-
 
155
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_payment_label">
-
 
156
                <?php echo __('Zahlungsart', 'wpsg'); ?>
-
 
157
                <?php echo __('  ('.$this->arPayment[$arCalculation['payment']['key']]['name'].')', 'wpsg'); ?>
-
 
158
                <a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Zahlungsart ändern', 'wpsg'); ?>" onclick="return WPSG_BE_Pay_Ship.changeShippingPayment();"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
159
            </td>
-
 
160
            <td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" >
-
 
161
                <span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
-
 
162
                <?php echo $this->get_option('wpsg_currency'); ?>
-
 
163
            </td>
-
 
164
        </tr>
-
 
165
    <?php } ?>
-
 
166
    
-
 
167
    <?php if ($this->getBackendTaxView() === WPSG_NETTO && $this->get_option('wpsg_kleinunternehmer') != '1') { ?>
-
 
168
        <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum_tax'] > 0) { ?>
-
 
169
            <tr class="wpsg_row_mwst">
-
 
170
                <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
-
 
171
                    <?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
-
 
172
                </td>
-
 
173
                <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
174
                    <?php echo wpsg_ff($tax['sum_tax']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
175
                </td>
-
 
176
            </tr>
-
 
177
        <?php } } ?>
-
 
178
    <?php } ?>
-
 
179
    
-
 
180
    <?php /* Rabatte */ ?>
-
 
181
    <?php if ($arCalculation['sum']['prediscount_netto'] !== $arCalculation['sum']['netto']) { ?>
-
 
182
        <tr class="wpsg_row_discount">
-
 
183
            <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
-
 
184
                <?php echo __('Gesamtpreis', 'wpsg'); ?>
-
 
185
                <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
-
 
186
                    <?php echo __('(abzgl. Rabatt, inkl. MwSt.)', 'wpsg'); ?>
-
 
187
                <?php } else { ?>
-
 
188
                    <?php echo __('(abzgl. Rabatt, zzgl. MwSt.)', 'wpsg'); ?>
-
 
189
                <?php } ?>
-
 
190
            </td>
-
 
191
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
192
                <?php echo wpsg_ff($arCalculation['sum']['prediscount_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>     
-
 
193
            </td>
-
 
194
        </tr>
-
 
195
        <?php foreach ($arCalculation['discount'] as $d) { ?>
-
 
196
        <tr class="wpsg_row_discount wpsg_row_small">
-
 
197
            <td colspan="" class="wpsg_cell_mwst_label">
-
 
198
               <?php echo __('Rabatt', 'wpsg'); ?>
-
 
199
               <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
-
 
200
               	<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
-
 
201
               <?php } else { ?>
-
 
202
                  <?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
-
 
203
					<?php } ?>
-
 
204
 
245
 
205
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.editDiscount();"><span class="glyphicon glyphicon-pencil"></span></a>
-
 
206
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Rabatt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Discount.removeDiscount();"><span class="glyphicon glyphicon-trash"></span></a>
-
 
207
					
-
 
208
            </td>
-
 
209
            <td class="wpsg_cell_preis">
-
 
210
                <?php echo wpsg_ff($d['set'], $this->get_option('wpsg_currency'), true); ?>
-
 
211
            </td>
-
 
212
            <?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
-
 
213
                <td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
-
 
214
            <?php } ?>
-
 
215
            <td></td>
-
 
216
            <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
217
                <?php echo wpsg_ff($arCalculation['sum']['discount_display']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
218
            </td>
-
 
219
        </tr>
-
 
220
        <?php } ?>
-
 
221
    <?php } ?>
-
 
222
    
-
 
223
    <tr class="wpsg_row_gesamt">
-
 
224
        <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_gesamt_label">
-
 
225
            <strong><?php echo __('Gesamtpreis', 'wpsg'); ?></strong> 
-
 
226
            <?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
-
 
227
                <?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
-
 
228
            <?php } else { ?>
-
 
229
                <?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
-
 
230
            <?php } ?>
-
 
231
        </td>
-
 
232
        <td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
-
 
233
            <strong><?php echo wpsg_ff($arCalculation['sum']['display']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
-
 
234
        </td>
-
 
235
    </tr>
-
 
236
    
-
 
237
    <?php if ($this->get_option('wpsg_kleinunternehmer') == '1' || $this->getBackendTaxView() != WPSG_NETTO) { ?>
-
 
238
        <?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum_tax'] > 0 && $tax['key'] != '0') { ?>
-
 
239
            <tr class="wpsg_row_mwst wpsg_row_small">
-
 
240
                <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
-
 
241
                    <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
-
 
242
                        <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
-
 
243
                    <?php } else { ?>
-
 
244
                        <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
-
 
245
                    <?php } ?>
-
 
246
                </td>
-
 
247
                <td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
248
                    <?php echo wpsg_ff($tax['sum_tax']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
249
                </td>
-
 
250
            </tr>
-
 
251
        <?php } } ?>
-
 
252
    <?php } ?>
-
 
253
</table>
-
 
254
246
			<tr class="wpsg_row_gesamt">
-
 
247
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
-
 
248
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
-
 
249
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
-
 
250
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
-
 
251
					<?php } else { ?>
-
 
252
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
-
 
253
					<?php } ?>
-
 
254
				</td>
-
 
255
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
-
 
256
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
-
 
257
				</td>
-
 
258
			</tr>			
-
 
259
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
-
 
260
				<tr class="wpsg_row_mwst wpsg_row_small">
-
 
261
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
-
 
262
						<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
-
 
263
							<?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
-
 
264
						<?php } else { ?>
-
 
265
							<?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
-
 
266
						<?php } ?>
-
 
267
					</td>
-
 
268
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
-
 
269
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
-
 
270
					</td>
-
 
271
				</tr>
-
 
272
			<?php } } ?>
-
 
273
			
-
 
274
		<?php } ?>
-
 
275
	
-
 
276
	</tbody>
-
 
277
</table>
-
 
278
	
-
 
279
<?php wpsg_debug($arCalculation); ?>
-
 
280
255
281