1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für den Warenkorb
|
|
|
5 |
*/
|
6338 |
hartmut |
6 |
|
4061 |
daniel |
7 |
//wpsg_debug($this->view['basket']);
|
7486 |
daniel |
8 |
//wpsg_debug($this->view['basket']['arCalculation']);
|
7895 |
daniel |
9 |
//wpsg_debug($_SESSION['wpsg']);
|
4191 |
daniel |
10 |
//wpsg_debug($this->arShipping);
|
6278 |
daniel |
11 |
|
|
|
12 |
//wpsg_debug(__('Deutschland', 'wpsg'));
|
7490 |
daniel |
13 |
|
7486 |
daniel |
14 |
if ($this->getFrontendTaxView() === WPSG_BRUTTO) $display_brutto_netto = 'brutto';
|
|
|
15 |
else $display_brutto_netto = 'netto';
|
|
|
16 |
|
6278 |
daniel |
17 |
?>
|
3444 |
daniel |
18 |
<div class="wpsg wpsg_basket <?php echo ((isset($_REQUEST['wpsg_basket_ajax']))?'wpsg_basket_ajax':''); ?>">
|
6338 |
hartmut |
19 |
|
6149 |
hartmut |
20 |
<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
|
|
|
21 |
<?php } else {?>
|
1067 |
daniel |
22 |
<?php echo $this->writeFrontendMessage(); ?>
|
6149 |
hartmut |
23 |
<?php } ?>
|
6338 |
hartmut |
24 |
|
5022 |
daniel |
25 |
<?php $this->callMods('basket_top'); ?>
|
6338 |
hartmut |
26 |
|
1067 |
daniel |
27 |
<?php if (sizeof($this->view['basket']['produkte']) > 0) { ?>
|
5019 |
thomas |
28 |
|
6149 |
hartmut |
29 |
<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
|
6330 |
hartmut |
30 |
<?php } else {?>
|
6149 |
hartmut |
31 |
<?php $GLOBALS['step'] = 1; $this->render(WPSG_PATH_VIEW.'/warenkorb/progress.phtml'); ?>
|
6330 |
hartmut |
32 |
<?php } ?>
|
6149 |
hartmut |
33 |
|
6330 |
hartmut |
34 |
<?php if (!isset($this->view['noFormTag'])) { ?>
|
7002 |
daniel |
35 |
<form id="wpsg_basket_form" name="wpsg_basket_form" method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_CHECKOUT); ?>" enctype="multipart/form-data">
|
6149 |
hartmut |
36 |
<?php } ?>
|
6338 |
hartmut |
37 |
|
7260 |
roger |
38 |
<h2><?php echo __('Ihr Warenkorb', 'wpsg'); ?></h2>
|
6338 |
hartmut |
39 |
|
3460 |
daniel |
40 |
<div class="wpsg_spacer"></div>
|
6338 |
hartmut |
41 |
|
6314 |
daniel |
42 |
<div class="basket_product_wrap">
|
6338 |
hartmut |
43 |
|
6332 |
hartmut |
44 |
<?php $i = 0; foreach ($this->view['basket']['produkte'] as $k => $product_data) { $i ++; ?>
|
6330 |
hartmut |
45 |
|
6314 |
daniel |
46 |
<div class="basket_product_row">
|
6338 |
hartmut |
47 |
|
6454 |
hartmut |
48 |
<?php $this->view['$bPicture'] = false;
|
6330 |
hartmut |
49 |
|
6454 |
hartmut |
50 |
?>
|
|
|
51 |
<?php if ($this->get_option('wpsg_imagehandler_basketimage') == '1') {
|
6338 |
hartmut |
52 |
|
6330 |
hartmut |
53 |
?>
|
6314 |
daniel |
54 |
<div class="productimage">
|
6338 |
hartmut |
55 |
|
6330 |
hartmut |
56 |
<?php
|
|
|
57 |
if (isset($product_data['product_key'])) {
|
6454 |
hartmut |
58 |
$arAttachmentIDs = $this->imagehandler->getAttachmentIDs($product_data['product_key']);
|
|
|
59 |
$attachmentID = $this->imagehandler->getAttachmentID($product_data['product_key']);
|
|
|
60 |
|
|
|
61 |
echo wp_get_attachment_image($attachmentID, 'medium');
|
|
|
62 |
|
6330 |
hartmut |
63 |
}
|
6454 |
hartmut |
64 |
if ($attachmentID > 0) $this->view['$bPicture'] = true;
|
|
|
65 |
//echo "<img src=".$url." alt='' />";
|
6330 |
hartmut |
66 |
?>
|
6314 |
daniel |
67 |
</div>
|
|
|
68 |
<?php } ?>
|
6330 |
hartmut |
69 |
|
6314 |
daniel |
70 |
<div class="product_content">
|
6338 |
hartmut |
71 |
|
6314 |
daniel |
72 |
<div class="product_name">
|
|
|
73 |
<?php if ($this->getProduktLink($product_data)) { ?>
|
|
|
74 |
<a href="<?php echo $this->getProduktLink($product_data); ?>"><?php echo wpsg_hspc((($product_data['detailname'] != '')?$product_data['detailname']:$product_data['name'])); ?></a>
|
|
|
75 |
<?php } else { ?>
|
|
|
76 |
<?php echo wpsg_hspc((($product_data['detailname'] != '')?$product_data['detailname']:$product_data['name'])); ?>
|
|
|
77 |
<?php } ?>
|
6338 |
hartmut |
78 |
|
6314 |
daniel |
79 |
<?php if (wpsg_isSizedString($product_data['shortdesc'])) { ?>
|
|
|
80 |
<div class="product_shortdesc"><?php echo $product_data['shortdesc']; ?></div>
|
|
|
81 |
<?php } ?>
|
6338 |
hartmut |
82 |
|
6314 |
daniel |
83 |
</div>
|
6338 |
hartmut |
84 |
|
6314 |
daniel |
85 |
<div class="product_action">
|
6330 |
hartmut |
86 |
<div class="title">
|
6331 |
hartmut |
87 |
<?php echo __("Anzahl", "wpsg"); ?>
|
6330 |
hartmut |
88 |
</div>
|
6314 |
daniel |
89 |
<div class="amount">
|
6338 |
hartmut |
90 |
|
6314 |
daniel |
91 |
<input class="wpsg_form_submit_return" type="text" name="wpsg[menge][<?php echo $product_data['product_index']; ?>]" <?php echo ((wpsg_isTrue($product_data['oneOnly']) || wpsg_isSizedInt($product_data['basket_multiple'], 4))?'readonly="readonly"':''); ?> value="<?php echo wpsg_hspc($product_data['menge']); ?>" size="3" />
|
6914 |
daniel |
92 |
|
|
|
93 |
<a class="wpsg_basket_removelink" href="<?php echo $this->getRemoveLinkURL($product_data['product_index']); ?>" title="<?php echo __('Produkt aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie das Produkt aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');">
|
|
|
94 |
<img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" />
|
|
|
95 |
</a>
|
|
|
96 |
|
6314 |
daniel |
97 |
</div>
|
6330 |
hartmut |
98 |
</div>
|
7704 |
daniel |
99 |
|
|
|
100 |
<?php $this->callMods('basket_row_before', array(&$product_data, $i)); ?>
|
|
|
101 |
|
6330 |
hartmut |
102 |
<div class="product_action">
|
|
|
103 |
<div class="title">
|
|
|
104 |
<?php echo __("Einzelpreis", "wpsg"); ?>
|
|
|
105 |
</div>
|
6314 |
daniel |
106 |
<div class="price">
|
|
|
107 |
<?php echo wpsg_ff($product_data['preis'], $this->get_option('wpsg_currency')); ?>
|
|
|
108 |
</div>
|
6330 |
hartmut |
109 |
</div>
|
|
|
110 |
<div class="product_action">
|
|
|
111 |
<div class="title">
|
|
|
112 |
<?php echo __("Gesamtpreis", "wpsg"); ?>
|
|
|
113 |
</div>
|
6314 |
daniel |
114 |
<div class="price_total">
|
|
|
115 |
<?php echo wpsg_ff($product_data['menge'] * $product_data['preis'], $this->get_option('wpsg_currency')); ?>
|
|
|
116 |
</div>
|
|
|
117 |
</div>
|
6338 |
hartmut |
118 |
|
6330 |
hartmut |
119 |
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
|
|
120 |
<div class="product_info">
|
7243 |
daniel |
121 |
|
|
|
122 |
<?php echo __("MwSt.", "wpsg"); ?>
|
|
|
123 |
|
6330 |
hartmut |
124 |
<div class="valuer">
|
|
|
125 |
<?php echo wpsg_ff($product_data['mwst_value'], ' %'); ?>
|
|
|
126 |
</div>
|
|
|
127 |
<div class="dummyr">
|
|
|
128 |
<?php echo __(' '); ?>
|
|
|
129 |
</div>
|
6338 |
hartmut |
130 |
|
6330 |
hartmut |
131 |
</div>
|
|
|
132 |
<?php } ?>
|
|
|
133 |
|
6332 |
hartmut |
134 |
<?php $strBasketRow = ''; ob_start(); $this->callMods('basket_row', array(&$product_data, $i)); $strBasketRow = ob_get_contents(); ob_end_clean(); ?>
|
6330 |
hartmut |
135 |
<?php echo $strBasketRow; ?>
|
6338 |
hartmut |
136 |
|
6314 |
daniel |
137 |
</div>
|
6338 |
hartmut |
138 |
|
6314 |
daniel |
139 |
</div>
|
6338 |
hartmut |
140 |
|
6330 |
hartmut |
141 |
<?php } // foreach products ?>
|
6338 |
hartmut |
142 |
|
6314 |
daniel |
143 |
</div>
|
6338 |
hartmut |
144 |
|
6330 |
hartmut |
145 |
<div class="basket_sum_wrap">
|
6338 |
hartmut |
146 |
|
7998 |
daniel |
147 |
<?php $this->callMods('basket_row_afterproducts', []); ?>
|
6338 |
hartmut |
148 |
|
6330 |
hartmut |
149 |
<?php $bLine = false; ?>
|
7486 |
daniel |
150 |
|
|
|
151 |
<?php if (wpsg_isSizedArray($this->view['basket']['arCalculation']['voucher'])) { $bLine = true; ?>
|
7349 |
daniel |
152 |
|
7486 |
daniel |
153 |
<?php foreach ($this->view['basket']['arCalculation']['voucher'] as $gs) { ?>
|
|
|
154 |
|
7865 |
daniel |
155 |
<div class="basket_sum_row basket_sum_voucher">
|
7486 |
daniel |
156 |
<div class="title">
|
7865 |
daniel |
157 |
<a class="wpsg_basket_removelink" href="<?php echo str_replace('&', '&', $this->getRemoveLinkURL('voucher_'.$gs['id'])); ?>" title="<?php echo __('Gutschein aus dem Warenkorb entfernen', 'wpsg'); ?>" onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass sie den Gutschein aus dem Warenkorb entfernen möchten?', 'wpsg'); ?>');"><img src="<?php echo WPSG_URL; ?>views/gfx/bin_x.png" alt="<?php echo __('Löschen', 'wpsg'); ?>" /></a>
|
|
|
158 |
<?php echo __('Gutschein', 'wpsg'); ?> <?php
|
|
|
159 |
|
|
|
160 |
$arInfo = [];
|
|
|
161 |
|
|
|
162 |
if (wpsg_isSizedString($gs['code'])) $arInfo[] = $gs['code'];
|
|
|
163 |
if (wpsg_isTrue($gs['partial'])) $arInfo[] = __('teilweise angerechnet', 'wpsg');
|
|
|
164 |
|
|
|
165 |
if (wpsg_isSizedArray($arInfo)) echo '('.implode(' / ', $arInfo).')';
|
|
|
166 |
|
|
|
167 |
?>
|
7486 |
daniel |
168 |
</div>
|
|
|
169 |
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
|
|
170 |
<div class="colgsr"><?php echo __('anteilig', 'wpsg'); ?></div>
|
|
|
171 |
<?php } ?>
|
|
|
172 |
<div class="value"><?php
|
|
|
173 |
|
|
|
174 |
echo wpsg_ff($gs[$display_brutto_netto], $this->get_option('wpsg_currency'));
|
7349 |
daniel |
175 |
|
7486 |
daniel |
176 |
if (strpos($gs['set'], '%') !== false) {
|
|
|
177 |
|
|
|
178 |
echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($gs['set']), '%').')</span>';
|
|
|
179 |
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
?></div>
|
7349 |
daniel |
183 |
|
7486 |
daniel |
184 |
</div>
|
7349 |
daniel |
185 |
|
7486 |
daniel |
186 |
<?php } ?>
|
7349 |
daniel |
187 |
|
6330 |
hartmut |
188 |
<?php } ?>
|
6338 |
hartmut |
189 |
|
6330 |
hartmut |
190 |
<div class="basket_sum_row">
|
|
|
191 |
<?php if (isset($this->view['basket']['sum']['preis_rabatt']) && wpsg_tf($this->view['basket']['sum']['preis_rabatt']) > 0) { ?>
|
|
|
192 |
<div class="title">
|
|
|
193 |
<?php echo __("Rabatt", "wpsg"); $bLine = true; ?>:
|
2766 |
daniel |
194 |
</div>
|
6330 |
hartmut |
195 |
<?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
|
|
|
196 |
<div class="value">
|
|
|
197 |
<?php echo __('anteilig', 'wpsg'); ?>
|
|
|
198 |
</div>
|
2766 |
daniel |
199 |
<?php } ?>
|
6330 |
hartmut |
200 |
<div class="value">
|
|
|
201 |
<?php echo '-'.wpsg_ff($this->view['basket']['sum']['preis_rabatt'], $this->get_option('wpsg_currency')); ?>
|
|
|
202 |
</div>
|
|
|
203 |
<?php } ?>
|
|
|
204 |
</div>
|
|
|
205 |
|
|
|
206 |
<?php if ($bLine == true) { ?>
|
|
|
207 |
<div class="wpsg_spacer"></div>
|
1067 |
daniel |
208 |
<?php } ?>
|
6330 |
hartmut |
209 |
|
|
|
210 |
<div class="basket_sum_row">
|
|
|
211 |
<div class="title2">
|
3024 |
daniel |
212 |
<?php if ($this->get_option("wpsg_kleinunternehmer") == "1") { ?>
|
6330 |
hartmut |
213 |
<?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
|
3024 |
daniel |
214 |
<?php } else { ?>
|
6330 |
hartmut |
215 |
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
|
6338 |
hartmut |
216 |
<?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
|
6330 |
hartmut |
217 |
<?php } else { ?>
|
|
|
218 |
<?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>:
|
|
|
219 |
<?php } ?>
|
3024 |
daniel |
220 |
<?php } ?>
|
6330 |
hartmut |
221 |
</div>
|
|
|
222 |
<div class="value">
|
2742 |
daniel |
223 |
<?php echo wpsg_ff($this->view['basket']['sum']['preis'], $this->get_option('wpsg_currency')); ?>
|
6330 |
hartmut |
224 |
</div>
|
|
|
225 |
</div>
|
6338 |
hartmut |
226 |
|
6330 |
hartmut |
227 |
<div class="basket_sum_row">
|
|
|
228 |
<div class="title">
|
2742 |
daniel |
229 |
<?php echo wpsg_translate(__('<a href="#1#">Versandkosten</a>:', 'wpsg'),
|
|
|
230 |
$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN)
|
4893 |
daniel |
231 |
); ?>
|
6340 |
hartmut |
232 |
<br />
|
6330 |
hartmut |
233 |
<?php if (sizeof($this->arShipping) > 1) { ?>
|
2742 |
daniel |
234 |
<select name="set_shipping" class="wpsg_form_submit set_shipping">
|
3444 |
daniel |
235 |
<option><?php echo __('Bitte wählen', 'wpsg')?></option>
|
6330 |
hartmut |
236 |
<?php foreach ($this->arShipping as $s_id => $s) { ?>
|
4122 |
daniel |
237 |
<option <?php echo (($s['id'] == $this->view['basket']['checkout']['shipping'])?'selected="selected"':''); ?> value="<?php echo $s_id; ?>"><?php echo wpsg_hspc(__($s['name'], 'wpsg')); ?></option>
|
2742 |
daniel |
238 |
<?php } ?>
|
|
|
239 |
</select>
|
5958 |
daniel |
240 |
<?php } else if (!wpsg_isSizedArray($this->arShipping) || !array_key_exists($this->view['basket']['checkout']['shipping'], $this->arShipping)) { ?>
|
|
|
241 |
<span><?php echo __('Keine Versandart möglich / Bitte manuell anfragen', 'wpsg'); ?></span>
|
|
|
242 |
<?php } else { ?>
|
4893 |
daniel |
243 |
<span><?php echo $this->arShipping[$this->view['basket']['checkout']['shipping']]['name']; ?></span>
|
|
|
244 |
<?php } ?>
|
2988 |
daniel |
245 |
<?php if ($this->get_option('wpsg_hideBasketCountrySelect') != '1') { ?>
|
6149 |
hartmut |
246 |
<select name="set_land" id="set_land" class="wpsg_form_submit set_land">
|
2742 |
daniel |
247 |
<?php foreach ($this->view['arLander'] as $l_id => $l) { ?>
|
4062 |
daniel |
248 |
<option <?php echo (($l_id == $this->getFrontendCountry(true))?'selected="selected"':''); ?> value="<?php echo $l_id; ?>"><?php echo wpsg_hspc(__($l, 'wpsg')); ?></option>
|
2742 |
daniel |
249 |
<?php } ?>
|
6330 |
hartmut |
250 |
</select>
|
2988 |
daniel |
251 |
<?php } else { ?>
|
|
|
252 |
<input type="hidden" name="set_land" value="<?php echo $this->view['basket']['checkout']['shipping_land']; ?>" />
|
|
|
253 |
<?php } ?>
|
6330 |
hartmut |
254 |
</div>
|
|
|
255 |
<div class="value">
|
7358 |
daniel |
256 |
<?php if ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') && isset($this->view['basket']['arCalculation']['shipping'][0]['tax_key'])) {
|
7347 |
daniel |
257 |
|
|
|
258 |
$shipping_tax_key = $this->view['basket']['arCalculation']['shipping'][0]['tax_key'];
|
7358 |
daniel |
259 |
|
7347 |
daniel |
260 |
if ($shipping_tax_key === '0') {
|
|
|
261 |
|
6330 |
hartmut |
262 |
echo __('anteilig', 'wpsg');
|
7347 |
daniel |
263 |
|
|
|
264 |
} else {
|
|
|
265 |
|
|
|
266 |
echo wpsg_ff($this->view['basket']['arCalculation']['tax'][$shipping_tax_key]['tax_value'], '%');
|
|
|
267 |
|
6330 |
hartmut |
268 |
}
|
7347 |
daniel |
269 |
|
|
|
270 |
} ?>
|
|
|
271 |
</div>
|
|
|
272 |
<div class="value">
|
|
|
273 |
<?php
|
|
|
274 |
|
7358 |
daniel |
275 |
if (isset($this->view['basket']['arCalculation']['shipping'][0]['tax_key'])) {
|
7347 |
daniel |
276 |
|
7358 |
daniel |
277 |
echo wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency'));
|
7347 |
daniel |
278 |
|
7358 |
daniel |
279 |
if (strpos($this->view['basket']['arCalculation']['shipping'][0]['set'], '%') !== false) {
|
|
|
280 |
|
|
|
281 |
echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['shipping'][0]['set']), '%').')</span>';
|
|
|
282 |
|
|
|
283 |
}
|
7347 |
daniel |
284 |
|
6330 |
hartmut |
285 |
}
|
7347 |
daniel |
286 |
|
6330 |
hartmut |
287 |
?>
|
|
|
288 |
</div>
|
|
|
289 |
</div>
|
6338 |
hartmut |
290 |
|
4323 |
daniel |
291 |
<?php /* Zeile für Zahlungsart BEGIN */ ?>
|
|
|
292 |
<?php if (!$this->hasMod('wpsg_mod_crefopay')) { ?>
|
6330 |
hartmut |
293 |
<div class="basket_sum_row">
|
|
|
294 |
<div class="title">
|
|
|
295 |
<?php echo __('Zahlungsart:', 'wpsg').' '; ?>
|
|
|
296 |
<?php if (sizeof($this->arPayment) > 1) { ?>
|
6332 |
hartmut |
297 |
<select name="set_payment" class="wpsg_form_submit set_payment">
|
|
|
298 |
<option><?php echo __('Bitte wählen', 'wpsg')?></option>
|
6330 |
hartmut |
299 |
<?php foreach ($this->arPayment as $p_id => $p) { ?>
|
|
|
300 |
<option <?php echo (($p['id'] == $this->view['basket']['checkout']['payment'])?'selected="selected"':''); ?> value="<?php echo $p_id; ?>"><?php echo wpsg_hspc($p['name']); ?></option>
|
|
|
301 |
<?php } ?>
|
|
|
302 |
</select>
|
|
|
303 |
<?php } else if (!wpsg_isSizedArray($this->arPayment) || !array_key_exists($this->view['basket']['checkout']['payment'], $this->arPayment)) { ?>
|
|
|
304 |
<span><?php echo __('Keine Zahlungsart möglich / Bitte manuell anfragen', 'wpsg'); ?></span>
|
|
|
305 |
<?php } else { ?>
|
|
|
306 |
<span><?php echo $this->arPayment[$this->view['basket']['checkout']['payment']]['name']; ?></span>
|
2742 |
daniel |
307 |
<?php } ?>
|
6330 |
hartmut |
308 |
</div>
|
|
|
309 |
<div class="value">
|
7358 |
daniel |
310 |
<?php if ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') && isset($this->view['basket']['arCalculation']['payment'][0]['tax_key'])) {
|
7347 |
daniel |
311 |
|
|
|
312 |
$payment_tax_key = $this->view['basket']['arCalculation']['payment'][0]['tax_key'];
|
|
|
313 |
|
|
|
314 |
if ($payment_tax_key === '0') {
|
|
|
315 |
|
6330 |
hartmut |
316 |
echo __('anteilig', 'wpsg');
|
7347 |
daniel |
317 |
|
|
|
318 |
} else {
|
|
|
319 |
|
|
|
320 |
echo wpsg_ff($this->view['basket']['arCalculation']['tax'][$payment_tax_key]['tax_value'], '%');
|
|
|
321 |
|
6330 |
hartmut |
322 |
}
|
7347 |
daniel |
323 |
|
6330 |
hartmut |
324 |
} ?>
|
|
|
325 |
</div>
|
|
|
326 |
<div class="value">
|
7347 |
daniel |
327 |
<?php
|
|
|
328 |
|
7358 |
daniel |
329 |
if (isset($this->view['basket']['arCalculation']['payment'][0]['tax_key'])) {
|
|
|
330 |
|
|
|
331 |
echo wpsg_ff($this->view['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency'));
|
|
|
332 |
|
|
|
333 |
if (strpos($this->view['basket']['arCalculation']['payment'][0]['set'], '%') !== false) {
|
|
|
334 |
|
|
|
335 |
echo '<span class="procent_payship">('.wpsg_ff(wpsg_tf($this->view['basket']['arCalculation']['payment'][0]['set']), '%').')</span>';
|
|
|
336 |
|
|
|
337 |
}
|
7347 |
daniel |
338 |
|
|
|
339 |
}
|
|
|
340 |
|
|
|
341 |
?>
|
6330 |
hartmut |
342 |
</div>
|
|
|
343 |
</div>
|
4323 |
daniel |
344 |
<?php } ?>
|
|
|
345 |
<?php /* Zeile für Zahlungsart ENDE */ ?>
|
6330 |
hartmut |
346 |
|
1564 |
daniel |
347 |
<?php if (get_option("wpsg_kleinunternehmer") == "1") { ?>
|
6330 |
hartmut |
348 |
<div class="basket_sum_row">
|
|
|
349 |
<div class="title2">
|
|
|
350 |
<?php echo get_option('wpsg_kleinunternehmer_text'); ?>
|
|
|
351 |
</div>
|
|
|
352 |
<div class="value">
|
|
|
353 |
<?php echo __(' '); ?>
|
|
|
354 |
</div>
|
|
|
355 |
</div>
|
|
|
356 |
|
|
|
357 |
<div class="basket_sum_row">
|
|
|
358 |
<div class="title2">
|
|
|
359 |
<?php echo __('Gesamtpreis', 'wpsg'); ?>:
|
|
|
360 |
</div>
|
|
|
361 |
<div class="sum">
|
|
|
362 |
<?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?>
|
|
|
363 |
</div>
|
|
|
364 |
</div>
|
|
|
365 |
<?php } else { ?>
|
|
|
366 |
|
|
|
367 |
<div class="basket_sum_row">
|
|
|
368 |
<div class="title2">
|
4089 |
daniel |
369 |
<?php echo __('Gesamtpreis (Netto)', 'wpsg'); ?>:
|
6330 |
hartmut |
370 |
</div>
|
|
|
371 |
<div class="sum">
|
4089 |
daniel |
372 |
<?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_netto'], $this->get_option('wpsg_currency')); ?>
|
6330 |
hartmut |
373 |
</div>
|
|
|
374 |
</div>
|
|
|
375 |
|
|
|
376 |
<?php foreach ($this->view['basket']['mwst'] as $mwst) { ?>
|
|
|
377 |
<div class="basket_sum_row">
|
|
|
378 |
<div class="title2">
|
6332 |
hartmut |
379 |
<?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), __($mwst['name'], 'wpsg')); ?>:
|
6330 |
hartmut |
380 |
</div>
|
|
|
381 |
<div class="value">
|
|
|
382 |
<?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
|
|
|
383 |
</div>
|
|
|
384 |
</div>
|
1564 |
daniel |
385 |
<?php } ?>
|
6330 |
hartmut |
386 |
<div class="wpsg_spacer"></div>
|
|
|
387 |
<div class="basket_sum_row">
|
|
|
388 |
<div class="title2">
|
4089 |
daniel |
389 |
<?php echo __('Gesamtpreis (Brutto)', 'wpsg'); ?>:
|
6330 |
hartmut |
390 |
</div>
|
|
|
391 |
<div class="sum">
|
4089 |
daniel |
392 |
<?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto'], $this->get_option('wpsg_currency')); ?>
|
6330 |
hartmut |
393 |
</div>
|
|
|
394 |
</div>
|
|
|
395 |
<div class="wpsg_spacer"></div>
|
1067 |
daniel |
396 |
<?php } ?>
|
7486 |
daniel |
397 |
|
|
|
398 |
<?php $this->callMod('wpsg_mod_gutschein', 'basket_row_end_coupon'); ?>
|
|
|
399 |
|
2783 |
daniel |
400 |
<?php $this->callMods('basket_row_end', array(&$this->view)); ?>
|
6338 |
hartmut |
401 |
|
6330 |
hartmut |
402 |
<br />
|
|
|
403 |
<div class="wpsg_spacer"></div>
|
7214 |
daniel |
404 |
|
6330 |
hartmut |
405 |
<?php $this->callMods('basket_inner_prebutton', array(&$this->view)); ?>
|
6338 |
hartmut |
406 |
|
6330 |
hartmut |
407 |
</div>
|
6338 |
hartmut |
408 |
|
4996 |
daniel |
409 |
<input type="hidden" name="wpsg_basket_submit" value="1" />
|
6338 |
hartmut |
410 |
|
3448 |
daniel |
411 |
<input type="submit" class="wpsg_button wpsg_refreshbutton" value="<?php echo __('aktualisieren', 'wpsg'); ?>" name="wpsg_basket_refresh" />
|
6149 |
hartmut |
412 |
<?php if ($this->hasMod('wpsg_mod_onepagecheckout') && ($this->get_option('wpsg_mod_onepagecheckout_basket') == 1)) { ?>
|
|
|
413 |
<?php } else { ?>
|
7214 |
daniel |
414 |
<input type="submit" class="wpsg_button wpsg_checkoutbutton" id="wpsg_basket_submit" value="<?php echo __('zur Kasse', 'wpsg'); ?>" name="wpsg_checkout" />
|
6338 |
hartmut |
415 |
|
6149 |
hartmut |
416 |
<br /><br />
|
7379 |
thomas |
417 |
|
|
|
418 |
<?php /* Weiter-shoppen-Seite (auskommentierte Zeile: Ziel ist die Blogstartseite) */ ?>
|
7593 |
daniel |
419 |
<?php echo wpsg_translate(__('<a href="#1#" class="do_shopping_link">weiter shoppen</a>', 'wpsg'), $this->getURL(wpsg_ShopController::URL_BASKET_MORE)); ?>
|
7379 |
thomas |
420 |
<?php /* <a href="<?php echo WPSG_URL_WP;?>" class="wpsg_basket_weiter_shoppen2"><?php echo __('weiter shoppen', 'wpsg'); ?></a> */?>
|
|
|
421 |
|
6330 |
hartmut |
422 |
<?php } ?>
|
1067 |
daniel |
423 |
<div class="wpsg_clear"></div>
|
6338 |
hartmut |
424 |
|
1144 |
daniel |
425 |
<?php $this->ClearSessionErrors(); ?>
|
6330 |
hartmut |
426 |
|
|
|
427 |
<?php if (!isset($this->view['noFormTag'])) { ?>
|
|
|
428 |
</form>
|
6149 |
hartmut |
429 |
<?php } ?>
|
6338 |
hartmut |
430 |
|
6330 |
hartmut |
431 |
<br />
|
1390 |
daniel |
432 |
<?php $this->callMods('basket_after', array(&$this->view)); ?>
|
7214 |
daniel |
433 |
|
1067 |
daniel |
434 |
<?php } else { ?>
|
|
|
435 |
<p><?php echo __('Keine Produkte im Warenkorb.', 'wpsg'); ?></p>
|
|
|
436 |
<?php } ?>
|
6338 |
hartmut |
437 |
|
1915 |
daniel |
438 |
</div>
|
|
|
439 |
|
5854 |
daniel |
440 |
<script type="text/javascript">/* <![CDATA[ */
|
2742 |
daniel |
441 |
|
5854 |
daniel |
442 |
jQuery(document).ready(function() {
|
2742 |
daniel |
443 |
|
4883 |
daniel |
444 |
jQuery('.wpsg_form_submit_return').bind('keypress', function(e) {
|
4859 |
daniel |
445 |
|
|
|
446 |
var code = e.keyCode || e.which;
|
|
|
447 |
|
|
|
448 |
if (code == 13)
|
|
|
449 |
{
|
|
|
450 |
|
|
|
451 |
jQuery('.wpsg_refreshbutton').click(); return false;
|
6338 |
hartmut |
452 |
|
4859 |
daniel |
453 |
}
|
6338 |
hartmut |
454 |
|
4859 |
daniel |
455 |
} );
|
6338 |
hartmut |
456 |
|
2742 |
daniel |
457 |
jQuery('.wpsg_form_submit').bind('change', function() {
|
6338 |
hartmut |
458 |
|
2742 |
daniel |
459 |
jQuery('.wpsg_refreshbutton').click();
|
6338 |
hartmut |
460 |
|
2742 |
daniel |
461 |
} );
|
|
|
462 |
|
6149 |
hartmut |
463 |
jQuery('#set_land').bind('change', function() {
|
6338 |
hartmut |
464 |
|
6149 |
hartmut |
465 |
land = jQuery('#set_land').val();
|
|
|
466 |
jQuery('#wpsg_land').val(land);
|
6338 |
hartmut |
467 |
|
6149 |
hartmut |
468 |
} );
|
|
|
469 |
|
|
|
470 |
// Land der Rechnungsadresse setzen
|
|
|
471 |
land = jQuery('#set_land').val();
|
|
|
472 |
jQuery('#wpsg_land').val(land);
|
6338 |
hartmut |
473 |
|
5854 |
daniel |
474 |
} );
|
2742 |
daniel |
475 |
|
6338 |
hartmut |
476 |
<?php if (isset($_REQUEST['wpsg_basket_ajax'])) { ?>
|
1915 |
daniel |
477 |
|
3444 |
daniel |
478 |
jQuery(document).ready(function() {
|
6338 |
hartmut |
479 |
|
|
|
480 |
jQuery('.wpshopgermany_widget').load('<?php echo $this->getURL(wpsg_ShopController::URL_WIDGET_AJAX); ?>');
|
|
|
481 |
|
3444 |
daniel |
482 |
} );
|
1915 |
daniel |
483 |
|
3444 |
daniel |
484 |
<?php } ?>
|
6338 |
hartmut |
485 |
|
3444 |
daniel |
486 |
/* ]]> */</script>
|