7706 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/*
|
|
|
4 |
* Template für Flächenprodukte im Frontend
|
|
|
5 |
* Angepasstes standard.phtml
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
/** @var wpsg_product $oProduct */
|
|
|
9 |
$oProduct = $this->view['oProduct'];
|
|
|
10 |
|
|
|
11 |
$ap = [
|
|
|
12 |
'set' => intval($oProduct->getMeta('wpsg_mod_printshop_set')),
|
|
|
13 |
'mode' => intval($oProduct->getMeta('wpsg_mod_printshop_mode')),
|
|
|
14 |
'price_unit' => sanitize_text_field($oProduct->getMeta('wpsg_mod_printshop_unit_price')),
|
|
|
15 |
'width' => wpsg_tf($oProduct->getMeta('wpsg_mod_printshop_width')),
|
|
|
16 |
'width_step' => intval($oProduct->getMeta('wpsg_mod_printshop_width_step')),
|
|
|
17 |
'width_min' => intval($oProduct->getMeta('wpsg_mod_printshop_width_min')),
|
|
|
18 |
'width_max' => intval($oProduct->getMeta('wpsg_mod_printshop_width_max')),
|
|
|
19 |
'length_step' => intval($oProduct->getMeta('wpsg_mod_printshop_length_step')),
|
|
|
20 |
'length_min' => intval($oProduct->getMeta('wpsg_mod_printshop_length_min')),
|
|
|
21 |
'length_max' => intval($oProduct->getMeta('wpsg_mod_printshop_length_max'))
|
|
|
22 |
];
|
|
|
23 |
|
|
|
24 |
$this->view['ap'] = $ap;
|
|
|
25 |
|
|
|
26 |
?>
|
|
|
27 |
|
|
|
28 |
<div class="wpsg_produkt_wrapper">
|
|
|
29 |
|
|
|
30 |
<input type="hidden" name="wpsg_post_id" value="<?php echo get_the_ID(); ?>" />
|
|
|
31 |
<input type="hidden" name="titleDisplayed" value="<?php echo $this->titleDisplayed; ?>" />
|
|
|
32 |
|
|
|
33 |
<div class="wpsg_produkt wpsg_product_name">
|
|
|
34 |
|
|
|
35 |
<?php if (!$this->titleDisplayed) { ?>
|
|
|
36 |
<h1 itemprop="name" class="wpsg_producttitle"><?php echo $this->getProductName($this->view['data']['id']); ?></h1>
|
|
|
37 |
<h2 itemprop="detailname" class="wpsg_productdetailtitle"><?php echo $this->view['data']['detailname']; ?></h2>
|
|
|
38 |
<?php } ?>
|
|
|
39 |
|
|
|
40 |
<?php $this->callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
|
|
|
41 |
|
|
|
42 |
</div>
|
|
|
43 |
|
|
|
44 |
<?php $this->callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
|
|
|
45 |
|
|
|
46 |
<div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
|
|
|
47 |
|
|
|
48 |
<?php /* Block für die Produktbilder START */ ?>
|
|
|
49 |
<?php
|
|
|
50 |
|
|
|
51 |
/* Das ist das primäre Anzeigebild des Produktes (AttachmentID) */
|
|
|
52 |
$arAttachmentID = $this->imagehandler->getAttachmentID($this->view['data']['product_key']);
|
|
|
53 |
|
|
|
54 |
/* Array mit allen AttachmentIDs der Produktbilder */
|
|
|
55 |
$arAttachmentIDsAll = $this->imagehandler->getAttachmentIDs($this->view['data']['product_id']);
|
|
|
56 |
|
|
|
57 |
?>
|
|
|
58 |
|
|
|
59 |
<?php if (wpsg_isSizedArray($arAttachmentIDsAll)) { ?>
|
|
|
60 |
<div class="wpsg_productimages">
|
|
|
61 |
|
|
|
62 |
<div class="wpsg_produkt_produktbilder">
|
|
|
63 |
|
|
|
64 |
<?php if (sizeof($arAttachmentIDsAll) > 0) { for ($i = 0; $i < sizeof($arAttachmentIDsAll); $i ++) { ?>
|
|
|
65 |
|
|
|
66 |
<?php /* URL für die Lightbox */ ?>
|
|
|
67 |
<?php $att = wp_get_attachment_image_src($arAttachmentIDsAll[$i], array(800, 600), false); ?>
|
|
|
68 |
|
|
|
69 |
<a <?php if ($arAttachmentIDsAll[$i] != $arAttachmentID) echo 'style="display:none;"'; ?> rel="gallery-wpsg-<?php echo $this->getTemplateIndex(); ?>" title="<?php echo $this->getProductName($this->view['data']['id']); ?>" href="<?php echo $att[0]; ?>" class="thickbox">
|
|
|
70 |
|
|
|
71 |
<?php echo wp_get_attachment_image($arAttachmentIDsAll[$i], array(300, 300), false, array()); ?>
|
|
|
72 |
|
|
|
73 |
</a>
|
|
|
74 |
|
|
|
75 |
<?php } } ?>
|
|
|
76 |
|
|
|
77 |
</div>
|
|
|
78 |
|
|
|
79 |
</div>
|
|
|
80 |
<?php } ?>
|
|
|
81 |
<?php /* Block für die Produktbilder ENDE */ ?>
|
|
|
82 |
|
|
|
83 |
<?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
|
|
|
84 |
<div class="wpsg_artikelnummer">
|
|
|
85 |
<?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span><br />
|
|
|
86 |
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_ean'))) {?>
|
|
|
87 |
<?php echo __('EAN','wpsg');?>:<span class="wpsg_ean"><?php echo wpsg_hspc($this->view['data']['ean']); ?></span><br />
|
|
|
88 |
<?php } ?>
|
|
|
89 |
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_gtin'))) {?>
|
|
|
90 |
<?php echo __('GTIN','wpsg');?>:<span class="wpsg_gtin"><?php echo wpsg_hspc($this->view['data']['gtin']); ?></span><br />
|
|
|
91 |
<?php }?></div>
|
|
|
92 |
<?php } ?>
|
|
|
93 |
|
|
|
94 |
<?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt START*/ ?>
|
|
|
95 |
<?php if ($this->view['oProduct']->canDisplayPrice()) { ?>
|
|
|
96 |
|
|
|
97 |
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
|
|
|
98 |
|
|
|
99 |
<meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
|
|
|
100 |
|
|
|
101 |
<?php echo wpsg_translate(__('Preis je #1#²:', 'wpsg'), $ap['price_unit']); ?>
|
|
|
102 |
|
|
|
103 |
<?php $oldPrice = $this->view['oProduct']->getOldPrice(); ?>
|
|
|
104 |
|
|
|
105 |
<?php if ($oldPrice !== false && $oldPrice != $this->view['oProduct']->getPrice($this->view['data']['product_key'])) { ?>
|
|
|
106 |
<span class="wpsg_mod_productview_price wpsg_mod_productview_current"><?php echo wpsg_ff($this->view['oProduct']->getPrice($this->view['data']['product_key']), $this->get_option('wpsg_currency')); ?></span>
|
|
|
107 |
<span class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $this->get_option('wpsg_currency')); ?></span>
|
|
|
108 |
<?php } else { ?>
|
|
|
109 |
<span class="wpsg_mod_productview_price"><?php echo wpsg_ff($this->view['oProduct']->getPrice($this->view['data']['product_key']), $this->get_option('wpsg_currency')); ?></span>
|
|
|
110 |
<?php } ?>
|
|
|
111 |
|
|
|
112 |
</div>
|
|
|
113 |
|
|
|
114 |
<?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
|
|
|
115 |
|
|
|
116 |
<div class="wpsg_produkt_preishinweis">
|
|
|
117 |
<?php echo wpsg_translate(__('#2# zzgl. #1#', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>', '<a href="#kkhint" title="'.wpsg_hspc($this->get_option('wpsg_kleinunternehmer_text')).'">Endpreis</a>'); ?>
|
|
|
118 |
</div>
|
|
|
119 |
|
|
|
120 |
<?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
|
|
|
121 |
|
|
|
122 |
<div class="wpsg_produkt_preishinweis">
|
|
|
123 |
<?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
|
|
|
124 |
<?php if ($this->hasMod('wpsg_mod_freeshipping') && $this->get_option('wpsg_mod_freeshipping_aktiv') == '1') { /* Versandkostenfrei aktiv */?>
|
|
|
125 |
|
|
|
126 |
<?php if ($this->get_option('wpsg_mod_freeshipping_minvalue') > 0) { ?>
|
|
|
127 |
<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und <a href="#3#">ab #2# € versandkostenfrei</a>)', 'wpsg'),
|
|
|
128 |
wpsg_ff($this->view['data']['mwst_value']),
|
|
|
129 |
wpsg_ff($this->get_option('wpsg_mod_freeshipping_minvalue')),
|
|
|
130 |
$this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)
|
|
|
131 |
); ?>
|
|
|
132 |
<?php } else { ?>
|
|
|
133 |
<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und versandkostenfrei)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value'])); ?>
|
|
|
134 |
<?php } ?>
|
|
|
135 |
|
|
|
136 |
<?php } else { ?>
|
|
|
137 |
<?php echo wpsg_translate(__('(zzgl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
|
|
|
138 |
<?php }?>
|
|
|
139 |
<?php } else { /* Frontend = BRUTTO Preise */ ?>
|
|
|
140 |
<?php if ($this->hasMod('wpsg_mod_freeshipping') && $this->get_option('wpsg_mod_freeshipping_aktiv') == '1') { /* Versandkostenfrei aktiv */ ?>
|
|
|
141 |
|
|
|
142 |
<?php if ($this->get_option('wpsg_mod_freeshipping_minvalue') > 0) { ?>
|
|
|
143 |
<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und <a href="#3#">ab #2# € versandkostenfrei</a>)', 'wpsg'),
|
|
|
144 |
wpsg_ff($this->view['data']['mwst_value']),
|
|
|
145 |
wpsg_ff($this->get_option('wpsg_mod_freeshipping_minvalue')),
|
|
|
146 |
$this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN)
|
|
|
147 |
); ?>
|
|
|
148 |
<?php } else { ?>
|
|
|
149 |
<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und versandkostenfrei)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value'])); ?>
|
|
|
150 |
<?php } ?>
|
|
|
151 |
|
|
|
152 |
<?php } else { ?>
|
|
|
153 |
<?php echo wpsg_translate(__('(inkl. #1#% MwSt. und zzgl. #2#)', 'wpsg'), wpsg_ff($this->view['data']['mwst_value']), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'</a>'); ?>
|
|
|
154 |
<?php }?>
|
|
|
155 |
<?php } ?>
|
|
|
156 |
</div>
|
|
|
157 |
|
|
|
158 |
<?php } ?>
|
|
|
159 |
|
|
|
160 |
<?php } else {?>
|
|
|
161 |
|
|
|
162 |
<?php echo wpsg_translate(__('Die Produktpreise werden nur eingeloggten Benutzern angezeigt. Loggen Sie sich <a href="'.$this->getURL(wpsg_ShopController::URL_PROFIL).'">hier</a> bitte ein, um zu bestellen.')); ?>
|
|
|
163 |
|
|
|
164 |
<?php }?>
|
|
|
165 |
<?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt ENDE */ ?>
|
|
|
166 |
|
|
|
167 |
<div itemprop="description" class="wpsg_produkt_shortdescription">
|
|
|
168 |
|
|
|
169 |
<span><?php echo $this->view['data']['shortdesc']; ?></span>
|
|
|
170 |
|
|
|
171 |
</div>
|
|
|
172 |
|
|
|
173 |
<div class="wpsg_clear"></div>
|
|
|
174 |
|
|
|
175 |
<?php /* Lagerbestand START*/?>
|
|
|
176 |
<?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?>
|
|
|
177 |
|
|
|
178 |
<div class="wpsg_mod_produktindex_stock">
|
|
|
179 |
|
|
|
180 |
<?php if (($this->view['data']['stock']) > '0') {?>
|
|
|
181 |
|
|
|
182 |
<label><?php echo __('Lagerbestand', 'wpsg'); ?></label>
|
|
|
183 |
<?php echo wpsg_translate(__('#1# Artikel auf Lager','wpsg'), $this->view['data']['stock']); ?>
|
|
|
184 |
|
|
|
185 |
<?php } else { ?>
|
|
|
186 |
|
|
|
187 |
<label><?php echo wpsg_translate(__('', 'wpsg')); ?></label>
|
|
|
188 |
|
|
|
189 |
<?php } ?>
|
|
|
190 |
|
|
|
191 |
</div>
|
|
|
192 |
<?php } ?>
|
|
|
193 |
<?php /* Lagerbestand ENDE*/?>
|
|
|
194 |
|
|
|
195 |
<?php /* Füllmengenanzeige START */ ?>
|
|
|
196 |
<?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
|
|
|
197 |
|
|
|
198 |
<div class="wpsg_produkt_fuellmenge">
|
|
|
199 |
|
|
|
200 |
<?php if (($this->view['data']['fmenge']) > '0') { ?>
|
|
|
201 |
|
|
|
202 |
<span class="label label_fuellmenge"><?php echo wpsg_translate(__('Füllmenge:', 'wpsg')); ?></span>
|
|
|
203 |
|
|
|
204 |
<?php echo wpsg_translate(__('#1# (#2# / #3#)', 'wpsg'),
|
|
|
205 |
'<span class="wpsg_fmenge">'.wpsg_ff($this->view['data']['fmenge'], '', true).'</span> '.$this->view['data']['feinheit'],
|
|
|
206 |
'<span class="fmenge_preis">'.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).'</span> ',
|
|
|
207 |
wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
|
|
|
208 |
); ?>
|
|
|
209 |
|
|
|
210 |
<?php } else { ?>
|
|
|
211 |
|
|
|
212 |
<label><?php echo wpsg_translate(__('', 'wpsg')); ?></label>
|
|
|
213 |
|
|
|
214 |
<?php } ?>
|
|
|
215 |
|
|
|
216 |
</div>
|
|
|
217 |
|
|
|
218 |
<?php } ?>
|
|
|
219 |
<?php /* Füllmengenanzeige ENDE */ ?>
|
|
|
220 |
|
|
|
221 |
<?php /* Gewichtsanzeige START */ ?>
|
|
|
222 |
<?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
|
|
|
223 |
<div class="wpsg_mod_weight_produkt">
|
|
|
224 |
|
|
|
225 |
<?php if (($this->view['data']['weight']) > '0') { ?>
|
|
|
226 |
<span class="label label_weight"><?php echo wpsg_translate(__('Gewicht:', 'wpsg')); ?></span>
|
|
|
227 |
<?php echo wpsg_translate(__('#1# #2#', 'wpsg'), '<span class="wpsg_weight" id="weight_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'</span>', $this->get_option('wpsg_mod_weight_unit')); ?>
|
|
|
228 |
<?php } else { ?>
|
|
|
229 |
<label><?php wpsg_translate(__('', 'wpsg'))?></label>
|
|
|
230 |
<?php } ?>
|
|
|
231 |
</div>
|
|
|
232 |
<?php } ?>
|
|
|
233 |
<?php /* Gewichtsanzeige ENDE */ ?>
|
|
|
234 |
|
|
|
235 |
<?php /* Lieferzeit Anzeige START */ ?>
|
|
|
236 |
<?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
|
|
|
237 |
|
|
|
238 |
<?php /* Produkt nur im Store, nicht im Onlineshop vorhanden */ ?>
|
|
|
239 |
<?php if ($this->callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($this->view['data']['product_key']))) { ?>
|
|
|
240 |
|
|
|
241 |
<div class="wpsg_product_only_store"><?php echo __($this->callMod('wpsg_mod_deliverytime', 'displayStoreText', array($this->view['data']['product_key']))); ?></div>
|
|
|
242 |
|
|
|
243 |
<?php $stl = 0; $stl = $this->callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($this->view['data']['product_key'])) ?>
|
|
|
244 |
<?php if (wpsg_isSizedInt($stl)) { ?>
|
|
|
245 |
|
|
|
246 |
<a href="<?php echo get_permalink($stl); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
|
|
|
247 |
|
|
|
248 |
<?php } ?>
|
|
|
249 |
|
|
|
250 |
<?php } else { ?>
|
|
|
251 |
|
|
|
252 |
<?php $strDelayNote = $this->callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?>
|
|
|
253 |
<?php if (wpsg_isSizedString($strDelayNote)) { ?>
|
|
|
254 |
|
|
|
255 |
<div class="wpsg_mod_deliverytime_offline">
|
|
|
256 |
|
|
|
257 |
<div class="wpsg_mod_deliverytime_delay"><?php echo wpsg_hspc($strDelayNote); ?></div>
|
|
|
258 |
|
|
|
259 |
</div>
|
|
|
260 |
|
|
|
261 |
<?php } else { ?>
|
|
|
262 |
|
|
|
263 |
<div class="wpsg_mod_deliverytime">
|
|
|
264 |
<span class="label label_deliverytime"><?php echo wpsg_translate(__('Lieferzeit:', 'wpsg')); ?></span>
|
|
|
265 |
<?php echo $this->callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?>
|
|
|
266 |
</div>
|
|
|
267 |
|
|
|
268 |
<?php } ?>
|
|
|
269 |
|
|
|
270 |
<?php } ?>
|
|
|
271 |
|
|
|
272 |
<?php } ?>
|
|
|
273 |
<?php /* Lieferzeit Anzeige ENDE */ ?>
|
|
|
274 |
|
|
|
275 |
<?php /* Produktkurzbeschreibung START */ ?>
|
|
|
276 |
<div class="wpsg_product_informationarea">
|
|
|
277 |
|
|
|
278 |
<?php if (strlen(trim($this->view['data']['beschreibung'])) > 0) { ?>
|
|
|
279 |
<div class="wpsg_product_information_short">
|
|
|
280 |
<div class="wpsg_produkt_additional_information">
|
|
|
281 |
<div itemprop="description" class="wpsg_produkt_shortdescription">
|
|
|
282 |
<span><?php echo $this->view['data']['beschreibung']; ?></span>
|
|
|
283 |
</div>
|
|
|
284 |
</div>
|
|
|
285 |
</div>
|
|
|
286 |
<?php } ?>
|
|
|
287 |
|
|
|
288 |
</div>
|
|
|
289 |
<?php /* Produktkurzbeschreibung ENDE */ ?>
|
|
|
290 |
|
|
|
291 |
<?php /* Varianten START */ ?>
|
|
|
292 |
<div class="wpsg_produkt_varianten">
|
|
|
293 |
<?php echo $this->callMod('wpsg_mod_productvariants', 'renderTemplate', array($this->view['data']['product_key'])); ?>
|
|
|
294 |
</div>
|
|
|
295 |
<?php /* Varianten ENDE */ ?>
|
|
|
296 |
|
|
|
297 |
<?php $this->callMods('product_bottom', array(&$this->view['data']['product_key'], $this->getTemplateIndex())); ?>
|
|
|
298 |
|
|
|
299 |
<?php /* Flächenprodukt */ ?>
|
|
|
300 |
<?php if ($ap['set'] === 1) { ?>
|
|
|
301 |
<?php $this->render(WPSG_PATH_VIEW.'mods/mod_printshop/product.phtml'); ?>
|
|
|
302 |
<?php } ?>
|
|
|
303 |
|
|
|
304 |
<div class="wpsg_product_buttonarea">
|
|
|
305 |
<div class="wpsg_product_buttons_add_basket">
|
|
|
306 |
<?php if ($this->view['oProduct']->canOrder()) { ?>
|
|
|
307 |
<div class="wpsg_produkt_add_basket_wrapper">
|
|
|
308 |
|
|
|
309 |
<label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?></label>
|
|
|
310 |
|
|
|
311 |
<input type="text" value="<?php echo ((wpsg_isSizedInt($this->view['data']['menge']))?$this->view['data']['menge']:'1'); ?>" name="wpsg[menge]" class="wpsg_menge" id="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>" <?php echo (($this->view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> />
|
|
|
312 |
|
|
|
313 |
<?php /* Urlaubsmodus aktiv */ ?>
|
|
|
314 |
<?php if ($this->hasMod('wpsg_mod_deliverytime') && ($this->get_option('wpsg_mod_deliverytime_holiday') == '1')) { ?>
|
|
|
315 |
|
|
|
316 |
<?php if ($this->callMod('wpsg_mod_deliverytime', 'holiday', array($this->view['data']['product_key']))) { ?>
|
|
|
317 |
|
|
|
318 |
<div class="wpsg_product_deliverytime_holiday" style="height:50px; padding:10px; width:50%; float:right; border:1px solid #ff0000;">
|
|
|
319 |
|
|
|
320 |
<?php echo __($this->callMod('wpsg_mod_deliverytime', 'displayHolidaytext', array($this->view['data']['product_key']))); ?>
|
|
|
321 |
|
|
|
322 |
</div>
|
|
|
323 |
|
|
|
324 |
<?php } ?>
|
|
|
325 |
|
|
|
326 |
<?php } else {?>
|
|
|
327 |
|
|
|
328 |
<input class="wpsg_button wpsg_add_basket wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>" type="submit" value="<?php echo __('In den Warenkorb', 'wpsg'); ?>" name="wpsg[submit]" />
|
|
|
329 |
|
|
|
330 |
<?php } ?>
|
|
|
331 |
|
|
|
332 |
<?php if (in_array($this->get_option('wpsg_afterinsert'), array('2', '3'))) { ?>
|
|
|
333 |
<script type="text/javascript">
|
|
|
334 |
|
|
|
335 |
jQuery(document).ready(function() {
|
|
|
336 |
|
|
|
337 |
jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
|
|
|
338 |
|
|
|
339 |
wpsg_blockProductTemplate(<?php echo $this->getTemplateIndex(); ?>);
|
|
|
340 |
|
|
|
341 |
jQuery.ajax( {
|
|
|
342 |
url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
|
|
|
343 |
data: {
|
|
|
344 |
'wpsg_form_data': jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
|
|
|
345 |
'wpsg[ajax]': '1',
|
|
|
346 |
'wpsg[submit]': '1'
|
|
|
347 |
},
|
|
|
348 |
success: function(data) {
|
|
|
349 |
|
|
|
350 |
wpsg_refreshBasketWidget();
|
|
|
351 |
|
|
|
352 |
<?php if ($this->get_option('wpsg_afterinsert') == '2') { ?>
|
|
|
353 |
|
|
|
354 |
tb_show('<?php echo __('Ihr Warenkorb', 'wpsg'); ?>', '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET_AJAX); ?>&height=500');
|
|
|
355 |
|
|
|
356 |
<?php } else { ?>
|
|
|
357 |
|
|
|
358 |
jQuery('body').append(data);
|
|
|
359 |
|
|
|
360 |
<?php } ?>
|
|
|
361 |
|
|
|
362 |
wpsg_unblockProductTemplate(<?php echo $this->getTemplateIndex(); ?>);
|
|
|
363 |
|
|
|
364 |
}
|
|
|
365 |
} );
|
|
|
366 |
|
|
|
367 |
return false;
|
|
|
368 |
|
|
|
369 |
} );
|
|
|
370 |
|
|
|
371 |
} );
|
|
|
372 |
|
|
|
373 |
</script>
|
|
|
374 |
<?php } ?>
|
|
|
375 |
|
|
|
376 |
</div>
|
|
|
377 |
<?php } ?>
|
|
|
378 |
</div>
|
|
|
379 |
</div>
|
|
|
380 |
|
|
|
381 |
<div class="wpsg_clear"></div>
|
|
|
382 |
|
|
|
383 |
<?php if ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?>
|
|
|
384 |
<label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?></label>
|
|
|
385 |
<input type="text" value="<?php echo ((wpsg_isSizedInt($this->view['data']['menge']))?$this->view['data']['menge']:'1'); ?>" name="wpsg[menge]" class="wpsg_menge" id="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>" <?php echo (($this->view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> />
|
|
|
386 |
|
|
|
387 |
<input class="wpsg_button wpsg_add_requestlist" id="wpsg_add_requestlist_<?php echo $this->getTemplateIndex(); ?>" type="submit" value="<?php echo __('Auf die Anfrageliste', 'wpsg'); ?>" name="wpsg[submit_request]" />
|
|
|
388 |
<?php } ?>
|
|
|
389 |
|
|
|
390 |
<?php /* Produktlangbeschreibung START */ ?>
|
|
|
391 |
<div class="wpsg_product_informationarea">
|
|
|
392 |
|
|
|
393 |
<?php if (strlen(trim($this->view['data']['longdescription'])) > 0) { ?>
|
|
|
394 |
<div class="wpsg_product_information_large">
|
|
|
395 |
<div class="wpsg_produkt_additional_information">
|
|
|
396 |
<div itemprop="description" class="wpsg_produkt_longdescription">
|
|
|
397 |
<span><?php echo $this->view['data']['longdescription']; ?></span>
|
|
|
398 |
</div>
|
|
|
399 |
</div>
|
|
|
400 |
</div>
|
|
|
401 |
<?php } ?>
|
|
|
402 |
|
|
|
403 |
</div>
|
|
|
404 |
<?php /* Produktlangbeschreibung ENDE */ ?>
|
|
|
405 |
|
|
|
406 |
<?php /* zusätzliche Informationen START */ ?>
|
|
|
407 |
<div class="wpsg_product_informationarea">
|
|
|
408 |
|
|
|
409 |
<?php if (strlen(trim($this->view['data']['moreinfos'])) > 0) { ?>
|
|
|
410 |
<div class="wpsg_product_information_large">
|
|
|
411 |
<div class="wpsg_produkt_additional_information">
|
|
|
412 |
<div itemprop="description" class="wpsg_produkt_moreinfos">
|
|
|
413 |
<span><?php echo $this->view['data']['moreinfos']; ?></span>
|
|
|
414 |
</div>
|
|
|
415 |
</div>
|
|
|
416 |
</div>
|
|
|
417 |
<?php } ?>
|
|
|
418 |
|
|
|
419 |
</div>
|
|
|
420 |
<?php /* zusätzliche Informationen ENDE */ ?>
|
|
|
421 |
|
|
|
422 |
<?php /* zusätzliche Lieferumfang START */ ?>
|
|
|
423 |
<div class="wpsg_product_informationarea">
|
|
|
424 |
|
|
|
425 |
<?php if (strlen(trim($this->view['data']['moreinfos2'])) > 0) { ?>
|
|
|
426 |
<div class="wpsg_product_information_large">
|
|
|
427 |
<div class="wpsg_produkt_additional_information">
|
|
|
428 |
<div itemprop="description" class="wpsg_produkt_moreinfos2">
|
|
|
429 |
<span><?php echo $this->view['data']['moreinfos2']; ?></span>
|
|
|
430 |
</div>
|
|
|
431 |
</div>
|
|
|
432 |
</div>
|
|
|
433 |
<?php } ?>
|
|
|
434 |
|
|
|
435 |
</div>
|
|
|
436 |
<?php /* zusätzliche Lieferumfang ENDE */ ?>
|
|
|
437 |
|
|
|
438 |
<div class="wpsg_clear"></div>
|
|
|
439 |
|
|
|
440 |
<?php /* Social Media Integration */ ?>
|
|
|
441 |
<div class="wpsg_product_social_media">
|
|
|
442 |
<?php if (is_plugin_active('plugin-directory/shariff.php')) {?>
|
|
|
443 |
<?php echo do_shortcode('[shariff]')?>
|
|
|
444 |
<?php } ?>
|
|
|
445 |
</div>
|
|
|
446 |
|
|
|
447 |
</div>
|
|
|
448 |
|
|
|
449 |
</div>
|