Subversion Repositories wpShopGermany4

Rev

Rev 7590 | Rev 8013 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7590 Rev 7704
1
<?php
1
<?php
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(true);
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';
16
    if ($this->getBackendTaxView() === WPSG_NETTO) $display = 'netto';
17
    else $display = 'brutto';
17
    else $display = 'brutto';
18
 
18
 
19
?>
19
?>
20
 
20
 
21
<style>
21
<style>
22
 
22
 
23
	.wpsg_row_small td { font-size:0.8em; }
23
	.wpsg_row_small td { font-size:0.8em; }
24
	#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; }
25
	/*.wpsg_productrow_add td { border-top:0px !important; }*/
25
	/*.wpsg_productrow_add td { border-top:0px !important; }*/
26
 
26
 
27
</style>
27
</style>
28
 
28
 
29
<?php echo wpsg_drawForm_Select('tax_mode', __('Besteuerung'), [
29
<?php echo wpsg_drawForm_Select('tax_mode', __('Besteuerung'), [
30
		\wpsg\wpsg_calculation::TAXMODE_SMALLBUSINESS => __('Kleinunternehmerregelung'),
30
		\wpsg\wpsg_calculation::TAXMODE_SMALLBUSINESS => __('Kleinunternehmerregelung'),
31
		\wpsg\wpsg_calculation::TAXMODE_B2C => __('Endkundenbesteuerung'),
31
		\wpsg\wpsg_calculation::TAXMODE_B2C => __('Endkundenbesteuerung'),
32
		\wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung (USTIdNr)')
32
		\wpsg\wpsg_calculation::TAXMODE_B2B => __('Firmenkundenbesteuerung (USTIdNr)')
33
	], $this->view['oCalculation']->getTaxMode(), ['onchange' => 'WPSG_BE.updateCalculation();', 'help' => 'tax_mode']); ?>
33
	], $this->view['oCalculation']->getTaxMode(), ['onchange' => 'WPSG_BE.updateCalculation();', 'help' => 'tax_mode']); ?>
34
 
34
 
35
<br />
35
<br />
36
 
36
 
37
<table class="wpsg_produkte table">
37
<table class="wpsg_produkte table">
38
	<thead>
38
	<thead>
39
		<tr class="wpsg_kopf">
39
		<tr class="wpsg_kopf">
40
			<th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
40
			<th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
41
			<th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
41
			<th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
42
			<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
42
			<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
43
				<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
43
				<th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
44
			<?php } ?>
44
			<?php } ?>
45
			<th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
45
			<th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
46
			<th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
46
			<th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
47
		</tr>
47
		</tr>
48
	</thead>
48
	</thead>
49
	<tbody>
49
	<tbody>
50
 
50
 
51
		<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
51
		<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
52
		<?php $i = 0; foreach ($arCalculation['product'] as $p) { $i ++; $product_price = $p[$display.'_single']; ?>
52
		<?php $i = 0; foreach ($arCalculation['product'] as $p) { $i ++; $product_price = $p[$display.'_single']; ?>
53
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
53
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
54
				<td colspan="<?php echo $this->view['colspan'] + 1; ?>">
54
				<td colspan="<?php echo $this->view['colspan'] + 1; ?>">
55
					
55
					
56
					<?php if (wpsg_isTrue($p['eu'])) { ?>
56
					<?php if (wpsg_isTrue($p['eu'])) { ?>
57
						<img src="<?php echo WPSG_URL; ?>views/gfx/eu.png" alt="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" title="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" height="14" />
57
						<img src="<?php echo WPSG_URL; ?>views/gfx/eu.png" alt="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" title="<?php echo __('Produkt unterliegt der EU-Leistungsortregel', 'wpsg'); ?>" height="14" />
58
					<?php } ?>
58
					<?php } ?>
59
					
59
					
60
					<a href="<?php 
60
					<a href="<?php 
61
						
61
						
62
						echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$p['product_id'], 'wpsg-product-edit-'.wpsg_getInt($p['product_id']));						
62
						echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$p['product_id'], 'wpsg-product-edit-'.wpsg_getInt($p['product_id']));						
63
						                
63
						                
64
					?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
64
					?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
65
						<?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
65
						<?php echo wpsg_hspc($this->getProductName($p['product_id'])); ?>
66
					</a>
66
					</a>
67
					<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>
67
					<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>
68
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.removeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
68
					<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Produkt löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Product.removeProduct(<?php echo $p['order_product_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
69
				</td>
69
				</td>
70
			</tr>
70
			</tr>
-
 
71
            <?php $this->callMods('order_view_row_before', array(&$p, $i)); ?>
71
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_productrow_add">
72
			<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_productrow_add">
72
				<td class="wpsg_cell_name"></td>
73
				<td class="wpsg_cell_name"></td>
73
				<td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
74
				<td class="wpsg_cell_preis"><?php echo wpsg_ff($product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
74
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>					
75
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>					
75
					<td class="wpsg_cell_mwst"><?php 
76
					<td class="wpsg_cell_mwst"><?php 
76
							
77
							
77
						echo (($p['brutto'] === $p['netto'])?wpsg_ff(0, '%'):$arTaxShort[$p['tax_key']]);
78
						echo (($p['brutto'] === $p['netto'])?wpsg_ff(0, '%'):$arTaxShort[$p['tax_key']]);
78
							
79
							
79
					?></td>					
80
					?></td>					
80
				<?php } ?>
81
				<?php } ?>
81
				<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
82
				<td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['amount']); ?></td>
82
				<td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
83
				<td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['amount'] * $product_price); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
83
			</tr>
84
			</tr>
84
			<?php $this->callMods('order_view_row', array(&$p, $i)); ?>
85
			<?php $this->callMods('order_view_row', array(&$p, $i)); ?>
85
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
86
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
86
		<?php } ?>
87
		<?php } ?>
87
		
88
		
88
		<?php // Gutscheine  ?>
89
		<?php // Gutscheine  ?>
89
		<?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
90
		<?php if (wpsg_isSizedArray($arCalculation['voucher'])) { ?>
90
			
91
			
91
			<?php foreach ($arCalculation['voucher'] as $v) { ?>
92
			<?php foreach ($arCalculation['voucher'] as $v) { ?>
92
 
93
 
93
				<tr class="wpsg_row_discount wpsg_row_small">
94
				<tr class="wpsg_row_discount wpsg_row_small">
94
					<td colspan="" class="wpsg_cell_mwst_label">
95
					<td colspan="" class="wpsg_cell_mwst_label">
95
 
96
 
96
						<div>
97
						<div>
97
							<?php echo __('Gutschein', 'wpsg'); ?>
98
							<?php echo __('Gutschein', 'wpsg'); ?>
98
							
99
							
99
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
100
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
100
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
101
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
101
							<?php } else { ?>
102
							<?php } else { ?>
102
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
103
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
103
							<?php } ?>
104
							<?php } ?>
104
 
105
 
105
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher(<?php echo $v['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
106
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher(<?php echo $v['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
106
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher(<?php echo $v['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
107
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Gutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher(<?php echo $v['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
107
						</div>
108
						</div>
108
						<div>
109
						<div>
109
							Code: <?php echo $v['code']; ?>
110
							Code: <?php echo $v['code']; ?>
110
						</div>
111
						</div>
111
 
112
 
112
					</td>
113
					</td>
113
					<td class="wpsg_cell_preis">
114
					<td class="wpsg_cell_preis">
114
						
115
						
115
						<?php if (strpos($v['set'], '%') === false) { ?>
116
						<?php if (strpos($v['set'], '%') === false) { ?>
116
							<?php echo wpsg_ff($v[$display], $this->get_option('wpsg_currency')); ?>
117
							<?php echo wpsg_ff($v[$display], $this->get_option('wpsg_currency')); ?>
117
						<?php } else { ?>
118
						<?php } else { ?>
118
							<?php echo wpsg_ff($v['set'], '%'); ?>
119
							<?php echo wpsg_ff($v['set'], '%'); ?>
119
						<?php } ?>
120
						<?php } ?>
120
						
121
						
121
					</td>
122
					</td>
122
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
123
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
123
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
124
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$v['tax_key']]; ?></td>
124
					<?php } ?>
125
					<?php } ?>
125
					<td>1</td>
126
					<td>1</td>
126
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php 
127
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php 
127
							
128
							
128
						echo wpsg_ff($v[$display]); ?> <?php echo $this->get_option('wpsg_currency');
129
						echo wpsg_ff($v[$display]); ?> <?php echo $this->get_option('wpsg_currency');
129
						
130
						
130
						if (strpos($v['set'], '%') !== false) { 
131
						if (strpos($v['set'], '%') !== false) { 
131
 
132
 
132
							echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($v['set']), '%').')</span>';
133
							echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($v['set']), '%').')</span>';
133
 
134
 
134
						} 
135
						} 
135
							
136
							
136
					?></td>
137
					?></td>
137
				</tr>
138
				</tr>
138
			
139
			
139
			<?php } ?>
140
			<?php } ?>
140
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
141
			<tr><td colspan="<?php echo $this->view['colspan'] + 1; ?>" style="line-height:2px; height:2px; background-color:#999999; padding:0px;"></td></tr>
141
		
142
		
142
		<?php } ?>
143
		<?php } ?>
143
 
144
 
144
		<tr class="wpsg_row_summe">
145
		<tr class="wpsg_row_summe">
145
			<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
146
			<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
146
				
147
				
147
				<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
148
				<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
148
					
149
					
149
					<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
150
					<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
150
				
151
				
151
				<?php } else { ?>
152
				<?php } else { ?>
152
					
153
					
153
					<?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
154
					<?php if ($this->get_option('wpsg_preisangaben') == WPSG_NETTO) { ?>
154
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
155
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
155
					<?php } else { ?>
156
					<?php } else { ?>
156
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
157
						<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
157
					<?php } ?>
158
					<?php } ?>
158
				
159
				
159
				<?php } ?>
160
				<?php } ?>
160
 
161
 
161
			</td>
162
			</td>
162
			<td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
163
			<td class="wpsg_cell_summe_value wpsg_cell_gesamtpreis">
163
				
164
				
164
				<?php echo wpsg_ff($arCalculation['sum']['productsum_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
165
				<?php echo wpsg_ff($arCalculation['sum']['productsum_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
165
 
166
 
166
			</td>
167
			</td>
167
		</tr>
168
		</tr>
168
		
169
		
169
		<?php // Versandkosten  ?>
170
		<?php // Versandkosten  ?>
170
		<?php $price_shipping = $arCalculation['sum']['shipping_'.$display]; ?>
171
		<?php $price_shipping = $arCalculation['sum']['shipping_'.$display]; ?>
171
		<?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
172
		<?php if ($price_shipping != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
172
			<tr class="wpsg_row_shipping">
173
			<tr class="wpsg_row_shipping">
173
				<td class="wpsg_cell_shipping_label" colspan="2">
174
				<td class="wpsg_cell_shipping_label" colspan="2">
174
					<?php echo __('Versandkosten', 'wpsg'); ?>
175
					<?php echo __('Versandkosten', 'wpsg'); ?>
175
					<?php echo __('  ('.$this->arShipping[$arCalculation['shipping'][0]['shipping_key']]['name'].')', 'wpsg'); ?>
176
					<?php echo __('  ('.$this->arShipping[$arCalculation['shipping'][0]['shipping_key']]['name'].')', 'wpsg'); ?>
176
					<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>
177
					<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>
177
				</td>
178
				</td>
178
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
179
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
179
				<td><?php echo $arTaxShort[$arCalculation['shipping'][0]['tax_key']]; ?></td>
180
				<td><?php echo $arTaxShort[$arCalculation['shipping'][0]['tax_key']]; ?></td>
180
				<?php } ?>
181
				<?php } ?>
181
				<td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis" colspan="2">
182
				<td class="wpsg_cell_shipping_value wpsg_cell_gesamtpreis" colspan="2">
182
					<span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
183
					<span id="wpsg_cell_shipping_value"><?php echo wpsg_ff($price_shipping); ?> </span>
183
					<?php echo $this->get_option('wpsg_currency'); ?>
184
					<?php echo $this->get_option('wpsg_currency'); ?>
184
					
185
					
185
					<?php if (strpos($arCalculation['shipping'][0]['set'], '%') !== false) { 
186
					<?php if (strpos($arCalculation['shipping'][0]['set'], '%') !== false) { 
186
 
187
 
187
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['shipping'][0]['set']), '%').')</span>';
188
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['shipping'][0]['set']), '%').')</span>';
188
 
189
 
189
					} ?>
190
					} ?>
190
					
191
					
191
				</td>
192
				</td>
192
			</tr>
193
			</tr>
193
		<?php } ?>
194
		<?php } ?>
194
		
195
		
195
		<?php // Zahlungskosten  ?>
196
		<?php // Zahlungskosten  ?>
196
		<?php $price_payment = $arCalculation['sum']['payment_'.$display]; ?>
197
		<?php $price_payment = $arCalculation['sum']['payment_'.$display]; ?>
197
		<?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
198
		<?php if ($price_payment != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
198
			<tr class="wpsg_row_payment">
199
			<tr class="wpsg_row_payment">
199
				<td colspan="2" class="wpsg_cell_payment_label">
200
				<td colspan="2" class="wpsg_cell_payment_label">
200
					<?php echo __('Zahlungsart', 'wpsg'); ?>
201
					<?php echo __('Zahlungsart', 'wpsg'); ?>
201
					<?php echo __('  ('.$this->arPayment[$arCalculation['payment'][0]['payment_key']]['name'].')', 'wpsg'); ?>
202
					<?php echo __('  ('.$this->arPayment[$arCalculation['payment'][0]['payment_key']]['name'].')', 'wpsg'); ?>
202
					<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>
203
					<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>
203
				</td>
204
				</td>
204
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
205
				<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
205
					<td><?php echo $arTaxShort[$arCalculation['payment'][0]['tax_key']]; ?></td>
206
					<td><?php echo $arTaxShort[$arCalculation['payment'][0]['tax_key']]; ?></td>
206
				<?php } ?>
207
				<?php } ?>
207
				<td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" colspan="2">
208
				<td class="wpsg_cell_payment_value wpsg_cell_gesamtpreis" colspan="2">
208
					<span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
209
					<span id="wpsg_cell_payment_value"><?php echo wpsg_ff($price_payment); ?> </span>
209
					<?php echo $this->get_option('wpsg_currency'); ?>
210
					<?php echo $this->get_option('wpsg_currency'); ?>
210
					
211
					
211
					<?php if (strpos($arCalculation['payment'][0]['set'], '%') !== false) {
212
					<?php if (strpos($arCalculation['payment'][0]['set'], '%') !== false) {
212
						
213
						
213
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['payment'][0]['set']), '%').')</span>';
214
						echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($arCalculation['payment'][0]['set']), '%').')</span>';
214
						
215
						
215
					} ?>
216
					} ?>
216
					
217
					
217
				</td>
218
				</td>
218
			</tr>
219
			</tr>
219
		<?php } ?>
220
		<?php } ?>
220
		
221
		
221
		<?php // Rabatte  ?>
222
		<?php // Rabatte  ?>
222
		<?php if (wpsg_isSizedArray($arCalculation['discount'])) { ?>			
223
		<?php if (wpsg_isSizedArray($arCalculation['discount'])) { ?>			
223
			<?php foreach ($arCalculation['discount'] as $d) { ?>
224
			<?php foreach ($arCalculation['discount'] as $d) { ?>
224
				<tr class="wpsg_row_discount wpsg_row_small">
225
				<tr class="wpsg_row_discount wpsg_row_small">
225
					<td colspan="" class="wpsg_cell_mwst_label">
226
					<td colspan="" class="wpsg_cell_mwst_label">
226
						
227
						
227
						<?php echo __('Rabatt', 'wpsg'); ?>
228
						<?php echo __('Rabatt', 'wpsg'); ?>
228
						
229
						
229
						<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
230
						<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
230
							<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
231
							<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
231
						<?php } else { ?>
232
						<?php } else { ?>
232
							<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
233
							<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
233
						<?php } ?>
234
						<?php } ?>
234
 
235
 
235
						<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>
236
						<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>
236
						<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>
237
						<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>
237
 
238
 
238
					</td>
239
					</td>
239
					<td class="wpsg_cell_preis">
240
					<td class="wpsg_cell_preis">
240
						
241
						
241
						<?php if (strpos($d['set'], '%') === false) { ?>
242
						<?php if (strpos($d['set'], '%') === false) { ?>
242
							<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display], $this->get_option('wpsg_currency')); ?>
243
							<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display], $this->get_option('wpsg_currency')); ?>
243
						<?php } else { ?>
244
						<?php } else { ?>
244
							<?php echo wpsg_ff($d['set'], '%'); ?>
245
							<?php echo wpsg_ff($d['set'], '%'); ?>
245
						<?php } ?>
246
						<?php } ?>
246
						
247
						
247
					</td>
248
					</td>
248
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
249
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
249
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
250
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$d['tax_key']]; ?></td>
250
					<?php } ?>
251
					<?php } ?>
251
					<td></td>
252
					<td></td>
252
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
253
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
253
						<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
254
						<?php echo wpsg_ff($arCalculation['sum']['discount_'.$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
254
					</td>
255
					</td>
255
				</tr>
256
				</tr>
256
			<?php } ?>
257
			<?php } ?>
257
		<?php } ?>
258
		<?php } ?>
258
		
259
		
259
		<?php if ($this->getBackendTaxView() === WPSG_NETTO) { ?>
260
		<?php if ($this->getBackendTaxView() === WPSG_NETTO) { ?>
260
			
261
			
261
			<tr class="wpsg_row_gesamt">
262
			<tr class="wpsg_row_gesamt">
262
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
263
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
263
					<?php echo __('Summe', 'wpsg'); ?>
264
					<?php echo __('Summe', 'wpsg'); ?>
264
					<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
265
					<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
265
				</td>
266
				</td>
266
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
267
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
267
					<?php echo wpsg_ff($arCalculation['sum'][$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
268
					<?php echo wpsg_ff($arCalculation['sum'][$display]); ?> <?php echo $this->get_option('wpsg_currency'); ?>
268
				</td>
269
				</td>
269
			</tr>
270
			</tr>
270
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
271
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
271
				<tr class="wpsg_row_mwst wpsg_row_small">
272
				<tr class="wpsg_row_mwst wpsg_row_small">
272
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
273
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
273
						<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
274
						<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
274
					</td>
275
					</td>
275
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
276
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
276
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
277
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
277
					</td>
278
					</td>
278
				</tr>
279
				</tr>
279
			<?php } } ?>
280
			<?php } } ?>
280
			<tr class="wpsg_row_gesamt">
281
			<tr class="wpsg_row_gesamt">
281
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
282
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
282
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
283
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
283
					<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
284
					<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
284
				</td>
285
				</td>
285
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
286
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
286
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
287
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
287
				</td>
288
				</td>
288
			</tr>
289
			</tr>
289
			
290
			
290
		<?php } else { ?>
291
		<?php } else { ?>
291
 
292
 
292
			<tr class="wpsg_row_gesamt">
293
			<tr class="wpsg_row_gesamt">
293
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
294
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
294
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
295
					<strong><?php echo __('Gesamtsumme', 'wpsg'); ?></strong>
295
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
296
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
296
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
297
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
297
					<?php } else { ?>
298
					<?php } else { ?>
298
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
299
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
299
					<?php } ?>
300
					<?php } ?>
300
				</td>
301
				</td>
301
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
302
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
302
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
303
					<strong><?php echo wpsg_ff($arCalculation['sum']['brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
303
				</td>
304
				</td>
304
			</tr>			
305
			</tr>			
305
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
306
			<?php foreach ($arCalculation['tax'] as $tax) { if ($tax['sum'] > 0 && $tax['key'] != '0') { ?>
306
				<tr class="wpsg_row_mwst wpsg_row_small">
307
				<tr class="wpsg_row_mwst wpsg_row_small">
307
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
308
					<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
308
						<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
309
						<?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
309
							<?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
310
							<?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
310
						<?php } else { ?>
311
						<?php } else { ?>
311
							<?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
312
							<?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $arTax[$tax['key']]); ?>
312
						<?php } ?>
313
						<?php } ?>
313
					</td>
314
					</td>
314
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
315
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis">
315
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
316
						<?php echo wpsg_ff($tax['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
316
					</td>
317
					</td>
317
				</tr>
318
				</tr>
318
			<?php } } ?>
319
			<?php } } ?>
319
			
320
			
320
		<?php } ?>
321
		<?php } ?>
321
		
322
		
322
		<?php // Wertgutscheine  ?>
323
		<?php // Wertgutscheine  ?>
323
		<?php if (wpsg_isSizedArray($arCalculation['coupon'])) { ?>
324
		<?php if (wpsg_isSizedArray($arCalculation['coupon'])) { ?>
324
			
325
			
325
			<?php foreach ($arCalculation['coupon'] as $c) { ?>
326
			<?php foreach ($arCalculation['coupon'] as $c) { ?>
326
 
327
 
327
				<tr class="wpsg_row_discount wpsg_row_small">
328
				<tr class="wpsg_row_discount wpsg_row_small">
328
					<td colspan="" class="wpsg_cell_mwst_label">
329
					<td colspan="" class="wpsg_cell_mwst_label">
329
 
330
 
330
						<div>
331
						<div>
331
							<?php echo __('Wertgutschein', 'wpsg'); ?>
332
							<?php echo __('Wertgutschein', 'wpsg'); ?>
332
							
333
							
333
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
334
							<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
334
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
335
								<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
335
							<?php } else { ?>
336
							<?php } else { ?>
336
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
337
								<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
337
							<?php } ?>
338
							<?php } ?>
338
 
339
 
339
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Wertgtschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher(<?php echo $c['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
340
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Wertgtschein bearbeiten', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.editVoucher(<?php echo $c['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
340
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Wertgutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher(<?php echo $c['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
341
							<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Wertgutschein löschen', 'wpsg'); ?>" onclick="return WPSG_BE_Voucher.removeVoucher(<?php echo $c['order_voucher_id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
341
						</div>
342
						</div>
342
						<div>
343
						<div>
343
							Code: <?php echo $c['code']; ?>
344
							Code: <?php echo $c['code']; ?>
344
						</div>
345
						</div>
345
 
346
 
346
					</td>
347
					</td>
347
					<td class="wpsg_cell_preis">
348
					<td class="wpsg_cell_preis">
348
						
349
						
349
						<?php if (strpos($c['set'], '%') === false) { ?>
350
						<?php if (strpos($c['set'], '%') === false) { ?>
350
							<?php echo wpsg_ff($c[$display], $this->get_option('wpsg_currency')); ?>
351
							<?php echo wpsg_ff($c[$display], $this->get_option('wpsg_currency')); ?>
351
						<?php } else { ?>
352
						<?php } else { ?>
352
							<?php echo wpsg_ff($c['set'], '%'); ?>
353
							<?php echo wpsg_ff($c['set'], '%'); ?>
353
						<?php } ?>
354
						<?php } ?>
354
 
355
 
355
					</td>
356
					</td>
356
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
357
					<?php if (sizeof($arCalculation['tax']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
357
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$c['tax_key']]; ?></td>
358
						<td class="wpsg_cell_mwst"><?php echo $arTaxShort[$c['tax_key']]; ?></td>
358
					<?php } ?>
359
					<?php } ?>
359
					<td>1</td>
360
					<td>1</td>
360
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php
361
					<td class="wpsg_cell_mwst_value wpsg_cell_gesamtpreis"><?php
361
							
362
							
362
							echo wpsg_ff($c[$display]); ?> <?php echo $this->get_option('wpsg_currency');
363
							echo wpsg_ff($c[$display]); ?> <?php echo $this->get_option('wpsg_currency');
363
							
364
							
364
							if (strpos($c['set'], '%') !== false) {
365
							if (strpos($c['set'], '%') !== false) {
365
								
366
								
366
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($c['set']), '%').')</span>';
367
								echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($c['set']), '%').')</span>';
367
								
368
								
368
							}
369
							}
369
						
370
						
370
						?></td>
371
						?></td>
371
				</tr>
372
				</tr>
372
			
373
			
373
			<?php } ?>
374
			<?php } ?>
374
 
375
 
375
			<tr class="wpsg_row_gesamt">
376
			<tr class="wpsg_row_gesamt">
376
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
377
				<td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
377
					<strong><?php echo __('Zu zahlen', 'wpsg'); ?></strong>
378
					<strong><?php echo __('Zu zahlen', 'wpsg'); ?></strong>
378
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
379
					<?php if ($this->getBackendTaxView() === WPSG_BRUTTO) { ?>
379
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
380
						<?php echo __('(inkl. MwSt.)', 'wpsg'); ?>
380
					<?php } else { ?>
381
					<?php } else { ?>
381
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
382
						<?php echo __('(zzgl. MwSt.)', 'wpsg'); ?>
382
					<?php } ?>
383
					<?php } ?>
383
				</td>
384
				</td>
384
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
385
				<td class="wpsg_cell_gesamt_value wpsg_cell_gesamtpreis">
385
					<strong><?php echo wpsg_ff($arCalculation['sum']['topay_brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
386
					<strong><?php echo wpsg_ff($arCalculation['sum']['topay_brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?></strong>
386
				</td>
387
				</td>
387
			</tr>
388
			</tr>
388
		
389
		
389
		<?php } ?>	
390
		<?php } ?>	
390
	
391
	
391
	</tbody>
392
	</tbody>
392
</table>
393
</table>
393
 
394
 
394
<?php // wpsg_debug($arCalculation);  ?>
395
<?php // wpsg_debug($arCalculation);  ?>
395
	
396