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