diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/admin/ueber.phtml | 2 | ||||
| -rw-r--r-- | views/css/frontend.css | 153 | ||||
| -rw-r--r-- | views/js/frontend.js | 22 | ||||
| -rw-r--r-- | views/mods/mod_productvariants/frontend.js | 86 | ||||
| -rw-r--r-- | views/mods/mod_produktbilder/settings_edit.phtml | 6 | ||||
| -rw-r--r-- | views/produkttemplates/bildertest.phtml | 42 | ||||
| -rw-r--r-- | views/produkttemplates/produktseite.phtml | 135 | ||||
| -rw-r--r-- | views/produkttemplates/standard.phtml | 527 | ||||
| -rw-r--r-- | views/produkttemplates/standard2.phtml | 210 | ||||
| -rw-r--r-- | views/produkttemplates/standard_1544.phtml | 435 | ||||
| -rw-r--r-- | views/produkttemplates/standard_ajax.phtml | 196 | ||||
| -rw-r--r-- | views/produkttemplates/standard_alt.phtml | 327 | ||||
| -rw-r--r-- | views/produkttemplates/standard_login.phtml | 177 | ||||
| -rw-r--r-- | views/produkttemplates/standard_mt.phtml | 341 | ||||
| -rw-r--r-- | views/warenkorb/ajaxDialog.phtml | 217 | ||||
| -rw-r--r-- | views/warenkorb/basket.phtml | 50 | ||||
| -rw-r--r-- | views/warenkorb/messageDialog.phtml | 42 |
17 files changed, 463 insertions, 2505 deletions
diff --git a/views/admin/ueber.phtml b/views/admin/ueber.phtml index b3f5986..7d2398a 100644 --- a/views/admin/ueber.phtml +++ b/views/admin/ueber.phtml @@ -84,7 +84,7 @@ <p><?php echo __('Es wurden noch keine Systemfehler aufgezeichnet.', 'wpsg'); ?></p>
<?php } else { ?>
- <textarea style="width:875px; overflow-y:scroll; height:500px; font-size:12px; font-family:Courier;"><?php echo file_get_contents($GLOBALS['wpsg_sc']->getStorageRoot().'exception.log'); ?></textarea>
+ <textarea style="white-space:nowrap; width:875px; overflow-y:scroll; height:500px; font-size:12px; font-family:Courier;"><?php echo file_get_contents($GLOBALS['wpsg_sc']->getStorageRoot().'exception.log'); ?></textarea>
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=ueber&subaction=clearSysLog&noheader=1" class="button"><?php echo __('Protokolldatei löschen', 'wpsg'); ?></a>
diff --git a/views/css/frontend.css b/views/css/frontend.css index 9d43c77..af7cda9 100644 --- a/views/css/frontend.css +++ b/views/css/frontend.css @@ -3,9 +3,13 @@ /* Allgemein */
.wpsg_clear { clear:both; }
#wpsg_error, #wpsg_message { margin-bottom:1rem; }
-#wpsg_message p, #wpsg_error p, #wpsg_notice p { background-color:#FAFAFA; margin-bottom:4px; padding:3px 0px 3px 8px; }
+#wpsg_message li, #wpsg_error li, #wpsg_notice li,
+#wpsg_message p, #wpsg_error p, #wpsg_notice p { margin-bottom:4px; padding:3px 0px 3px 8px; }
+#wpsg_message li,
#wpsg_message p { border-left:4px solid #7AD03A; }
+#wpsg_notice li,
#wpsg_notice p { border-left:4px solid #FDF60A; }
+#wpsg_error li,
#wpsg_error p { border-left:4px solid #DD3D36; }
.wpsg_error { border-color:#DD3D36; }
.wpsg { }
@@ -15,43 +19,20 @@ label.wpsg_error { position:absolute; right:2px; top:-2px; color:#DD3D36; } input.wpsg_error { border-color:red !important; }
.wpsg_spacer { width:100%; height:1px; background-color:#EAEAEA; margin-bottom:1rem; }
.wpsg_noscroll { overflow:hidden; }
-#TB_ajaxContent { width:100% !important; }
.wpsg_upper { vertical-align:top; font-size:60%; }
-
/* Basket Widget */
.wpsg_basket_widget .wpshopgermany_linktokasse { float:right; margin-top:1rem; }
/* Basket */
-.wpsg_basket { margin-bottom:1rem; }
-.wpsg_basket h2 { }
-.wpsg_basket table { margin-top:1rem; width:100%; }
-.wpsg_basket table th { }
-.wpsg_basket .wpsg_basket_removelink { text-decoration:none; border:0px !important; }
-.wpsg_basket .wpsg_cell_number { padding-left:0.3rem; padding-right:0.3rem; text-align:center; min-width:20px; }
-.wpsg_basket .wpsg_cell_number img { max-width:auto !important; display:inline-block; }
-.wpsg_basket .wpsg_cell_menge { text-align:center; }
-.wpsg_basket .wpsg_cell_menge input { text-align:center; }
-.wpsg_basket .wpsg_cell_preis { text-align:right; }
-.wpsg_basket .wpsg_cell_gesamtpreis { text-align:right; }
-.wpsg_basket .wpsg_cell_summe_value { text-align:right; }
-.wpsg_basket .wpsg_cell_shipping_value { text-align:right; }
-.wpsg_basket .wpsg_cell_shipping_label select,
-.wpsg_basket .wpsg_cell_shipping_label span { float:right; width:150px;clear:right; }
-.wpsg_basket .wpsg_cell_shipping_label select.set_shipping { margin-bottom:5px; }
-.wpsg_basket .wpsg_cell_payment_label select,
-.wpsg_basket .wpsg_cell_payment_label span { float:right; width:150px; }
-.wpsg_basket .wpsg_cell_payment_value { text-align:right; }
-.wpsg_basket .wpsg_cell_gesamtsumme_value { text-align:right; }
-.wpsg_basket .wpsg_cell_deliverytime_value { text-align:right; }
-.wpsg_basket .wpsg_cell_name { vertical-align:middle; }
-.wpsg_basket .wpsg_cell_name .wpsg_basket_productimage { display:inline; padding-right:0.2rem; vertical-align:baseline; }
-.wpsg_basket .wpsg_cell_mwst { text-align:center; min-width:60px; }
-.wpsg_basket .wpsg_cell_mwst_value { text-align:right; }
-.wpsg_basket .wpsg_cell_weight_value { text-align:right; }
-.wpsg_basket .wpsg_checkoutbutton { float:right; }
-.wpsg_basket .wpsg_cell_gesamtsumme_value { font-weight:bold; }
-.wpsg_basket .wpsg_refreshbutton, .wpsg_basketbutton { float:left; }
+.basket_product_wrap {}
+.basket_product_wrap .basket_product_row { display:flex; align-items:top; border-bottom:1px solid #EAEAEA; padding-bottom:1em; margin-bottom:1em; }
+.basket_product_wrap .basket_product_row .product_shortdesc { margin-top:0.5em; }
+.basket_product_wrap .basket_product_row .productimage { max-width:150px; padding-right:0.75em; }
+.basket_product_wrap .basket_product_row .product_content { width:100%; display:flex; flex-direction:column; justify-content:space-between; }
+.basket_product_wrap .basket_product_row .product_action { display:flex; width:100%; justify-content:space-between; align-items:center; }
+.basket_product_wrap .basket_product_row .product_action .amount { margin-top:0.5em; margin-bottom:0.5em; }
+.basket_product_wrap .basket_product_row .product_action .price_total { font-weight:bold; }
/* Checkout + Request*/
.wpsg_checkout .wpsg_checkoutblock { width:100%; clear:both; margin-bottom:2px; position:relative; width:100%; }
@@ -116,9 +97,6 @@ input.wpsg_error { border-color:red !important; } /* Bestellvariablen */
.wpsg_checkout .wpsg_mod_ordervars_field { display:inline; }
-/* Produktvariablen */
-.wpsg_basket .wpsg_basket_productvars input[type="text"], .wpsg_basket .wpsg_basket_productvars select { width:100%; }
-
/* Profilseite */
.wpsg_profil .wpsg_pwdvergessen_link { line-height:30px; }
.wpsg_profil .wpsg_mod_kundenverwaltung_login, .wpsg_checkout .wpsg_mod_kundenverwaltung_login { float:right; }
@@ -142,33 +120,37 @@ input.wpsg_error { border-color:red !important; } .wpsg_checkout .wpsg_mod_shippingadress { margin-bottom:1rem; }
/* Produkttemplate */
-.wpsg_produkt_wrapper { margin:5px -10px 5px -10px; padding:10px; width:100%; line-height:1.5em; box-sizing:content-box; }
-.wpsg_produkt_wrapper .wpsg_produkt_produktbilder { float:left; margin-right:1rem; margin-bottom:1rem; }
-.wpsg_produkt_wrapper .wpsg_product_afterimage { }
-.wpsg_produkt_wrapper .wpsg_product_afterimage .wpsg_producttitle { clear:none; }
-.wpsg_produkt_wrapper .wpsg_add_basket { margin:1rem 0; float:right; }
-.wpsg_produkt_wrapper .wpsg_produkt_add_basket_wrapper { clear:both; float:left; margin:1rem 0 0 0; }
-.wpsg_produkt_wrapper .wpsg_label { display:inline; }
-.wpsg_produkt_wrapper .wpsg_value { display:inline; }
-.wpsg_produkt_wrapper .wpsg_preis_prediscount { text-decoration: line-through; }
-.wpsg_produkt_wrapper .wpsg_menge { width:auto; }
.wpsg_productform { position:relative; }
-.wpsg_productform .wpsg_product_layer { z-index:1000; background-color:rgba(125, 125, 125, 0.5); position:absolute; left:-10px; top:-10px; width:100%; height:100%; padding:20px; }
-.wpsg_productform .wpsg_product_layer img { position:absolute; left:50%; top:50%; margin-left:-8px; margin-top:-5.5px; }
-
-/* Ajax Meldung über das Produkttemplate */
-#wpsg_basket_ajax_message { z-index:2000; position:absolute; top:55px; width:100%; position:fixed; }
-#wpsg_basket_ajax_message .wpsg_basket_ajax_message_content {
- width:800px; margin:auto; background-color:white; padding:25px; text-align:center;
- -webkit-border-radius:15px;
- -moz-border-radius:15px;
- border-radius:15px;
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_productimages { float:left; margin-right:0.75em; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_produkt_preishinweis { font-size:0.75em; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_mod_productview_oldprice { text-decoration:line-through; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_mod_productview_price { font-weight:bold; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_produkt_shortdescription { margin-top:0.75em; margin-bottom:0.75em; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_product_only_store { margin-top:0.75em; margin-bottom:0.75em; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_mod_productvariants_product_wrap { margin-top:0.75em; margin-bottom:0.75em; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_mod_productvariants_product_wrap select,
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_mod_productvariants_product_wrap input { width:100%; box-sizing:border-box; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_product_informationarea { margin-top:1.5em; margin-bottom:1.5em; }
+.wpsg_productform .wpsg_produkt_wrapper label { font-weight:bold; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_product_buttonarea input[type="text"] { width:48%; float:left; box-sizing:border-box; padding:0.7em; line-height:1.5em; font-size:1rem; }
+.wpsg_productform .wpsg_produkt_wrapper .wpsg_product_buttonarea input[type="submit"] { width:48%; float:right; box-sizing: border-box; padding:0.7em; line-height:1.5em; font-size:1rem; border:1px solid transparent; border-radius:3px; }
+.wpsg_productform .wpsg_product_layer { position:absolute; left:0px; top:0px; width:100%; height:100%; background-color:rgba(0, 0, 0, 0.25); padding:0.75em; margin:-0.75em; box-sizing:content-box; }
+.wpsg_productform .wpsg_product_layer img { position:absolute; left:50%; margin-left:-8px; top:50%; margin-top:-5px; }
+.wpsg_productform .wpsg_produkt_produktbilder { max-width:200px; }
+
+@media (max-width:400px) {
+
+ .wpsg_productform .wpsg_produkt_wrapper .wpsg_product_buttonarea input[type="text"] { width:28%; }
+ .wpsg_productform .wpsg_produkt_wrapper .wpsg_product_buttonarea input[type="submit"] { width:68%; }
+
+}
+
+@media (max-width:600px) {
+
+ .wpsg_productform .wpsg_productimages { width:100%; }
+ .wpsg_productform .wpsg_produkt_produktbilder { max-width:100%; }
+
}
-#wpsg_basket_ajax_layer { z-index:199; position:absolute; left:0px; top:0px; width:100%; height:100%; background-color:rgba(0, 0, 0, 0.75); position:fixed; }
-#wpsg_basket_ajax_message .wpsg_basket_ajax_message_content_success { color:green; }
-#wpsg_basket_ajax_message .wpsg_button_continue_shopping { float:left; }
-#wpsg_basket_ajax_message .wpsg_button_basket { float:right; }
-#wpsg_basket_ajax_message .wpsg_button_wrap { margin-top:4rem; }
/* Varianten */
.wpsg_produkt_wrapper .wpsg_vp_field { clear:both; margin-bottom:1rem; }
@@ -188,12 +170,6 @@ input.wpsg_error { border-color:red !important; } .wpsg_basket_widget table .wpsg_cell_amount { text-align:right; padding-right:0.2rem; }
.wpsg_basket_widget table .wpsg_row_summary .wpsg_cell_amount { font-weight:bold; }
-/* Modul Gutscheine */
-.wpsg_basket .wpsg_cell_gutschein { vertical-align:middle; }
-.wpsg_basket .wpsg_cell_gutschein input[type="submit"] { float:right; }
-.wpsg_basket .wpsg_cell_gutschein input[type="text"] { float:right; margin-top:2px; margin-right:10px; vertical-align:baseline; }
-.wpsg_basket .wpsg_cell_gutschein label { line-height:35px; }
-
/* Modul Kundenverwaltung */
.wpsg_mod_kundenverwaltung_widget input[type="text"], .wpsg_mod_kundenverwaltung_widget input[type="password"] { width:100%; margin-bottom:0.5rem; }
.wpsg_mod_kundenverwaltung_widget input[type="submit"] { float:right; }
@@ -261,7 +237,6 @@ input.wpsg_error { border-color:red !important; } .wpsg_mod_request_requestpage .wpsg_cell_action { width:30px; text-align:center; }
.wpsg_mod_request_requestpage .wpsg_cell_amount { width:125px; }
.wpsg_mod_request_requestpage .wpsg_cell_sumprice { text-align:right; width:200px; }
-.wpsg_mod_request_requestpage .wpsg_basket_productimage { float:left; margin-right:5px; }
.wpsg_mod_request_requestpage .wpsg_cell_total_brutto,
.wpsg_mod_request_requestpage .wpsg_cell_total_netto { text-align:right; }
.wpsg_mod_request_requestpage .wpsg_checkout_typ_3 input { margin-right: 5px; width: auto; }
@@ -270,30 +245,6 @@ input.wpsg_error { border-color:red !important; } .wpsg_mod_request_requestpage h2 { margin-top:2rem; margin-bottom:1rem; }
.requestlist_ajax_wrap { padding-bottom:2rem; }
-/* Modul Zubehörprodukte */
-.wpsg_mod_relatedproducts_basket { margin-top:2rem; }
-
-/* Progress bar
-.steps { list-style:none; margin:0; padding:10px 0; overflow:hidden; font-family:'inherit',sans-serif; font-size:1.5rem; width:100%; height:auto; line-height:20px; font-weight:bold; counter-reset:li; }
-.steps > a, .steps > p { float:left; margin:5px 0;}
-.steps a, .steps p { list-style-image:none; list-style-type:none; margin-left:0; text-align:center; color:#bbb; background:#f2f2f2; position:relative; margin-left:43px; border-bottom:medium none !important; }
-
-.steps a:after, .steps p:after { position:absolute; top:50%; left:100%; content:" "; height:0; width:0; border:solid transparent; border-left-color:#f2f2f2; border-width:19px; margin-top:-19px; }
-.steps a span:after, .steps p span:after { position:absolute; top:50%; right:100%; content:" "; height:0; width:0; border:solid #f2f2f2; border-left-color:transparent; border-width:19px; margin-top:-19px; }
-
-.steps a span, .steps p span { display:block; padding:9px 28px 9px 9px; }
-.steps a span:before, .steps p span:before { counter-increment:li; }
-
-.steps a.current, .steps p.current { color:#3a3a3a; background:#c9c9c9; }
-.steps a.current:after, .steps p.current:after { border-left-color:#c9c9c9; }
-.steps a.current span:after, .steps p.current span:after { border-color:#c9c9c9; border-left-color:transparent; }
-
-.steps a.step1, .steps p.step1 { z-index:9; }
-.steps a.step2, .steps p.step2 { z-index:8; }
-.steps a.step3, .steps p.step3 { z-index:7; }
-.steps a.step4, .steps p.step4 { z-index:6; }
-*/
-
.wpsg_progress { padding:0px; margin:0px; width:100%; margin-bottom:100px; margin-top:30px; }
.wpsg_progress:after { border:1px solid #C5C5C5; height:10px; background-color:#F2F2F2; box-sizing:border-box; display:block; width:100%; content:" "; }
.wpsg_progress span.step { width:25%; display:block; float:left; list-style:none; position:relative; }
@@ -365,21 +316,15 @@ input.wpsg_error { border-color:red !important; } .wpsg_mod_productview-order-layer a.selected,
.wpsg_mod_productview-order-layer a:hover { text-decoration:none; color:#FFFFFF; background-color:#29556E; }
-@media screen and (max-width: 600px) {
-
- #wpsg_basket_ajax_message .wpsg_basket_ajax_message_content { width:80%; }
- #wpsg_basket_ajax_message .wpsg_button_basket,
- #wpsg_basket_ajax_message .wpsg_button_continue_shopping { width:100%; margin-top:2rem; }
- .wpsg_progress span.step > .text { visibility:hidden; }
-
-}
-
-@media screen and (max-width: 400px) {
+/* Dialog für Meldungen wenn nicht auf einer Shop Seite / Warenkorbmeldung BEGIN */
+#wpsg_ajax_layer { position:fixed; z-index:1000; left:0px; top:0px; width:100%; height:100%; background-color:rgba(0, 0, 0, 0.75); display:flex; justify-content:center; align-items:center; }
+#wpsg_ajax_layer .wpsg_ajax_message_content { background-color:#FFFFFF; padding:1.5rem; text-align:center; }
+#wpsg_ajax_layer .wpsg_ajax_message_content li { list-style:none; }
- .wpsg .wpsg_button { padding-left:10px; padding-right:10px; }
+@media screen and (max-width: 320px) {
- .wpsg_basket .wpsg_cell_gutschein label { width:100%; display:block; }
- .wpsg_basket #wpsg_gutschein_input { float:left; }
+ #wpsg_ajax_layer .wpsg_ajax_message_content { width:300px; }
}
+/* Dialog für Meldungen wenn nicht auf einer Shop Seite / Warenkorbmeldung ENDE */
diff --git a/views/js/frontend.js b/views/js/frontend.js index b4b0119..e354123 100644 --- a/views/js/frontend.js +++ b/views/js/frontend.js @@ -38,6 +38,28 @@ return false;
}
+
+ /**
+ * Sperrt die Funktionen im Produkttemplate, während einer Ajax Aktion
+ * @param template_index
+ */
+ function wpsg_blockProductTemplate(template_index)
+ {
+
+ jQuery('#wpsg_produktform_' + template_index).append('<div class="wpsg_product_layer"><img src="' + wpsg_ajax.img_ajaxloading + '" alt="' + wpsg_ajax.label_pleasewait + '" /></div>');
+
+ } // function wpsg_blockProductTemplate(template_index)
+
+ /**
+ * Entsperrt die Funktionen im Produkttemplate nach einer Ajax Aktion
+ * @param template_index
+ */
+ function wpsg_unblockProductTemplate(template_index)
+ {
+
+ jQuery('#wpsg_produktform_' + template_index + ' .wpsg_product_layer').remove();
+
+ } // function wpsg_unblockProductTemplate(template_index)
wpsg_numberformat = function (number, decimals, dec_point, thousands_sep)
{
diff --git a/views/mods/mod_productvariants/frontend.js b/views/mods/mod_productvariants/frontend.js index 9e50d0b..94cae44 100644 --- a/views/mods/mod_productvariants/frontend.js +++ b/views/mods/mod_productvariants/frontend.js @@ -1,95 +1,23 @@ -
- var wpsg_vp_vari = new Array();
-
- function wpsg_vp_switch(product_id, product_index, elem)
- {
- /*
- var var_key = 'pv_' + product_id + "|";
- //alert('Länge: ' + wpsg_vp_vari[product_id].length);
-
- for (var i = 0; i < wpsg_vp_vari[product_id].length; i ++)
- {
-
- vkey1 = i + ":";
- vkey2 = '';
-
- if (wpsg_vp_vari[product_id][i] == "select")
- {
- vkey2 = jQuery('#wpsg_produktform_' + product_index + ' .wpsg_produkt_' + product_id + " #wpsg_vpfield_" + product_id + "_" + i).val();
- }
- else if (wpsg_vp_vari[product_id][i] == "radio")
- {
- vkey2 = jQuery('#wpsg_produktform_' + product_index + ' .wpsg_produkt_' + product_id + ' input[name="wpsg_vp[' + i + ']"]:checked').val();
- }
- else if (wpsg_vp_vari[product_id][i] == "checkbox")
- {
- vkey2 = jQuery('#wpsg_produktform_' + product_index + ' .wpsg_produkt_' + product_id + ' input[name="wpsg_vp[' + i + ']"]:checked').length;
- }
- else if (wpsg_vp_vari[product_id][i] == "image")
- {
- vkey2 = jQuery('#wpsg_produktform_' + product_index + ' .wpsg_produkt_' + product_id + ' .wpsg_mod_productvariants_imageselect_' + i + ' .akt').attr("data-wpsg-id");
- }
-
- if (vkey2 != '') {
- if (wpsg_vp_vari[product_id][i] == "image")
- jQuery('#wpsg_vp_' + i).val(vkey2);
- var_key += vkey1 + vkey2;
- if (i < (wpsg_vp_vari[product_id].length - 1)) var_key += "|";
- }
- }
- */
- //console.log(jQuery('#wpsg_produktform_' + product_index).serialize());
- //console.log(var_key);
- //return;
-
- v1 = jQuery(elem).attr("data-wpsg-id");
- //v2 = jQuery(elem).parent().find('input').val();
- jQuery(elem).parent().find('input').val(v1);
- //alert('v1=' + v1 + ' v2=' + v2);
-
- jQuery('#wpsg_produktform_' + product_index).append('<div class="wpsg_product_layer"><img src="' + wpsg_ajax.img_ajaxloading + '" alt="' + wpsg_ajax.label_pleasewait + '" /></div>');
- jQuery.ajax( {
- 'url': wpsg_ajax.ajaxurl,
- 'method': 'get',
- 'data': {
- 'action': 'wpsg_productvariants_switch',
- 'wpsg_post_id': jQuery('#wpsg_produktform_' + product_index + ' input[name="wpsg_post_id"]').val(),
- 'quantity': jQuery('#wpsg_menge_' + product_index).val(),
- 'template': jQuery('#wpsg_produktform_' + product_index + ' input[name="wpsg[template]"]').val(),
- 'referer': jQuery('#wpsg_produktform_' + product_index + ' input[name="myReferer"]').val(),
- 'form_data': jQuery('#wpsg_produktform_' + product_index).serialize(),
- // 'product_key': var_key,
- 'product_index': product_index
- },
- 'success': function(data) {
-
- jQuery('#wpsg_produktform_' + product_index).replaceWith(data);
-
- }
- } );
-
- } // function wpsg_vp_switch(produkt_id)
-
function wpsg_mod_productvariants_reload(event)
{
- var product_index = jQuery(event.target).parents('.wpsg_mod_productvariants_product_wrap').attr('wpsg-productindex');
+ var template_index = jQuery(event.target).closest('.wpsg_mod_productvariants_product_wrap').attr('wpsg-productindex');
- //jQuery('#wpsg_produktform_' + product_index).append('<div class="wpsg_product_layer"><img src="' + wpsg_ajax.img_ajaxloading + '" alt="' + wpsg_ajax.label_pleasewait + '" /></div>');
-
+ wpsg_blockProductTemplate(template_index);
+
jQuery.ajax( {
'url': wpsg_ajax.ajaxurl,
'method': 'get',
'data': {
'action': 'wpsg_productvariants_switch',
- 'wpsg_post_id': jQuery('#wpsg_produktform_' + product_index + ' input[name="wpsg_post_id"]').val(),
- 'form_data': jQuery('#wpsg_produktform_' + product_index).serialize(),
- 'product_index': product_index
+ 'wpsg_post_id': jQuery('#wpsg_produktform_' + template_index + ' input[name="wpsg_post_id"]').val(),
+ 'form_data': jQuery('#wpsg_produktform_' + template_index).serialize(),
+ 'product_index': template_index
},
'success': function(data) {
- jQuery('#wpsg_produktform_' + product_index).replaceWith(data);
+ jQuery('#wpsg_produktform_' + template_index).replaceWith(data);
}
} );
diff --git a/views/mods/mod_produktbilder/settings_edit.phtml b/views/mods/mod_produktbilder/settings_edit.phtml index 1c035ef..b34edc6 100644 --- a/views/mods/mod_produktbilder/settings_edit.phtml +++ b/views/mods/mod_produktbilder/settings_edit.phtml @@ -5,9 +5,3 @@ */
?>
-<?php echo wpsg_drawForm_Input('wpsg_mod_produktbilder_width', __('Bildbreite (Vorschau)', 'wpsg'), $this->get_option('wpsg_mod_produktbilder_width'), array('help' => 'wpsg_mod_produktbilder_width')); ?>
-<?php echo wpsg_drawForm_Input('wpsg_mod_produktbilder_height', __('Bildhöhe (Vorschau)', 'wpsg'), $this->get_option('wpsg_mod_produktbilder_height'), array('help' => 'wpsg_mod_produktbilder_height')); ?>
-<?php echo wpsg_drawForm_Select('wpsg_mod_produktbilder_mode', __('Bildmodus (Vorschau)', 'wpsg'), $this->callMod('wpsg_mod_produktbilder', 'getImageModes'), $this->get_option('wpsg_mod_produktbilder_mode'), array('help' => 'wpsg_mod_produktbilder')); ?>
-<?php echo wpsg_drawForm_Input('wpsg_mod_produktbilder_quality', __('Bildqualität (PNG/JPG)', 'wpsg'), $this->get_option('wpsg_mod_produktbilder_quality'), array('help' => 'wpsg_mod_produktbilder_quality','hint' => __('0 = Schlechte Qualität, 100 = Gute Qualität', 'wpsg'))); ?>
-
-<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_produktbilder&wpsg_mod_produktbilder_clearcache=1&noheader=1"><span class="wpsg-glyphicon glyphicon glyphicon-trash"></span><?php echo __('Bildercache löschen', 'wpsg'); ?></a>
\ No newline at end of file diff --git a/views/produkttemplates/bildertest.phtml b/views/produkttemplates/bildertest.phtml deleted file mode 100644 index 7bddb75..0000000 --- a/views/produkttemplates/bildertest.phtml +++ /dev/null @@ -1,42 +0,0 @@ -<?php
-
- $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id']));
-
-?>
-
-<div style="padding:15px; background-color:#999999;">
-
- <?php echo __('100x100', 'wpsg'); ?><br />
- <div style="width:100px; height:100px; display:block; background-color:red;"></div>
-
- <?php foreach ($arBilder as $bild) { ?>
-
- <h2><?php echo $bild; ?>:</h2>
-
- <?php echo __('CROP (c)', 'wpsg'); ?><br />
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $bild, 100, 100, 'c')); ?>" /><br />
-
- <?php echo __('CROP CENTER (cz)', 'wpsg'); ?><br />
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $bild, 100, 100, 'cz')); ?>" /><br />
-
- <?php echo __('STRETCH (z)', 'wpsg'); ?><br />
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $bild, 100, 100, 'z')); ?>" /><br />
-
- <?php echo __('NIX (n)', 'wpsg'); ?><br />
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $bild, 100, 100, 'n')); ?>" /><br />
-
- <?php echo __('SCALE und Freifläche (sz)', 'wpsg'); ?><br />
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $bild, 100, 100, 'sz')); ?>" /><br />
-
- <?php echo __('SCALE WIDTH (sw)', 'wpsg'); ?><br />
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $bild, 100, 100, 'sw')); ?>" /><br />
-
- <?php echo __('SCALE HEIGHT (sh)', 'wpsg'); ?><br />
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $bild, 100, 100, 'sh')); ?>" /><br />
-
- <?php echo __('SCALE INTO (s)', 'wpsg'); ?><br />
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $bild, 100, 100, 's')); ?>" /><br />
-
- <?php } ?>
-
-</div>
\ No newline at end of file diff --git a/views/produkttemplates/produktseite.phtml b/views/produkttemplates/produktseite.phtml deleted file mode 100644 index 17e4087..0000000 --- a/views/produkttemplates/produktseite.phtml +++ /dev/null @@ -1,135 +0,0 @@ -<?php
-
- /*
- * Template für das Produkt im Frontend
- */
-
- //Ausgabe der verfügbaren Variablen
- //wpsg_debug($this->view['data']);
-
- // Damit keine Zubehörprodukte ausgegeben werden
- //$this->noReleatedProducts = true;
-
-?>
-<div class="wpsg_produkt_wrapper">
- <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
-
- <div class="wpsg_product_afterimage">
-
- <h2 itemprop="name" class="wpsg_producttitle"><?php echo wpsg_hspc($this->view['data']['name']); ?></h2>
-
- <?php /* Block für die Produktbilder START */ ?>
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <div class="wpsg_produkt_produktbilder">
- <?php if (sizeof($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])))) { ?>
- <?php $i = 0; foreach ($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])) as $b) { $i ++; ?>
- <?php if ($i == 1) { ?>
- <div class="wpsg_produkt_preview wpsg_pb_pic">
- <?php echo $this->callMod('wpsg_mod_produktbilder', 'genBild', array($this->view['data']['id'], $i, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'), 'pimage')); ?>
- <?php /*<img itemprop="image" id="wpsg_mainimage_<?php echo $this->getTemplateIndex(); ?>" src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'))); ?>" alt="" />*/?>
- </div>
- <?php } else { ?>
- <div class="wpsg_pb_pic" style="display:none;">
- <?php echo $this->callMod('wpsg_mod_produktbilder', 'genBild', array($this->view['data']['id'], $i, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'), 'pimage')); ?>
- </div>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <div class="wpsg_clear"></div>
- </div>
- <?php } ?>
- <?php /* Block für die Produktbilder ENDE */ ?>
-
- <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
- <div class="wpsg_artikelnummer">
- <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span>
- </div>
- <?php } ?>
-
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
- <?php echo __('Stückpreis:', 'wpsg'); ?>
- <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
- <span itemprop="price" class="preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>"><?php echo wpsg_ff($this->view['data']['preis']); ?></span> <?php echo $this->get_option('wpsg_currency'); ?><?php if (wpsg_isSizedString($this->view['data']['price_info'])) { echo '<div class="wpsg_priceinfo">'.wpsg_hspc($this->view['data']['price_info']).'</div>'; } ?>
- </div>
-
- <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?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>'); ?>
- </div>
-
- <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
- <?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>'); ?>
- <?php } else { /* Frontend = BRUTTO Preise */ ?>
- <?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>'); ?>
- <?php } ?>
- </div>
-
- <?php } ?>
-
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
-
- <div class="wpsg_produkt_fuellmenge">
- <?php echo wpsg_translate(__('Füllmenge: #1# (#2# / #3#)', 'wpsg'),
- '<span id="fmenge_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['fmenge'], '', true).'</span> '.$this->view['data']['feinheit'],
- '<span id="fmenge_gpreis_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['fmenge_preis']).'</span> '. $this->get_option('wpsg_currency'),
- wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
- ); ?>
- </div>
-
- <?php } ?>
- <?php /* Füllmengenanzeige ENDE */ ?>
-
- <?php /* Lieferzeit Anzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
-
- <div class="wpsg_mod_deliverytime">
- <?php echo wpsg_translate(__('Lieferzeit: #1#', 'wpsg'), $this->callMod('wpsg_mod_deliverytime', 'getProductDeliveryTime', array($this->view['data']['id']))); ?>
- </div>
-
- <?php } ?>
- <?php /* Lieferzeit Anzeige ENDE */ ?>
-
- <?php /* Gewichtsanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
- <div class="wpsg_mod_weight_produkt">
- <?php echo wpsg_translate(__('Gewicht: #1# #2#', 'wpsg'), '<span id="weight_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'</span>', $this->get_option('wpsg_mod_weight_unit')); ?>
- </div>
- <?php } ?>
- <?php /* Gewichtsanzeige ENDE */ ?>
-
- <?php /* Varianten START */ ?>
- <div class="wpsg_produkt_varianten">
- <?php echo $this->callMod('wpsg_mod_varianten', 'renderTemplate', array($this->view['data']['id'])); ?>
- </div>
- <?php /* Varianten ENDE */ ?>
-
- <input class="wpsg_button wpsg_add_basket wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>" onclick="location.href='<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>?wpsg_action=showProdukt&produkt_id=<?php echo $this->view['data']['id']; ?>'; return false;" type="button" value="<?php echo __('Zur Produktseite', 'wpsg'); ?>" />
-
- <div class="wpsg_clear"></div>
-
- <?php /* Facebook und Co Integration aus dem Produktartikel Modul */ ?>
- <?php echo $this->callMod('wpsg_mod_produktartikel', 'socialIntegration', array($this->view['data']['id'])); ?>
- <?php /* Facebook und Co Integration ENDE */ ?>
-
- </div>
-
- </div>
-
- <?php if (strlen(trim($this->view['data']['beschreibung'])) > 0) { ?>
- <div class="wpsg_produkt_additional_information">
-
- <div itemprop="description" class="wpsg_produkt_beschreibung">
- <?php echo $this->view['data']['beschreibung']; ?>
- </div>
-
- </div>
- <?php } ?>
-
- <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
-</div>
\ No newline at end of file diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index c6353f7..1520c38 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -13,337 +13,272 @@ $arImages = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['data']['product_id']));
if (!wpsg_isSizedArray($arImages)) $arImages = array();
-?>
-<div class="container container-fluid-page">
+?>
- <div class="wpsg_produkt_wrapper">
+<div class="wpsg_produkt_wrapper">
+
+ <input type="hidden" name="wpsg_post_id" value="<?php echo get_the_ID(); ?>" />
+ <input type="hidden" name="titleDisplayed" value="<?php echo $this->titleDisplayed; ?>" />
- <input type="hidden" name="wpsg_post_id" value="<?php echo get_the_ID(); ?>" />
-
- <div class="wpsg_produkt wpsg_product_name">
-
- <?php if (!$this->titleDisplayed) { ?>
- <h1 itemprop="name" class="wpsg_producttitle"><?php echo $this->getProductName($this->view['data']['id']); ?></h1>
- <?php } ?>
+ <div class="wpsg_produkt wpsg_product_name">
- <?php $this->callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
- </div>
+ <?php if (!$this->titleDisplayed) { ?>
+ <h1 itemprop="name" class="wpsg_producttitle"><?php echo $this->getProductName($this->view['data']['id']); ?></h1>
+ <?php } ?>
- <?php if (sizeof($arImages) > 0) { ?>
+ <?php $this->callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
- <?php wpsg_debug($arImages); ?>
- <?php } ?>
-
-
- <?php $this->callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
- <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
-
- <div class="wpsg_product_mod_information_left">
- <div class="wpsg_product_afterimage">
- <?php /* Block für die Produktbilder START */ ?>
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <div class="wpsg_produkt_produktbilder">
- <?php
- $pbw = $this->get_option('wpsg_mod_produktbilder_width');
- $pbh = $this->get_option('wpsg_mod_produktbilder_height');
- $pbm = $this->get_option('wpsg_mod_produktbilder_mode');
- $pbArr = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['data']['id']));
- ?>
- <?php if (sizeof($pbArr)) { ?>
- <?php $i = 0; foreach ($pbArr as $b) { $i ++; ?>
- <?php if ($i == 1 && !wpsg_isSizedString($this->view['data']['varianten_image']) || $b['basename'] == $this->view['data']['varianten_image']) { ?>
- <div class="wpsg_produkt_preview wpsg_pb_pic">
- <?php
- $href = wp_get_attachment_image_src($b['post_id'], Array(800, 600));
- $imgtag = wp_get_attachment_image($b['post_id'], Array($pbw, $pbh));
- ?>
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>"
- href="<?php echo $href[0]; ?>"> <?php echo $imgtag; ?>
- </a>
- </div>
- <?php } else { ?>
- <div class="wpsg_pb_pic" style="display:none;">
- <?php
- $href = wp_get_attachment_image_src($b['post_id'], Array(800, 600));
- $imgtag = wp_get_attachment_image($b['post_id'], Array($pbw, $pbh));
- ?>
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>" href="<?php echo $href[0]; ?>">
- <?php echo $imgtag; ?>
- </a>
- </div>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <div class="wpsg_clear"></div>
- </div>
- <?php } ?>
- <?php /* Block für die Produktbilder ENDE */ ?>
- </div>
- </div>
+ </div>
- <div class="wpsg_product_mod_information_right">
+ <?php $this->callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
+
+ <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
- <?php /* Block für Produktbeschreibung START */ ?>
+ <?php /* Block für die Produktbilder START */ ?>
+ <?php if (wpsg_isSizedArray($arImages)) { ?>
+ <div class="wpsg_productimages">
+
+ <div class="wpsg_produkt_produktbilder">
+ <?php $att = wp_get_attachment_image_src($arImages[0]['post_id'], array(600, 600), false); ?>
+ <a rel="gallery-wpsg-<?php echo $this->getTemplateIndex(); ?>" title="<?php echo $this->getProductName($this->view['data']['id']); ?>" href="<?php echo $att[0]; ?>" class="thickbox">
+ <?php echo wp_get_attachment_image($arImages[0]['post_id'], array(600, 600), false, array()); ?>
+ </a>
- <br/>
+ <?php if (sizeof($arImages) > 1) { for ($i = 1; $i < sizeof($arImages); $i ++) { ?>
+ <?php $att = wp_get_attachment_image_src($arImages[$i]['post_id'], array(600, 600), false); ?>
+ <a 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">
+ <?php echo wp_get_attachment_image($arImages[$i]['post_id'], array(600, 600), false, array()); ?>
+ </a>
+ <?php } } ?>
- <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
- <div class="wpsg_artikelnummer">
- <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span><br />
- <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_ean'))) {?>
- <?php echo __('EAN','wpsg');?>:<span class="wpsg_ean"><?php echo wpsg_hspc($this->view['data']['ean']); ?></span><br />
- <?php } ?>
- <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_gtin'))) {?>
- <?php echo __('GTIN','wpsg');?>:<span class="wpsg_gtin"><?php echo wpsg_hspc($this->view['data']['gtin']); ?></span><br />
- <?php }?></div>
- <?php } ?>
-
- <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt START*/ ?>
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
-
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
- <label><?php echo __('Stückpreis:', 'wpsg'); ?></label>
- <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
- <span itemprop="price" class="wpsg_preis preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>">
- <?php echo wpsg_ff($this->view['data']['preis'], $this->get_option('wpsg_currency')); ?>
- </span> <?php if (wpsg_isSizedString($this->view['data']['price_info'])) { echo '<div class="wpsg_priceinfo">'.wpsg_hspc($this->view['data']['price_info']).'</div>'; } ?>
-
- <?php if ($this->hasMod('wpsg_mod_discount') && wpsg_getInt($this->view['data']['preis_prediscount']) > 0 && wpsg_isSizedInt($this->get_option('wpsg_mod_discount_show'))) { ?>
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis new_price">
- <?php echo __('Originalpreis', 'wpsg'); ?>: <span class="wpsg_preis_prediscount"><?php echo wpsg_ff($this->view['data']['preis_prediscount'], $this->get_option('wpsg_currency')); ?></span>
- </div>
- <?php } ?>
- </div>
-
- <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?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>'); ?>
- </div>
+ </div>
+
+ </div>
+ <?php } ?>
+ <?php /* Block für die Produktbilder ENDE */ ?>
+
+ <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
+ <div class="wpsg_artikelnummer">
+ <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span><br />
+ <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_ean'))) {?>
+ <?php echo __('EAN','wpsg');?>:<span class="wpsg_ean"><?php echo wpsg_hspc($this->view['data']['ean']); ?></span><br />
+ <?php } ?>
+ <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_gtin'))) {?>
+ <?php echo __('GTIN','wpsg');?>:<span class="wpsg_gtin"><?php echo wpsg_hspc($this->view['data']['gtin']); ?></span><br />
+ <?php }?></div>
+ <?php } ?>
+
+ <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt START*/ ?>
+ <?php if ($this->view['oProduct']->canDisplayPrice()) { ?>
- <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
- <?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>'); ?>
- <?php } else { /* Frontend = BRUTTO Preise */ ?>
- <?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>'); ?>
- <?php } ?>
- </div>
-
- <?php } ?>
- <?php } else {?>
-
- <?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.')); ?>
+ <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
+ <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
- <?php }?>
- <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt ENDE */ ?>
-
- <div itemprop="description" class="wpsg_produkt_shortdescription">
- <h3><?php echo wpsg_translate(__('Produktbeschreibung', 'wpsg')); ?></h3>
- <span><?php echo $this->view['data']['shortdesc']; ?></span>
- </div>
+ <?php echo __('Stückpreis:', 'wpsg'); ?>
- <div class="wpsg_product_informations_left">
- <?php /* Lagerbestand START*/?>
- <?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?>
- <div class="wpsg_mod_produktindex_stock">
- <img src="<?php echo WPSG_URL_WP;?>wp-content/plugins/wpshopgermany/views/gfx/stock_pos.png" />
- <label><?php echo wpsg_translate(__('#1#','wpsg'), $this->view['data']['stock']); ?></label><?php echo wpsg_translate(__(' Artikel auf Lager', 'wpsg')); ?>
- </div>
- <?php } ?>
- <?php /* Lagerbestand ENDE*/?>
-
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
+ <?php $oldPrice = $this->view['oProduct']->getOldPrice(); ?>
+ <?php if ($oldPrice !== false && $oldPrice != $this->view['oProduct']->getPrice()) { ?>
+ <span class="wpsg_mod_productview_price wpsg_mod_productview_current"><?php echo wpsg_ff($this->view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?></span>
+ <span class="wpsg_mod_productview_oldprice"><?php echo wpsg_ff($oldPrice, $this->get_option('wpsg_currency')); ?></span>
+ <?php } else { ?>
+ <span class="wpsg_mod_productview_price"><?php echo wpsg_ff($this->view['oProduct']->getPrice(), $this->get_option('wpsg_currency')); ?></span>
+ <?php } ?>
- <div class="wpsg_produkt_fuellmenge">
- <label><?php echo wpsg_translate(__('Füllmenge:', 'wpsg')); ?></label>
- <?php echo wpsg_translate(__('#1# (#2# / #3#)', 'wpsg'),
- '<span class="wpsg_fmenge">'.wpsg_ff($this->view['data']['fmenge'], '', true).'</span> '.$this->view['data']['feinheit'],
- '<span class="fmenge_preis">'.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).'</span> ',
- wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
- ); ?>
- </div>
-
- <?php } ?>
- <?php /* Füllmengenanzeige ENDE */ ?>
- </div>
-
- <div class="wpsg_product_informations_right">
- <?php /* Lieferzeit Anzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
-
- <?php /* Produkt nur im Store, nicht im Onlineshop vorhanden */ ?>
- <?php if ($this->callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($this->view['data']['product_key']))) {?>
-
- <span class="wpsg_product_only_store"><?php echo wpsg_translate($this->get_option('wpsg_mod_deliverytime_storetext')); ?></span>
- <?php if (wpsg_isSizedInt($this->get_option('wpsg_page_mod_deliverytime_storelink'))) { ?>
- <a href="<?php echo get_permalink($this->get_option('wpsg_page_mod_deliverytime_storelink')); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
- <?php } ?>
- <br />
+ </div>
- <?php } else {?>
- <div class="wpsg_mod_deliverytime">
- <img src="<?php echo WPSG_URL_WP;?>wp-content/plugins/wpshopgermany/views/gfx/deliverytime.png" />
- <label><?php echo wpsg_translate(__('Lieferzeit:', 'wpsg')); ?></label>
- <?php echo $this->callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?>
-
- </div>
-
- <?php $strDelayNote = $this->callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?>
- <?php if (wpsg_isSizedString($strDelayNote)) { ?>
- <div class="wpsg_mod_deliverytime_offline">
- <img src="<?php echo WPSG_URL_WP;?>wp-content/plugins/wpshopgermany/views/gfx/deliverytime-offline.png" />
- <div class="wpsg_mod_deliverytime_delay"><?php echo wpsg_hspc($strDelayNote); ?></div>
- </div>
- <?php } ?>
-
- <?php } ?>
- <?php } ?>
- <?php /* Lieferzeit Anzeige ENDE */ ?>
-
- <?php /* Gewichtsanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
- <div class="wpsg_mod_weight_produkt">
- <label><?php echo wpsg_translate(__('Gewicht:', 'wpsg')); ?></label>
- <?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')); ?>
- </div>
+ <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
+
+ <div class="wpsg_produkt_preishinweis">
+ <?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>'); ?>
+ </div>
+
+ <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
+
+ <div class="wpsg_produkt_preishinweis">
+ <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
+ <?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>'); ?>
+ <?php } else { /* Frontend = BRUTTO Preise */ ?>
+ <?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>'); ?>
<?php } ?>
- <?php /* Gewichtsanzeige ENDE */ ?>
-
- <?php /* Varianten START */ ?>
- <div class="wpsg_produkt_varianten">
- <?php echo $this->callMod('wpsg_mod_productvariants', 'renderTemplate', array($this->view['data']['product_key'])); ?>
- </div>
- <?php /* Varianten ENDE */ ?>
</div>
- <div class="wpsg_clear"></div>
-
- <div class="wpsg_product_buttonarea">
- <div class="wpsg_product_buttons_add_basket">
- <?php if ($this->view['oProduct']->canOrder()) { ?>
- <div class="wpsg_produkt_add_basket_wrapper">
+ <?php } ?>
+ <?php } else {?>
+
+ <?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.')); ?>
+
+ <?php }?>
+ <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt ENDE */ ?>
+
+ <div itemprop="description" class="wpsg_produkt_shortdescription">
+ <span><?php echo $this->view['data']['shortdesc']; ?></span>
+ </div>
+
+ <div class="wpsg_clear"></div>
+
+ <?php /* Lagerbestand START*/?>
+ <?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?>
+ <div class="wpsg_mod_produktindex_stock">
+ <label><?php echo wpsg_translate(__('#1#','wpsg'), $this->view['data']['stock']); ?></label><?php echo wpsg_translate(__(' Artikel auf Lager', 'wpsg')); ?>
+ </div>
+ <?php } ?>
+ <?php /* Lagerbestand ENDE*/?>
+
+ <?php /* Füllmengenanzeige START */ ?>
+ <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
+
+ <div class="wpsg_produkt_fuellmenge">
+ <span class="label label_fuellmenge"><?php echo wpsg_translate(__('Füllmenge:', 'wpsg')); ?></span>
+ <?php echo wpsg_translate(__('#1# (#2# / #3#)', 'wpsg'),
+ '<span class="wpsg_fmenge">'.wpsg_ff($this->view['data']['fmenge'], '', true).'</span> '.$this->view['data']['feinheit'],
+ '<span class="fmenge_preis">'.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).'</span> ',
+ wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
+ ); ?>
+ </div>
- <?php if (!$this->hasMod('wpsg_mod_stock') || $this->callMod('wpsg_mod_stock', 'getBestand', array($this->view['data']['id']))) { ?>
- <label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?>:</label>
- <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" ':''); ?>
- />
- <?php } ?>
-
- <?php if (in_array($this->get_option('wpsg_afterinsert'), array('2', '3'))) { ?>
- <script type="text/javascript">
-
- jQuery(document).ready(function() {
+ <?php } ?>
+ <?php /* Füllmengenanzeige ENDE */ ?>
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
-
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').prop('disabled', true);
-
- jQuery.ajax( {
- url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
- data:
- {
- 'wpsg_form_data': jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
- 'wpsg[ajax]': '1',
- 'wpsg[submit]': '1'
- },
- success: function(data)
- {
-
- <?php if ($this->get_option('wpsg_afterinsert') == '2') { ?>
- tb_show('<?php echo __('Ihr Warenkorb', 'wpsg'); ?>', '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET_AJAX); ?>&height=500');
- <?php } else { ?>
-
- jQuery('#wpsg_basket_ajax_message_wrap').remove();
- jQuery('body').append('<div id="wpsg_basket_ajax_message_wrap">' + data + '</div>');
-
- <?php } ?>
+ <?php /* Gewichtsanzeige START */ ?>
+ <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
+ <div class="wpsg_mod_weight_produkt">
+ <span class="label label_weight"><?php echo wpsg_translate(__('Gewicht:', 'wpsg')); ?></span>
+ <?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')); ?>
+ </div>
+ <?php } ?>
+ <?php /* Gewichtsanzeige ENDE */ ?>
+
+ <?php /* Lieferzeit Anzeige START */ ?>
+ <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
- wpsg_refreshBasketWidget();
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').prop('disabled', false);
-
- }
- } );
-
- return false;
-
- } );
+ <?php /* Produkt nur im Store, nicht im Onlineshop vorhanden */ ?>
+ <?php if ($this->callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($this->view['data']['product_key']))) { ?>
- } );
-
- </script>
- <?php } ?>
-
- <div class="wpsg_clear"></div>
-
- </div>
- <?php } ?>
- </div>
-
- <?php /* Abfrage Warenkorbanzeige nur für eingeloggte Benutzer START */ ?>
- <div class="wpsg_product_button_basket">
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
- <?php if ($this->callMods('productForSale', array($this->view['data']['product_key']))) { ?>
- <?php if (!$this->hasMod('wpsg_mod_stock') || $this->callMod('wpsg_mod_stock', 'getBestand', array($this->view['data']['id']))) { ?>
-
- <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]" />
-
- <?php } ?>
- <?php } ?>
- <?php }else{?>
- <a class="wpsg_blind_basket_button" href="#"><?php echo wpsg_translate(__('Loggen Sie sich bitte ein, um zu bestellen', 'wpsg')); ?></a>
- <?php } ?>
- <?php /* Abfrage Warenkorbanzeige nur für eingeloggte Benutzer ENDE */ ?>
- </div>
- </div>
+ <div class="wpsg_product_only_store"><?php echo wpsg_translate($this->get_option('wpsg_mod_deliverytime_storetext')); ?></div>
- <div class="wpsg_clear"></div>
+ <?php if (wpsg_isSizedInt($this->get_option('wpsg_page_mod_deliverytime_storelink'))) { ?>
+ <a href="<?php echo get_permalink($this->get_option('wpsg_page_mod_deliverytime_storelink')); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
+ <?php } ?>
+
+ <?php } else {?>
- <?php if ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?>
- <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]" />
- <?php } ?>
-
- </div>
+ <div class="wpsg_mod_deliverytime">
+ <span class="label label_deliverytime"><?php echo wpsg_translate(__('Lieferzeit:', 'wpsg')); ?></span>
+ <?php echo $this->callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?>
+ </div>
- <div class="wpsg_clear"></div>
+ <?php $strDelayNote = $this->callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?>
+ <?php if (wpsg_isSizedString($strDelayNote)) { ?>
+ <div class="wpsg_mod_deliverytime_offline">
+ <div class="wpsg_mod_deliverytime_delay"><?php echo wpsg_hspc($strDelayNote); ?></div>
+ </div>
+ <?php } ?>
- </div>
-
- <?php /* Produktcontentbereich START */ ?>
+ <?php } ?>
+ <?php } ?>
+ <?php /* Lieferzeit Anzeige ENDE */ ?>
+
+ <?php /* Produktkurzbeschreibung START */ ?>
<div class="wpsg_product_informationarea">
<?php if (strlen(trim($this->view['data']['longdescription'])) > 0) { ?>
<div class="wpsg_product_information_large">
<div class="wpsg_produkt_additional_information">
- <div itemprop="description" class="wpsg_produkt_longdescription">
- <h3><?php echo wpsg_translate(__('Beschreibung', 'wpsg')); ?></h3>
- <span><?php echo $this->view['data']['longdescription']; ?></span>
+ <div itemprop="description" class="wpsg_produkt_longdescription">
+ <span><?php echo $this->view['data']['beschreibung']; ?></span>
</div>
</div>
</div>
<?php } ?>
-
- <div class="wpsg_product_information_more">
- <div itemprop="description" class="wpsg_produkt_more_information">
- <h3><?php echo wpsg_translate(__('Zusätzliche Informationen', 'wpsg')); ?></h3>
+
+ </div>
+ <?php /* Produktkurzbeschreibung ENDE */ ?>
+
+ <?php /* Varianten START */ ?>
+ <div class="wpsg_produkt_varianten">
+ <?php echo $this->callMod('wpsg_mod_productvariants', 'renderTemplate', array($this->view['data']['product_key'])); ?>
+ </div>
+ <?php /* Varianten ENDE */ ?>
+
+ <div class="wpsg_product_buttonarea">
+ <div class="wpsg_product_buttons_add_basket">
+ <?php if ($this->view['oProduct']->canOrder()) { ?>
+ <div class="wpsg_produkt_add_basket_wrapper">
+
+ <label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?></label>
+
+ <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" ':''); ?> />
+ <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]" />
+
+ <?php if (in_array($this->get_option('wpsg_afterinsert'), array('2', '3'))) { ?>
+ <script type="text/javascript">
+
+ jQuery(document).ready(function() {
+
+ jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
+
+ wpsg_blockProductTemplate(<?php echo $this->getTemplateIndex(); ?>);
+
+ jQuery.ajax( {
+ url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
+ data:
+ {
+ 'wpsg_form_data': jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
+ 'wpsg[ajax]': '1',
+ 'wpsg[submit]': '1'
+ },
+ success: function(data)
+ {
+
+ <?php if ($this->get_option('wpsg_afterinsert') == '2') { ?>
+ tb_show('<?php echo __('Ihr Warenkorb', 'wpsg'); ?>', '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET_AJAX); ?>&height=500');
+ <?php } else { ?>
+
+ wpsg_unblockProductTemplate(<?php echo $this->getTemplateIndex(); ?>);
+ jQuery('body').append(data);
+
+ <?php } ?>
+
+ }
+ } );
+
+ return false;
+
+ } );
+
+ } );
+
+ </script>
+ <?php } ?>
+
</div>
- </div>
+ <?php } ?>
+ </div>
+ </div>
+
+ <div class="wpsg_clear"></div>
- <div class="wpsg_product_assessment">
- <div itemprop="description" class="wpsg_product_assessments">
- <h3><?php echo wpsg_translate(__('Bewertungen', 'wpsg')); ?></h3>
+ <?php if ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?>
+ <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]" />
+ <?php } ?>
+
+ <?php /* Produktlangbeschreibung START */ ?>
+ <div class="wpsg_product_informationarea">
+
+ <?php if (strlen(trim($this->view['data']['longdescription'])) > 0) { ?>
+ <div class="wpsg_product_information_large">
+ <div class="wpsg_produkt_additional_information">
+ <div itemprop="description" class="wpsg_produkt_longdescription">
+ <span><?php echo $this->view['data']['longdescription']; ?></span>
+ </div>
</div>
</div>
-
- <?php /* Produktcontentbereich ENDE */ ?>
- </div>
+ <?php } ?>
+
+ </div>
+ <?php /* Produktlangbeschreibung ENDE */ ?>
<div class="wpsg_clear"></div>
@@ -353,9 +288,9 @@ <?php echo do_shortcode('[shariff]')?>
<?php } ?>
</div>
+
+ </div>
- <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
- </div>
-
-</div>
\ No newline at end of file + <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
+
+</div>
\ No newline at end of file diff --git a/views/produkttemplates/standard2.phtml b/views/produkttemplates/standard2.phtml deleted file mode 100644 index c572f60..0000000 --- a/views/produkttemplates/standard2.phtml +++ /dev/null @@ -1,210 +0,0 @@ -<?php
-
- /*
- * Template für das Produkt im Frontend
- */
-
- //Ausgabe der verfügbaren Variablen
- //wpsg_debug($_SESSION);
- //wpsg_debug($this->view['data']['stock']);
-
- // Damit keine Zubehörprodukte ausgegeben werden
- //$this->noReleatedProducts = true;
-
-?>
-<style type="text/css">
-
- .wpsg_theme1 { background-color:#EFEFEF; border:0px; }
- .wpsg_theme1_mainimage a { text-decoration:none; padding:5px; display:table-cell; vertical-align:middle; text-align:center; width:184px; height:184px; background-color:#FFFFFF; }
- .wpsg_theme1_mainimage a img { vertical-align:middle; }
- .wpsg_theme1_previewslider a { text-decoration:none; padding:5px; display:table-cell; vertical-align:middle; text-align:center; width:50; height:50px; background-color:#FFFFFF; }
- .wpsg_theme1_previewslider a img { vertical-align:middle; }
- .wpsg_theme1_previewwrap { float:left; margin-right:7px; margin-top:7px; }
- .wpsg_theme1_produkt_produktbilder { float:left; width:220px; }
- .wpsg_theme1_produkt_right { width:335px; float:left; }
-
-</style>
-
-<script type="text/javascript">
-
- if (typeof wpsg_theme1_switch !== 'function')
- {
-
- function wpsg_theme1_switch(htmlEle)
- {
-
- jQuery(htmlEle).parent().parent().parent().find('.wpsg_theme1_image').hide();
- jQuery(htmlEle).parent().parent().parent().find('.' + jQuery(htmlEle).attr("class")).show();
-
- return false;
-
- } // function wpsg_theme1_switch(ele)
-
- }
-
-</script>
-
-<div class="wpsg_produkt_wrapper wpsg_theme1">
- <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
-
- <?php /* Block für die Produktbilder START */ ?>
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <div class="wpsg_theme1_produkt_produktbilder">
- <?php
-
- $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id']));
-
- ?>
- <?php if (sizeof($arBilder) > 0) { ?>
- <div class="wpsg_theme1_mainimage">
- <a class="thickbox wpsg_theme1_image_0 wpsg_theme1_image" href="<?php echo $this->callMod('wpsg_mod_produktbilder', 'getPicPath', array($this->view['data']['id'], true)); ?>/<?php echo $arBilder[0]; ?>" rel="gallery-<?php echo $this->view['data']['id'] ?>">
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $arBilder[0], 184, 184, 's')); ?>" />
- </a>
- <?php for ($i = 1; $i < sizeof($arBilder); $i ++) { ?>
- <a class="thickbox wpsg_theme1_image_<?php echo $i; ?> wpsg_theme1_image" style="display:none;" href="<?php echo $this->callMod('wpsg_mod_produktbilder', 'getPicPath', array($this->view['data']['id'], true)); ?>/<?php echo $arBilder[$i]; ?>" rel="gallery-<?php echo $this->view['data']['id'] ?>">
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $arBilder[$i], 184, 184, 's')); ?>" />
- </a>
- <?php } ?>
- </div>
-
- <div class="wpsg_theme1_previewslider">
- <?php if (sizeof($arBilder) > 1) { ?>
- <?php for ($i = 0; $i < sizeof($arBilder); $i ++) { ?>
- <div class="wpsg_theme1_previewwrap">
- <a href="#" onclick="return wpsg_theme1_switch(this);" class="wpsg_theme1_image_<?php echo $i; ?>">
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $arBilder[$i], 50, 50, 'sz')); ?>" />
- </a>
- </div>
- <?php } ?>
- <?php } ?>
- </div>
-
- <?php } ?>
-
- </div>
- <?php } ?>
- <?php /* Block für die Produktbilder ENDE */ ?>
-
- <div class="wpsg_theme1_produkt_right">
-
- <h1 class="wpsg_producttitle" itemprop="name"><?php echo wpsg_hspc($this->view['data']['name']); ?></h1>
-
- <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
- <div class="wpsg_artikelnummer">
- <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span>
- </div>
- <?php } ?>
-
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
- <?php echo __('Stückpreis:', 'wpsg'); ?>
- <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
- <span itemprop="price" class="preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>"><?php echo wpsg_ff($this->view['data']['preis']); ?></span> <?php echo $this->get_option('wpsg_currency'); ?>
- </div>
-
- <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?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>'); ?>
- </div>
-
- <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
- <?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>'); ?>
- <?php } else { /* Frontend = BRUTTO Preise */ ?>
- <?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>'); ?>
- <?php } ?>
- </div>
-
- <?php } ?>
-
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
-
- <div class="wpsg_produkt_fuellmenge">
- <?php echo wpsg_translate(__('Füllmenge: #1# (#2# / #3#)', 'wpsg'),
- wpsg_ff($this->view['data']['fmenge'], $this->view['data']['feinheit'], true),
- wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')),
- wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
- ); ?>
- </div>
- <?php } ?>
- <?php /* Füllmengenanzeige ENDE */ ?>
-
- <?php /* Gewichtsanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
- <div class="wpsg_mod_weight_produkt">
- <?php echo wpsg_translate(__('Gewicht: #1# #2#', 'wpsg'), '<span id="weight_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'</span>', $this->get_option('wpsg_mod_weight_unit')); ?>
- </div>
- <?php } ?>
- <?php /* Gewichtsanzeige ENDE */ ?>
-
- <?php /* Varianten START */ ?>
- <div class="wpsg_produkt_varianten">
- <?php echo $this->callMod('wpsg_mod_varianten', 'renderTemplate', array($this->view['data']['id'])); ?>
- </div>
- <?php /* Varianten ENDE */ ?>
-
- <div class="wpsg_produkt_add_basket_wrapper">
-
- <label for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?>:</label>
-
- <input type="text" value="1" name="wpsg[menge]" class="wpsg_menge" id="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>" />
- <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]" />
-
- <?php if ($this->get_option('wpsg_afterinsert') == '2') { ?>
- <script type="text/javascript">
-
- jQuery(document).ready(function() {
-
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
-
- jQuery.ajax( {
- url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
- data:
- {
- wpsg_form_data: jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
- 'wpsg[ajax]': '1',
- 'wpsg[submit]': '1'
- },
- success: function(data)
- {
- tb_show('<?php echo __('Ihr Warenkorb', 'wpsg'); ?>', '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET_AJAX); ?>');
- }
- } );
-
- return false;
-
- } );
-
- } );
-
- </script>
- <?php } ?>
-
- </div>
-
- </div>
-
- <div class="wpsg_clear"></div>
-
- <?php /* Facebook und Co Integration aus dem Produktartikel Modul */ ?>
- <?php echo $this->callMod('wpsg_mod_produktartikel', 'socialIntegration', array($this->view['data']['id'])); ?>
- <?php /* Facebook und Co Integration ENDE */ ?>
-
- </div>
-
- <?php if (strlen(trim($this->view['data']['beschreibung'])) > 0) { ?>
- <div class="wpsg_produkt_additional_information">
-
- <div itemprop="description" class="wpsg_produkt_beschreibung">
- <?php echo $this->view['data']['beschreibung']; ?>
- </div>
-
- </div>
- <?php } ?>
-
- <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
-</div>
\ No newline at end of file diff --git a/views/produkttemplates/standard_1544.phtml b/views/produkttemplates/standard_1544.phtml deleted file mode 100644 index 62c92e4..0000000 --- a/views/produkttemplates/standard_1544.phtml +++ /dev/null @@ -1,435 +0,0 @@ -<?php
-
- /*
- * Template für das Produkt im Frontend
- */
-
- //Ausgabe der verfügbaren Variablen
- //wpsg_debug($_SESSION);
- //wpsg_debug($this->view['data']['stock']);
-
- // Damit keine Zubehörprodukte ausgegeben werden
- //$this->noReleatedProducts = true;
-
-?>
-<div class="wpsg_produkt_wrapper">
- <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
-
- <div class="wpsg_product_afterimage">
-
- <h2 itemprop="name" class="wpsg_producttitle"><?php echo wpsg_hspc($this->view['data']['name']); ?></h2>
-
- <?php /* Block für die Produktbilder START */ ?>
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <div class="wpsg_produkt_produktbilder">
- <?php if (sizeof($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])))) { ?>
- <?php $i = 0; foreach ($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])) as $b) { $i ++; ?>
- <?php if ($i == 1) { ?>
- <div class="wpsg_produkt_preview wpsg_pb_pic">
- <?php echo $this->callMod('wpsg_mod_produktbilder', 'genBild', array($this->view['data']['id'], $i, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'), 'pimage')); ?>
- <?php /*<img itemprop="image" id="wpsg_mainimage_<?php echo $this->getTemplateIndex(); ?>" src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'))); ?>" alt="" />*/?>
- </div>
- <?php } else { ?>
- <div class="wpsg_pb_pic" style="display:none;">
- <?php echo $this->callMod('wpsg_mod_produktbilder', 'genBild', array($this->view['data']['id'], $i, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'), 'pimage')); ?>
- </div>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <div class="wpsg_clear"></div>
- </div>
- <?php } ?>
- <?php /* Block für die Produktbilder ENDE */ ?>
-
- <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
- <div class="wpsg_artikelnummer">
- <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span>
- </div>
- <?php } ?>
-
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
- <?php echo __('Stückpreis:', 'wpsg'); ?>
- <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
- <span itemprop="price" class="preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>"><?php echo wpsg_ff($this->view['data']['preis']); ?></span> <?php echo $this->get_option('wpsg_currency'); ?><?php if (wpsg_isSizedString($this->view['data']['price_info'])) { echo '<div class="wpsg_priceinfo">'.wpsg_hspc($this->view['data']['price_info']).'</div>'; } ?>
- </div>
-
- <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?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>'); ?>
- </div>
-
- <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
- <?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>'); ?>
- <?php } else { /* Frontend = BRUTTO Preise */ ?>
- <?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>'); ?>
- <?php } ?>
- </div>
-
- <?php } ?>
-
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
-
- <div class="wpsg_produkt_fuellmenge">
- <?php echo wpsg_translate(__('Füllmenge: #1# (#2# / #3#)', 'wpsg'),
- '<span id="fmenge_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['fmenge'], '', true).'</span> '.$this->view['data']['feinheit'],
- '<span id="fmenge_gpreis_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['fmenge_preis']).'</span> '. $this->get_option('wpsg_currency'),
- wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
- ); ?>
- </div>
-
- <?php } ?>
- <?php /* Füllmengenanzeige ENDE */ ?>
-
- <?php /* Lieferzeit Anzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
-
- <div class="wpsg_mod_deliverytime">
- <?php echo wpsg_translate(__('Lieferzeit: #1#', 'wpsg'), $this->callMod('wpsg_mod_deliverytime', 'getProductDeliveryTime', array($this->view['data']['id']))); ?>
- </div>
-
- <?php } ?>
- <?php /* Lieferzeit Anzeige ENDE */ ?>
-
- <?php /* Gewichtsanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
- <div class="wpsg_mod_weight_produkt">
- <?php echo wpsg_translate(__('Gewicht: #1# #2#', 'wpsg'), '<span id="weight_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'</span>', $this->get_option('wpsg_mod_weight_unit')); ?>
- </div>
- <?php } ?>
- <?php /* Gewichtsanzeige ENDE */ ?>
-
- <?php /* Varianten START */ ?>
- <div class="wpsg_produkt_varianten"><?php
-
- // Damit sind werden die zusätzlichen Varianten ins View geladen, die Ausgabe erfolgt aber direkt hier im Template
- $this->callMod('wpsg_mod_varianten', 'renderTemplate', array($this->view['data']['id']));
-
- $arVarianten = @unserialize($this->view['data']['mod_varianten']);
-
- ?>
- <script type="text/javascript">/* <![CDATA[ */
-
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
- var wpsg_mod_fuellmenge_reference = <?php echo ((wpsg_isSizedInt($this->get_option('wpsg_mod_fuellmenge_bezug')))?$this->get_option('wpsg_mod_fuellmenge_bezug'):'0'); ?>;
- <?php } ?>
-
- <?php if (wpsg_isSizedArray($arVarianten)) { ?>
-
- var arVarianten<?php echo $this->view['data']['id']; ?> = jQuery.parseJSON('<?php echo json_encode($arVarianten); ?>');
-
- jQuery(document).ready(function() {
-
- jQuery('.wpsg_vp_field_<?php echo $this->view['data']['id']; ?> select').bind('change', function() {
-
- var var_id = jQuery(this).attr("name").replace(/wpsg_vp\[/, '').replace(/\]/, '');
-
- jQuery('.wpsg_produkt_<?php echo $this->view['data']['id']; ?> .wpsg_anr').text(arVarianten<?php echo $this->view['data']['id']; ?>[var_id]['vari'][jQuery(this).val()]['artnr']);
-
- } );
-
- jQuery('.wpsg_vp_field_<?php echo $this->view['data']['id']; ?> input[type="radio"]').bind('click', function() {
-
- var var_id = jQuery(this).attr("name").replace(/wpsg_vp\[/, '').replace(/\]/, '');
-
- jQuery('.wpsg_produkt_<?php echo $this->view['data']['id']; ?> .wpsg_anr').text(arVarianten<?php echo $this->view['data']['id']; ?>[var_id]['vari'][jQuery(this).val()]['artnr']);
-
- } );
-
- //jQuery('.wpsg_vp_field_<?php echo $this->view['data']['id']; ?> input[type="radio"]:checked').click();
-
- } );
-
- <?php } ?>
-
- wpsg_vp[<?php echo $this->view['data']['id']; ?>] = new Array();
- wpsg_vp_gp[<?php echo $this->view['data']['id']; ?>] = <?php echo $this->view['data']['preis']; ?>;
- wpsg_vp_vari[<?php echo $this->view['data']['id']; ?>] = new Array();
-
- <?php if (isset($this->view['data']['preis_original'])) { /* Rabattierter Originalpreis */ ?>
- wpsg_vp_original[<?php echo $this->view['data']['id']; ?>] = new Array();
- wpsg_vp_gp_original[<?php echo $this->view['data']['id']; ?>] = <?php echo $this->view['data']['preis_original']; ?>;
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_weight')) { ?>
- wpsg_wg[<?php echo $this->view['data']['id']; ?>] = new Array();
- wpsg_vp_gw[<?php echo $this->view['data']['id']; ?>] = <?php echo (($this->view['data']['weight'] != "")?$this->view['data']['weight']:'0'); ?>;
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
- wpsg_fmenge[<?php echo $this->view['data']['id']; ?>] = new Array();
- wpsg_vp_fmenge[<?php echo $this->view['data']['id']; ?>] = <?php echo (($this->view['data']['fmenge'] != "")?wpsg_tf($this->view['data']['fmenge']):'0'); ?>;
- <?php } ?>
-
- /* ]]> */</script>
-
- <?php $vAktiv = false; if (is_array($this->view['data']['vp_data']) && sizeof($this->view['data']['vp_data']) > 0) { ?>
- <?php foreach ($this->view['data']['vp_data'] as $k => $var) { if ($var['aktiv'] == "1") { $vAktiv = true; ?>
-
- <div class="wpsg_vp_field wpsg_vp_field_<?php echo $this->view['data']['id']; ?>">
-
- <script type="text/javascript">
-
- wpsg_vp_vari[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>] = "<?php echo $var['typ']; ?>";
- wpsg_vp[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>] = new Array();
-
- <?php if (isset($this->view['data']['preis_original'])) { ?>
- wpsg_vp_original[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>] = new Array();
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_weight')) { ?>
- wpsg_wg[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>] = new Array();
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
- wpsg_fmenge[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>] = new Array();
- <?php } ?>
-
- </script>
-
- <?php if ($var['typ'] != 'radio') { ?>
- <label class="wpsg_vp_field_label" for="wpsg_vpfield_<?php echo $this->view['data']['id']; ?>_<?php echo $k; ?>">
- <?php echo $var['name']; ?>
- </label>
- <?php } else { ?>
- <!-- <span class="wpsg_vp_field"><?php echo $var['name']; ?>:</span>-->
- <?php } ?>
-
- <div class="wpsg_vp_field_typ_<?php echo $var['typ']; ?>">
-
- <?php if ($var['typ'] == "select") { ?>
- <label>
-
- <script type="text/javascript">
- <?php foreach ($var['vari'] as $kv => $vari) { if ($vari['aktiv'] == "1") { ?>
- wpsg_vp[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>][<?php echo $kv; ?>] = <?php echo (($vari['preis'] != "")?$vari['preis']:'0'); ?>;
-
- <?php if (isset($vari['preis_original'])) { ?>
- wpsg_vp_original[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>][<?php echo $kv; ?>] = <?php echo (($vari['preis_original'] != "")?$vari['preis_original']:'0'); ?>;
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_weight')) { ?>
- wpsg_wg[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>][<?php echo $kv; ?>] = <?php echo (($vari['weight'] != "")?$vari['weight']:'0'); ?>;
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
- wpsg_fmenge[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>][<?php echo $kv; ?>] = <?php echo (($vari['fmenge'] != "")?wpsg_tf($vari['fmenge']):'0'); ?>;
- <?php } ?>
- <?php } } ?>
- </script>
-
- <select onchange="wpsg_vp_switch(<?php echo $this->view['data']['id']; ?>); wpsg_showpic_switch(this);" name="wpsg_vp[<?php echo $k; ?>]" id="wpsg_vpfield_<?php echo $this->view['data']['id']?>_<?php echo $k; ?>">
- <?php foreach ($var['vari'] as $kv => $vari) { if ($vari['aktiv'] == "1" && (!$this->hasMod('wpsg_mod_stock') || $vari['stock'] > 0)) { ?>
- <option value="<?php echo $kv; ?>">
- <?php echo $vari['name']; ?>
- <?php if ($this->callMod('wpsg_mod_varianten', 'showVariPrice', array($vari['preis']))) { ?>
- (<?php echo wpsg_ff($vari['preis'], $this->get_option('wpsg_currency')); ?>)
- <?php } ?>
- </option>
- <?php } } ?>
- </select>
- <?php if ($this->get_option("wpsg_vp_showpic") == "1") { ?>
- <span class="wpsg_vp_field_image">
- <?php $first = true; foreach ($var['vari'] as $kv => $vari) { if ($vari['aktiv'] == "1" && isset($vari['showpic'])) { ?>
- <span class="wpsg_vp_image wpsg_vp_image_<?php echo $kv; ?>" style="display:<?php echo (($first)?'block':'none'); ?>;">
- <?php echo $this->callMod('wpsg_mod_produktbilder', 'genBild', array($this->view['data']['id'], $vari['showpic'], $this->get_option("wpsg_vp_showpic_width"), $this->get_option("wpsg_vp_showpic_height"), 's')); ?>
- </span>
- <?php $first = false; } } ?>
- </span>
- <?php } ?>
- </label>
- <?php } ?>
-
- <?php if ($var['typ'] == "radio") { ?>
- <?php $j = 0; foreach ($var['vari'] as $kv => $vari) { if ($vari['aktiv'] == "1" && (!$this->hasMod('wpsg_mod_stock') || $vari['stock'] > 0)) { $j ++; ?>
- <script type="text/javascript">
-
- wpsg_vp[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>][<?php echo $kv; ?>] = <?php echo (($vari['preis'] != "")?$vari['preis']:'0'); ?>;
-
- <?php if (isset($vari['preis_original'])) { ?>
- wpsg_vp_original[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>][<?php echo $kv; ?>] = <?php echo (($vari['preis_original'] != "")?$vari['preis_original']:'0'); ?>;
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_weight')) { ?>
- wpsg_wg[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>][<?php echo $kv; ?>] = <?php echo (($vari['weight'] != "")?$vari['weight']:'0'); ?>;
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
- wpsg_fmenge[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>][<?php echo $kv; ?>] = <?php echo (($vari['fmenge'] != "")?wpsg_tf($vari['fmenge']):'0'); ?>;
- <?php } ?>
-
- </script>
- <?php } } ?>
- <?php $arVariGroup = array(); $j = 0; foreach ($var['vari'] as $kv => $vari) { if ($vari['aktiv'] == "1" && (!$this->hasMod('wpsg_mod_stock') || $vari['stock'] > 0)) { $j ++; ?>
- <?php
-
- // Gruppieren
- $variCode = wpsg_trim(explode('|', $vari['name']));
-
- if (sizeof($variCode) == 2)
- {
-
- $arVariGroup[$variCode[0]][] = array('kv' => $kv, 'j' => $j, 'name' => $variCode[1], 'vari' => $vari);
-
- }
- else
- {
-
- $arVariGroup[0][] = array('kv' => $kv, 'j' => $j, 'name' => $variCode[0], 'vari' => $vari);
-
- }
-
- ?>
- <?php } } ?>
-
- <?php foreach ($arVariGroup as $vg_name => $vg) { ?>
- <div class="vari_group" style="clear:both;">
- <?php if (wpsg_isSizedString($vg_name)) { ?>
- <div class="vari_groupname"><?php echo __($vg_name, 'wpsg'); ?></div>
- <?php } else { ?>
- <br />
- <?php } ?>
- <div class="vari_group_select">
- <?php foreach ($vg as $group_vari) { $vari = $group_vari['vari']; ?>
- <label>
- <input id="wpsg_vpfield_<?php echo $this->view['data']['id']; ?>_<?php echo $k; ?>_<?php echo $group_vari['j']; ?>" <?php echo (($group_vari['j'] == 1)?'checked="checked"':''); ?> onclick="wpsg_vp_switch(<?php echo $this->view['data']['id']; ?>);" type="radio" name="wpsg_vp[<?php echo $k; ?>]" value="<?php echo $group_vari['kv']; ?>" /> <?php echo $group_vari['name']; ?>
- <?php if ($this->callMod('wpsg_mod_varianten', 'showVariPrice', array($vari['preis']))) { ?>
- <span class="wpsg_vp_vari_preisinfo">(<?php echo wpsg_ff($vari['preis'], $this->get_option('wpsg_currency')); ?>)</span>
- <?php } ?>
- <?php if ($this->get_option("wpsg_vp_showpic") == "1" && $vari['showpic'] != false) { ?>
- <span class="wpsg_vp_field_image">
- <?php echo $this->callMod('wpsg_mod_produktbilder', 'genBild', array($this->view['data']['id'], $vari['showpic'], $this->get_option("wpsg_vp_showpic_width"), $this->get_option("wpsg_vp_showpic_height"), 's')); ?>
- </span>
- <?php } ?>
- </label>
- <?php } ?>
- </div>
- </div>
- <?php } ?>
-
- <?php } ?>
-
- <?php if ($var['typ'] == "checkbox" && $var['aktiv'] == 1 && (!$this->hasMod('wpsg_mod_stock') || $var['stock'] > 0)) { ?>
- <script type="text/javascript">
-
- wpsg_vp[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>] = <?php echo (($var['preis'] != "")?$var['preis']:'0'); ?>;
-
- <?php if (isset($vari['preis_original'])) { ?>
- wpsg_vp_original[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>][<?php echo $kv; ?>] = <?php echo (($vari['preis_original'] != "")?$vari['preis_original']:'0'); ?>;
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_weight')) { ?>
- wpsg_wg[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>] = <?php echo (($var['weight'] != "")?$var['weight']:'0'); ?>;
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
- wpsg_fmenge[<?php echo $this->view['data']['id']; ?>][<?php echo $k; ?>] = <?php echo (($var['fmenge'] != "")?wpsg_tf($var['fmenge']):'0'); ?>;
- <?php } ?>
-
- </script>
- <label>
- <input onchange="wpsg_vp_switch(<?php echo $this->view['data']['id']; ?>);" type="hidden" value="0" name="wpsg_vp[<?php echo $k; ?>]" />
- <input onchange="wpsg_vp_switch(<?php echo $this->view['data']['id']; ?>);" type="checkbox" value="1" name="wpsg_vp[<?php echo $k; ?>]" />
- <?php if ($this->callMod('wpsg_mod_varianten', 'showVariPrice', array($var['preis']))) { ?>
- <span class="wpsg_vp_vari_preisinfo">(<?php echo wpsg_ff($var['preis'], $this->get_option('wpsg_currency')); ?>)</span>
- <?php } ?>
- <?php if ($this->get_option("wpsg_vp_showpic") == "1" && $var['showpic'] != false) { ?>
- <span class="wpsg_vp_field_image">
- <?php echo $this->callMod('wpsg_mod_produktbilder', 'genBild', array($this->view['data']['id'], $var['showpic'], $this->get_option("wpsg_vp_showpic_width"), $this->get_option("wpsg_vp_showpic_height"), 's')); ?>
- </span>
- <?php } ?>
- </label>
- <?php } ?>
-
- </div>
-
- <div style="clear:both;"></div>
-
- </div>
-
- <?php } } ?>
-
- <script type="text/javascript">
-
- jQuery(document).ready(function() {
-
- <?php if ($vAktiv) { ?>
- wpsg_vp_switch(<?php echo $this->view['data']['id']; ?>);
- <?php } ?>
- //jQuery('.wpsg_vp_field select').change();
-
- } );
-
- </script>
-
- <?php } ?>
- </div>
- <?php /* Varianten ENDE */ ?>
-
- <div class="wpsg_produkt_add_basket_wrapper">
-
- <label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?>:</label>
-
- <input type="text" value="1" name="wpsg[menge]" class="wpsg_menge" id="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>" />
-
- <?php if ($this->get_option('wpsg_afterinsert') == '2') { ?>
- <script type="text/javascript">
-
- jQuery(document).ready(function() {
-
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
-
- jQuery.ajax( {
- url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
- data:
- {
- wpsg_form_data: jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
- 'wpsg[ajax]': '1',
- 'wpsg[submit]': '1'
- },
- success: function(data)
- {
- tb_show('<?php echo __('Ihr Warenkorb', 'wpsg'); ?>', '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET_AJAX); ?>&height=500');
- }
- } );
-
- return false;
-
- } );
-
- } );
-
- </script>
- <?php } ?>
-
- </div>
-
- <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]" />
-
- <div class="wpsg_clear"></div>
-
- <?php /* Facebook und Co Integration aus dem Produktartikel Modul */ ?>
- <?php echo $this->callMod('wpsg_mod_produktartikel', 'socialIntegration', array($this->view['data']['id'])); ?>
- <?php /* Facebook und Co Integration ENDE */ ?>
-
- </div>
-
- </div>
-
- <?php if (strlen(trim($this->view['data']['beschreibung'])) > 0) { ?>
- <div class="wpsg_produkt_additional_information">
-
- <div itemprop="description" class="wpsg_produkt_beschreibung">
- <?php echo $this->view['data']['beschreibung']; ?>
- </div>
-
- </div>
- <?php } ?>
-
- <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
-</div>
\ No newline at end of file diff --git a/views/produkttemplates/standard_ajax.phtml b/views/produkttemplates/standard_ajax.phtml deleted file mode 100644 index 51f6065..0000000 --- a/views/produkttemplates/standard_ajax.phtml +++ /dev/null @@ -1,196 +0,0 @@ -<?php
-
- /*
- * Template für das Produkt im Frontend
- */
-
- //Ausgabe der verfügbaren Variablen
- //wpsg_debug($this->view['data']);
-
- // Damit keine Zubehörprodukte ausgegeben werden
- //$this->noReleatedProducts = true;
-
- //wpsg_debug($_SESSION);
-
-?>
-<div class="wpsg_produkt_wrapper">
- <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
-
- <div class="wpsg_product_afterimage">
-
- <h2 itemprop="name" class="wpsg_producttitle"><?php echo $this->getProductName($this->view['data']['id']); ?></h2>
-
- <?php /* Block für die Produktbilder START */ ?>
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <div class="wpsg_produkt_produktbilder">
- <?php if (sizeof($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])))) { ?>
- <?php $i = 0; foreach ($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])) as $b) { $i ++; ?>
- <?php if ($i == 1 && !wpsg_isSizedString($this->view['data']['varianten_image']) || $b == $this->view['data']['varianten_image']) { ?>
- <div class="wpsg_produkt_preview wpsg_pb_pic">
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>" href="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, 800, 600, $this->get_option('wpsg_mod_produktbilder_mode'))); ?>">
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'))); ?>" alt="<?php echo wpsg_hspc($this->view['data']['name']); ?>" />
- </a>
- </div>
- <?php } else { ?>
- <div class="wpsg_pb_pic" style="display:none;">
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>" href="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, 800, 600, $this->get_option('wpsg_mod_produktbilder_mode'))); ?>">
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'))); ?>" alt="<?php echo wpsg_hspc($this->view['data']['name']); ?>" />
- </a>
- </div>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <div class="wpsg_clear"></div>
- </div>
- <?php } ?>
- <?php /* Block für die Produktbilder ENDE */ ?>
-
- <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
- <div class="wpsg_artikelnummer">
- <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span>
- </div>
- <?php } ?>
-
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
- <?php echo __('Stückpreis:', 'wpsg'); ?>
- <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
- <span itemprop="price" class="wpsg_preis preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>">
- <?php echo wpsg_ff($this->view['data']['preis'], $this->get_option('wpsg_currency')); ?>
- </span> <?php if (wpsg_isSizedString($this->view['data']['price_info'])) { echo '<div class="wpsg_priceinfo">'.wpsg_hspc($this->view['data']['price_info']).'</div>'; } ?>
- <?php if ($this->hasMod('wpsg_mod_discount') && $this->view['data']['preis_prediscount'] > 0 && wpsg_isSizedInt($this->get_option('wpsg_mod_discount_show'))) { ?>
-
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis new_price">
- <?php echo __('Unser Preis: ', 'wpsg'); ?>
- <?php } else { } ?>
- <br /><?php echo __('bisher', 'wpsg'); ?>: <span class="wpsg_preis_prediscount"><?php echo wpsg_ff($this->view['data']['preis_prediscount'], $this->get_option('wpsg_currency')); ?></span>
- </div>
-
- <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?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>'); ?>
- </div>
-
- <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
- <?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>'); ?>
- <?php } else { /* Frontend = BRUTTO Preise */ ?>
- <?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>'); ?>
- <?php } ?>
- </div>
-
- <?php } ?>
-
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
-
- <div class="wpsg_produkt_fuellmenge">
- <?php echo wpsg_translate(__('Füllmenge: #1# (#2# / #3#)', 'wpsg'),
- '<span class="wpsg_fmenge">'.wpsg_ff($this->view['data']['fmenge'], '', true).'</span> '.$this->view['data']['feinheit'],
- '<span class="fmenge_preis">'.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).'</span> ',
- wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
- ); ?>
- </div>
-
- <?php } ?>
- <?php /* Füllmengenanzeige ENDE */ ?>
-
- <?php /* Lieferzeit Anzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
-
- <div class="wpsg_mod_deliverytime">
- <?php echo wpsg_translate(__('Lieferzeit: #1#', 'wpsg'), $this->callMod('wpsg_mod_deliverytime', 'getProductDeliveryTime', array($this->view['data']['id']))); ?>
- </div>
-
- <?php } ?>
- <?php /* Lieferzeit Anzeige ENDE */ ?>
-
- <?php /* Gewichtsanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
- <div class="wpsg_mod_weight_produkt">
- <?php echo wpsg_translate(__('Gewicht: #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')); ?>
- </div>
- <?php } ?>
- <?php /* Gewichtsanzeige ENDE */ ?>
-
- <?php /* Varianten START */ ?>
- <div class="wpsg_produkt_varianten">
- <?php echo $this->callMod('wpsg_mod_varianten', 'renderTemplate', array($this->view['data']['product_key'])); ?>
- </div>
- <?php /* Varianten ENDE */ ?>
-
- <div class="wpsg_produkt_add_basket_wrapper">
-
- <label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?>:</label>
-
- <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" ':''); ?>
- />
-
- <?php $ti = $this->getTemplateIndex(); ?>
-<script type="text/javascript">/* <![CDATA[ */
-
- jQuery(document).ready(function() {
-
- jQuery('.wpsg_add_basket_<?php echo $ti; ?>').bind('click', function() {
-
- jQuery.ajax( {
- url: '<?php echo admin_url('admin-ajax.php'); ?>',
- async: false,
- data: {
- form_data: jQuery('#wpsg_produktform_<?php echo $ti; ?>').serialize(),
- action: 'ds_productadd'
- },
- success: function(data)
- {
-
- jQuery('#wpsg-widget').replaceWith(data);
-
- alert('<?php echo __('Produkt wurde erfolgreich hinzugefügt.', 'wpsg'); ?>');
-
- }
- } );
-
- return false;
-
- } );
-
- } );
-
-/* ]]> */</script>
-
- </div>
-
- <?php if ($this->view['oProduct']->canOrder()) { ?>
- <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]" />
- <?php } ?>
-
- <?php if ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?>
- <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]" />
- <?php } ?>
-
- <div class="wpsg_clear"></div>
-
- <?php /* Facebook und Co Integration aus dem Produktartikel Modul */ ?>
- <?php echo $this->callMod('wpsg_mod_produktartikel', 'socialIntegration', array($this->view['data']['id'])); ?>
- <?php /* Facebook und Co Integration ENDE */ ?>
-
- </div>
-
- </div>
-
- <?php if (strlen(trim($this->view['data']['beschreibung'])) > 0) { ?>
- <div class="wpsg_produkt_additional_information">
-
- <div itemprop="description" class="wpsg_produkt_beschreibung">
- <?php echo $this->view['data']['beschreibung']; ?>
- </div>
-
- </div>
- <?php } ?>
-
- <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
-</div>
\ No newline at end of file diff --git a/views/produkttemplates/standard_alt.phtml b/views/produkttemplates/standard_alt.phtml deleted file mode 100644 index 3f419a5..0000000 --- a/views/produkttemplates/standard_alt.phtml +++ /dev/null @@ -1,327 +0,0 @@ -<?php
-
- /*
- * Template für das Produkt im Frontend
- */
-
- //Ausgabe der verfügbaren Variablen
- //wpsg_debug($this->view['data']);
-
- // Damit keine Zubehörprodukte ausgegeben werden
- //$this->noReleatedProducts = true;
-
- //wpsg_debug($_SESSION);
-
-if (!function_exists('is_plugin_active'))
- require_once(ABSPATH.'/wp-admin/includes/plugin.php');
-?>
-<div class="container container-fluid-page">
-
- <div class="wpsg_produkt_wrapper">
-
- <input type="hidden" name="wpsg_post_id" value="<?php echo get_the_ID(); ?>" />
-
- <?php $this->callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
- <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
-
- <div class="wpsg_product_mod_information_left">
- <div class="wpsg_product_afterimage">
- <?php /* Block für die Produktbilder START */ ?>
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <div class="wpsg_produkt_produktbilder">
- <?php if (sizeof($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])))) { ?>
- <?php $i = 0; foreach ($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])) as $b) { $i ++; ?>
- <?php if ($i == 1 && !wpsg_isSizedString($this->view['data']['varianten_image']) || $b == $this->view['data']['varianten_image']) { ?>
- <div class="wpsg_produkt_preview wpsg_pb_pic">
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>" href="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, 800, 600, $this->get_option('wpsg_mod_produktbilder_mode'))); ?>">
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'))); ?>" alt="<?php echo wpsg_hspc($this->view['data']['name']); ?>" />
- </a>
- </div>
- <?php } else { ?>
- <div class="wpsg_pb_pic" style="display:none;">
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>" href="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, 800, 600, $this->get_option('wpsg_mod_produktbilder_mode'))); ?>">
- <img src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'))); ?>" alt="<?php echo wpsg_hspc($this->view['data']['name']); ?>" />
- </a>
- </div>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <div class="wpsg_clear"></div>
- </div>
- <?php } ?>
- <?php /* Block für die Produktbilder ENDE */ ?>
- </div>
- </div>
-
- <div class="wpsg_product_mod_information_right">
- <?php /* Block für Produktbeschreibung START */ ?>
- <div class="wpsg_produkt wpsg_product_name">
- <h1 itemprop="name" class="wpsg_producttitle"><?php echo $this->getProductName($this->view['data']['id']); ?></h1>
- <?php $this->callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
- </div>
- <br/>
- <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
- <div class="wpsg_artikelnummer">
- <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span><br />
- <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_ean'))) {?>
- <?php echo __('EAN','wpsg');?>:<span class="wpsg_ean"><?php echo wpsg_hspc($this->view['data']['ean']); ?></span><br />
- <?php } ?>
- <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_gtin'))) {?>
- <?php echo __('GTIN','wpsg');?>:<span class="wpsg_gtin"><?php echo wpsg_hspc($this->view['data']['gtin']); ?></span><br />
- <?php }?></div>
- <?php } ?>
-
- <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt START*/ ?>
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
-
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
- <label><?php echo __('Stückpreis:', 'wpsg'); ?></label>
- <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
- <span itemprop="price" class="wpsg_preis preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>">
- <?php echo wpsg_ff($this->view['data']['preis'], $this->get_option('wpsg_currency')); ?>
- </span> <?php if (wpsg_isSizedString($this->view['data']['price_info'])) { echo '<div class="wpsg_priceinfo">'.wpsg_hspc($this->view['data']['price_info']).'</div>'; } ?>
-
- <?php if ($this->hasMod('wpsg_mod_discount') && wpsg_getInt($this->view['data']['preis_prediscount']) > 0 && wpsg_isSizedInt($this->get_option('wpsg_mod_discount_show'))) { ?>
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis new_price">
- <?php echo __('Originalpreis', 'wpsg'); ?>: <span class="wpsg_preis_prediscount"><?php echo wpsg_ff($this->view['data']['preis_prediscount'], $this->get_option('wpsg_currency')); ?></span>
- </div>
- <?php } ?>
- </div>
-
- <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?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>'); ?>
- </div>
-
- <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
- <?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>'); ?>
- <?php } else { /* Frontend = BRUTTO Preise */ ?>
- <?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>'); ?>
- <?php } ?>
- </div>
-
- <?php } ?>
- <?php } else {?>
-
- <?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.')); ?>
-
-
- <?php }?>
- <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt ENDE */ ?>
-
- <div itemprop="description" class="wpsg_produkt_shortdescription">
- <h3><?php echo wpsg_translate(__('Produktbeschreibung', 'wpsg')); ?></h3>
- <span><?php echo $this->view['data']['shortdesc']; ?></span>
- </div>
-
- <div class="wpsg_product_informations_left">
- <?php /* Lagerbestand START*/?>
- <?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?>
- <div class="wpsg_mod_produktindex_stock">
- <img src="<?php echo WPSG_URL_WP;?>wp-content/plugins/wpshopgermany/views/gfx/stock_pos.png" />
- <label><?php echo wpsg_translate(__('#1#','wpsg'), $this->view['data']['stock']); ?></label><?php echo wpsg_translate(__(' Artikel auf Lager', 'wpsg')); ?>
- </div>
- <?php } ?>
- <?php /* Lagerbestand ENDE*/?>
-
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
-
- <div class="wpsg_produkt_fuellmenge">
- <label><?php echo wpsg_translate(__('Füllmenge:', 'wpsg')); ?></label>
- <?php echo wpsg_translate(__('#1# (#2# / #3#)', 'wpsg'),
- '<span class="wpsg_fmenge">'.wpsg_ff($this->view['data']['fmenge'], '', true).'</span> '.$this->view['data']['feinheit'],
- '<span class="fmenge_preis">'.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).'</span> ',
- wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
- ); ?>
- </div>
-
- <?php } ?>
- <?php /* Füllmengenanzeige ENDE */ ?>
- </div>
-
- <div class="wpsg_product_informations_right">
- <?php /* Lieferzeit Anzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
-
- <?php /* Produkt nur im Store, nicht im Onlineshop vorhanden */ ?>
- <?php if ($this->callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($this->view['data']['product_key']))) {?>
-
- <span class="wpsg_product_only_store"><?php echo wpsg_translate($this->get_option('wpsg_mod_deliverytime_storetext')); ?></span>
- <?php if (wpsg_isSizedInt($this->get_option('wpsg_page_mod_deliverytime_storelink'))) { ?>
- <a href="<?php echo get_permalink($this->get_option('wpsg_page_mod_deliverytime_storelink')); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
- <?php } ?>
- <br />
-
- <?php } else {?>
- <div class="wpsg_mod_deliverytime">
- <img src="<?php echo WPSG_URL_WP;?>wp-content/plugins/wpshopgermany/views/gfx/deliverytime.png" />
- <label><?php echo wpsg_translate(__('Lieferzeit:', 'wpsg')); ?></label>
- <?php echo $this->callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?>
-
- </div>
-
- <?php $strDelayNote = $this->callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?>
- <?php if (wpsg_isSizedString($strDelayNote)) { ?>
- <div class="wpsg_mod_deliverytime_offline">
- <img src="<?php echo WPSG_URL_WP;?>wp-content/plugins/wpshopgermany/views/gfx/deliverytime-offline.png" />
- <div class="wpsg_mod_deliverytime_delay"><?php echo wpsg_hspc($strDelayNote); ?></div>
- </div>
- <?php } ?>
-
- <?php } ?>
- <?php } ?>
- <?php /* Lieferzeit Anzeige ENDE */ ?>
-
- <?php /* Gewichtsanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
- <div class="wpsg_mod_weight_produkt">
- <label><?php echo wpsg_translate(__('Gewicht:', 'wpsg')); ?></label>
- <?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')); ?>
- </div>
- <?php } ?>
- <?php /* Gewichtsanzeige ENDE */ ?>
-
- <?php /* Varianten START */ ?>
- <div class="wpsg_produkt_varianten">
- <?php echo $this->callMod('wpsg_mod_varianten', 'renderTemplate', array($this->view['data']['product_key'])); ?>
- </div>
- <?php /* Varianten ENDE */ ?>
- </div>
-
- <div class="wpsg_clear"></div>
-
- <div class="wpsg_product_buttonarea">
- <div class="wpsg_product_buttons_add_basket">
- <?php if ($this->callMods('productForSale', array($this->view['data']['product_key'])) || ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id'])))) { ?>
- <div class="wpsg_produkt_add_basket_wrapper">
-
- <label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?>:</label>
-
- <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" ':''); ?>
- />
-
- <?php if (in_array($this->get_option('wpsg_afterinsert'), array('2', '3'))) { ?>
- <script type="text/javascript">
-
- jQuery(document).ready(function() {
-
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
-
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').prop('disabled', true);
-
- jQuery.ajax( {
- url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
- data:
- {
- 'wpsg_form_data': jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
- 'wpsg[ajax]': '1',
- 'wpsg[submit]': '1'
- },
- success: function(data)
- {
-
- <?php if ($this->get_option('wpsg_afterinsert') == '2') { ?>
- tb_show('<?php echo __('Ihr Warenkorb', 'wpsg'); ?>', '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET_AJAX); ?>&height=500');
- <?php } else { ?>
-
- jQuery('#wpsg_basket_ajax_message_wrap').remove();
- jQuery('body').append('<div id="wpsg_basket_ajax_message_wrap">' + data + '</div>');
-
- <?php } ?>
-
- wpsg_refreshBasketWidget();
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').prop('disabled', false);
-
- }
- } );
-
- return false;
-
- } );
-
- } );
-
- </script>
- <?php } ?>
-
- <div class="wpsg_clear"></div>
-
- </div>
- <?php } ?>
- </div>
-
- <?php /* Abfrage Warenkorbanzeige nur für eingeloggte Benutzer START */ ?>
- <div class="wpsg_product_button_basket">
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
- <?php if ($this->callMods('productForSale', array($this->view['data']['product_key']))) { ?>
- <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]" />
- <?php } ?>
- <?php }else{?>
- <a class="wpsg_blind_basket_button" href="#"><?php echo wpsg_translate(__('Loggen Sie sich bitte ein, um zu bestellen', 'wpsg')); ?></a>
- <?php } ?>
- <?php /* Abfrage Warenkorbanzeige nur für eingeloggte Benutzer ENDE */ ?>
- </div>
- </div>
-
- <div class="wpsg_clear"></div>
-
- <?php if ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?>
- <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]" />
- <?php } ?>
-
- </div>
-
- <div class="wpsg_clear"></div>
-
- </div>
-
- <?php /* Produktcontentbereich START */ ?>
- <div class="wpsg_product_informationarea">
-
- <?php if (strlen(trim($this->view['data']['longdescription'])) > 0) { ?>
- <div class="wpsg_product_information_large">
- <div class="wpsg_produkt_additional_information">
- <div itemprop="description" class="wpsg_produkt_longdescription">
- <h3><?php echo wpsg_translate(__('Beschreibung', 'wpsg')); ?></h3>
- <span><?php echo $this->view['data']['longdescription']; ?></span>
- </div>
- </div>
- </div>
- <?php } ?>
-
- <div class="wpsg_product_information_more">
- <div itemprop="description" class="wpsg_produkt_more_information">
- <h3><?php echo wpsg_translate(__('Zusätzliche Informationen', 'wpsg')); ?></h3>
- </div>
- </div>
-
- <div class="wpsg_product_assessment">
- <div itemprop="description" class="wpsg_product_assessments">
- <h3><?php echo wpsg_translate(__('Bewertungen', 'wpsg')); ?></h3>
- </div>
- </div>
-
- <?php /* Produktcontentbereich ENDE */ ?>
- </div>
-
- <div class="wpsg_clear"></div>
-
- <?php /* Social Media Integration */ ?>
- <div class="wpsg_product_social_media">
- <?php if ( is_plugin_active( 'plugin-directory/shariff.php' )) {?>
- <?=do_shortcode('[shariff]')?>
- <?php } ?>
- </div>
-
- <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
- </div>
-
-</div>
\ No newline at end of file diff --git a/views/produkttemplates/standard_login.phtml b/views/produkttemplates/standard_login.phtml deleted file mode 100644 index 277adc7..0000000 --- a/views/produkttemplates/standard_login.phtml +++ /dev/null @@ -1,177 +0,0 @@ -<?php
-
- /*
- * Template für das Produkt im Frontend
- * zeigt Preise, Menge und Warenkorb Button nur bei Login des Kunden
- */
-
- //Ausgabe der verfügbaren Variablen
- //wpsg_debug($_SESSION);
- //wpsg_debug($this->view['data']['stock']);
-
- // Damit keine Zubehörprodukte ausgegeben werden
- //$this->noReleatedProducts = true;
-
-?>
-<div class="wpsg_produkt_wrapper">
- <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
-
- <?php /* Block für die Produktbilder START */ ?>
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <div class="wpsg_produkt_produktbilder">
- <?php if (sizeof($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])))) { ?>
- <?php $i = 0; foreach ($this->callMod('wpsg_mod_produktbilder', 'getProduktBilder', array($this->view['data']['id'])) as $b) { $i ++; ?>
- <?php if ($i == 1) { ?>
- <div class="wpsg_produkt_preview wpsg_pb_pic">
- <?php echo $this->callMod('wpsg_mod_produktbilder', 'genBild', array($this->view['data']['id'], $i, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'), 'pimage')); ?>
- <?php /*<img itemprop="image" id="wpsg_mainimage_<?php echo $this->getTemplateIndex(); ?>" src="<?php echo $this->callMod('wpsg_mod_produktbilder', 'makeTn', array($this->view['data']['id'], $b, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'))); ?>" alt="" />*/?>
- </div>
- <?php } else { ?>
- <div class="wpsg_pb_pic" style="display:none;">
- <?php echo $this->callMod('wpsg_mod_produktbilder', 'genBild', array($this->view['data']['id'], $i, $this->get_option('wpsg_mod_produktbilder_width'), $this->get_option('wpsg_mod_produktbilder_height'), $this->get_option('wpsg_mod_produktbilder_mode'), 'pimage')); ?>
- </div>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <div class="wpsg_clear"></div>
- </div>
- <?php } ?>
- <?php /* Block für die Produktbilder ENDE */ ?>
-
- <div class="wpsg_produkt_right">
-
- <h1 itemprop="name" class="wpsg_producttitle"><?php echo wpsg_hspc($this->view['data']['name']); ?></h1>
-
- <div class="wpsg_artikelnummer">
- <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span>
- </div>
-
- <!-- Beginn Login abfrage -->
- <?php if ($this->callMod('wpsg_mod_kundenverwaltung', 'getUserStatus', array($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn'))) == true) { ?>
- <!-- Beginn Login abfrage -->
-
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
- <?php echo __('Stückpreis:', 'wpsg'); ?>
- <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
- <span itemprop="price" class="preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>"><?php echo wpsg_ff($this->view['data']['preis']); ?></span> <?php echo $this->get_option('wpsg_currency'); ?>
- </div>
-
- <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?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>'); ?>
- </div>
-
- <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
- <?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>'); ?>
- <?php } else { /* Frontend = BRUTTO Preise */ ?>
- <?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>'); ?>
- <?php } ?>
- </div>
-
- <?php } ?>
-
- <!-- Ende Login abfrage -->
- <?php } ?>
- <!-- Ende Login abfrage -->
-
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
-
- <div class="wpsg_produkt_fuellmenge">
- <?php echo wpsg_translate(__('Füllmenge: #1# (#2# / #3#)', 'wpsg'),
- wpsg_ff($this->view['data']['fmenge'], $this->view['data']['feinheit'], true),
- wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')),
- wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
- ); ?>
- </div>
- <?php } ?>
- <?php /* Füllmengenanzeige ENDE */ ?>
-
- <?php /* Gewichtsanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
- <div class="wpsg_mod_weight_produkt">
- <?php echo wpsg_translate(__('Gewicht: #1# #2#', 'wpsg'), '<span id="weight_'.$this->view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'</span>', $this->get_option('wpsg_mod_weight_unit')); ?>
- </div>
- <?php } ?>
- <?php /* Gewichtsanzeige ENDE */ ?>
-
- <?php /* Varianten START */ ?>
- <div class="wpsg_produkt_varianten">
- <?php echo $this->callMod('wpsg_mod_varianten', 'renderTemplate', array($this->view['data']['id'])); ?>
- </div>
- <?php /* Varianten ENDE */ ?>
-
- <!-- Beginn Login abfrage -->
- <?php if ($this->callMod('wpsg_mod_kundenverwaltung', 'getUserStatus', array($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn'))) == true) { ?>
- <!-- Beginn Login abfrage -->
-
- <div class="wpsg_produkt_add_basket_wrapper">
-
- <label for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?>:</label>
-
- <input type="text" value="1" name="wpsg[menge]" class="wpsg_menge" id="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>" />
- <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]" />
-
- <?php if ($this->get_option('wpsg_afterinsert') == '2') { ?>
- <script type="text/javascript">
-
- jQuery(document).ready(function() {
-
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
-
- jQuery.ajax( {
- url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
- data:
- {
- wpsg_form_data: jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
- 'wpsg[ajax]': '1',
- 'wpsg[submit]': '1'
- },
- success: function(data)
- {
- tb_show('<?php echo __('Ihr Warenkorb', 'wpsg'); ?>', '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET_AJAX); ?>&height=450');
- }
- } );
-
- return false;
-
- } );
-
- } );
-
- </script>
- <?php } ?>
-
- </div>
-
- <!-- Ende Login abfrage -->
- <?php } ?>
- <!-- Ende Login abfrage -->
-
- </div>
-
- <div class="wpsg_clear"></div>
-
- <?php /* Facebook und Co Integration aus dem Produktartikel Modul */ ?>
- <?php echo $this->callMod('wpsg_mod_produktartikel', 'socialIntegration', array($this->view['data']['id'])); ?>
- <?php /* Facebook und Co Integration ENDE */ ?>
-
- </div>
-
- <?php if (strlen(trim($this->view['data']['beschreibung'])) > 0) { ?>
- <div class="wpsg_produkt_additional_information">
-
- <div itemprop="description" class="wpsg_produkt_beschreibung">
- <?php echo $this->view['data']['beschreibung']; ?>
- </div>
-
- </div>
- <?php } ?>
-
- <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
-</div>
\ No newline at end of file diff --git a/views/produkttemplates/standard_mt.phtml b/views/produkttemplates/standard_mt.phtml deleted file mode 100644 index 632f7e3..0000000 --- a/views/produkttemplates/standard_mt.phtml +++ /dev/null @@ -1,341 +0,0 @@ -<?php
-
- /*
- * Template für das Produkt im Frontend
- */
-
- //Ausgabe der verfügbaren Variablen
- //wpsg_debug($this->view['data']);
-
- // Damit keine Zubehörprodukte ausgegeben werden
- //$this->noReleatedProducts = true;
-
- //wpsg_debug($_SESSION);
-
-if (!function_exists('is_plugin_active'))
- require_once(ABSPATH.'/wp-admin/includes/plugin.php');
-?>
-<div class="container container-fluid-page">
-
- <div class="wpsg_produkt_wrapper">
-
- <input type="hidden" name="wpsg_post_id" value="<?php echo get_the_ID(); ?>" />
-
- <?php $this->callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
- <div itemscope itemtype="http://schema.org/Product" class="wpsg_produkt wpsg_produkt_<?php echo $this->view['data']['id']; ?>">
-
- <div class="wpsg_product_mod_information_left">
- <div class="wpsg_product_afterimage">
- <?php /* Block für die Produktbilder START */ ?>
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <div class="wpsg_produkt_produktbilder">
- <?php
- $pbw = $this->get_option('wpsg_mod_produktbilder_width');
- $pbh = $this->get_option('wpsg_mod_produktbilder_height');
- $pbm = $this->get_option('wpsg_mod_produktbilder_mode');
- $pbArr = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['data']['id']));
- ?>
- <?php if (sizeof($pbArr)) { ?>
- <?php $i = 0; foreach ($pbArr as $b) { $i ++; ?>
- <?php if ($i == 1 && !wpsg_isSizedString($this->view['data']['varianten_image']) || $b['basename'] == $this->view['data']['varianten_image']) { ?>
- <div class="wpsg_produkt_preview wpsg_pb_pic">
- <?php
- $href = wp_get_attachment_image_src($b['post_id'], Array(800, 600));
- $imgtag = wp_get_attachment_image($b['post_id'], Array($pbw, $pbh));
- ?>
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>"
- href="<?php echo $href[0]; ?>"> <?php echo $imgtag; ?>
- </a>
- </div>
- <?php } else { ?>
- <div class="wpsg_pb_pic" style="display:none;">
- <?php
- $href = wp_get_attachment_image_src($b['post_id'], Array(800, 600));
- $imgtag = wp_get_attachment_image($b['post_id'], Array($pbw, $pbh));
- ?>
- <a class="wpsg_imagelink thickbox" rel="<?php echo $this->view['product_index']; ?>-<?php echo $this->view['data']['id']; ?>" href="<?php echo $href[0]; ?>">
- <?php echo $imgtag; ?>
- </a>
- </div>
- <?php } ?>
- <?php } ?>
- <?php } ?>
- <div class="wpsg_clear"></div>
- </div>
- <?php } ?>
- <?php /* Block für die Produktbilder ENDE */ ?>
- </div>
- </div>
-
- <div class="wpsg_product_mod_information_right">
- <?php /* Block für Produktbeschreibung START */ ?>
- <div class="wpsg_produkt wpsg_product_name">
- <h1 itemprop="name" class="wpsg_producttitle"><?php echo $this->getProductName($this->view['data']['id']); ?></h1>
- <?php $this->callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
- </div>
- <br/>
- <?php if ($this->get_option('wpsg_showArticelnumber') == '1') { ?>
- <div class="wpsg_artikelnummer">
- <?php echo __('Artikelnummer', 'wpsg'); ?>: <span class="wpsg_anr"><?php echo wpsg_hspc($this->view['data']['anr']); ?></span><br />
- <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_ean'))) {?>
- <?php echo __('EAN','wpsg');?>:<span class="wpsg_ean"><?php echo wpsg_hspc($this->view['data']['ean']); ?></span><br />
- <?php } ?>
- <?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_produktartikel_gtin'))) {?>
- <?php echo __('GTIN','wpsg');?>:<span class="wpsg_gtin"><?php echo wpsg_hspc($this->view['data']['gtin']); ?></span><br />
- <?php }?></div>
- <?php } ?>
-
- <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt START*/ ?>
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
-
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis">
- <label><?php echo __('Stückpreis:', 'wpsg'); ?></label>
- <meta itemprop="priceCurrency" content="<?php echo $this->get_option('wpsg_currency'); ?>" />
- <span itemprop="price" class="wpsg_preis preis_<?php echo $this->view['data']['id']; ?>" id="preis_<?php echo $this->view['data']['id']; ?>">
- <?php echo wpsg_ff($this->view['data']['preis'], $this->get_option('wpsg_currency')); ?>
- </span> <?php if (wpsg_isSizedString($this->view['data']['price_info'])) { echo '<div class="wpsg_priceinfo">'.wpsg_hspc($this->view['data']['price_info']).'</div>'; } ?>
-
- <?php if ($this->hasMod('wpsg_mod_discount') && wpsg_getInt($this->view['data']['preis_prediscount']) > 0 && wpsg_isSizedInt($this->get_option('wpsg_mod_discount_show'))) { ?>
- <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="wpsg_produkt_preis new_price">
- <?php echo __('Originalpreis', 'wpsg'); ?>: <span class="wpsg_preis_prediscount"><?php echo wpsg_ff($this->view['data']['preis_prediscount'], $this->get_option('wpsg_currency')); ?></span>
- </div>
- <?php } ?>
- </div>
-
- <?php if ($this->get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?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>'); ?>
- </div>
-
- <?php } else { /* Kleinunternehmerregelung aktiviert ENDE */ ?>
-
- <div class="wpsg_produkt_preishinweis">
- <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?>
- <?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>'); ?>
- <?php } else { /* Frontend = BRUTTO Preise */ ?>
- <?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>'); ?>
- <?php } ?>
- </div>
-
- <?php } ?>
- <?php } else {?>
-
- <?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.')); ?>
-
-
- <?php }?>
- <?php /* Abfrage Preisanzeige nur für eingeloggte User aktiv und User eingeloggt ENDE */ ?>
-
- <div itemprop="description" class="wpsg_produkt_shortdescription">
- <h3><?php echo wpsg_translate(__('Produktbeschreibung', 'wpsg')); ?></h3>
- <span><?php echo $this->view['data']['shortdesc']; ?></span>
- </div>
-
- <div class="wpsg_product_informations_left">
- <?php /* Lagerbestand START*/?>
- <?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?>
- <div class="wpsg_mod_produktindex_stock">
- <img src="<?php echo WPSG_URL_WP;?>wp-content/plugins/wpshopgermany/views/gfx/stock_pos.png" />
- <label><?php echo wpsg_translate(__('#1#','wpsg'), $this->view['data']['stock']); ?></label><?php echo wpsg_translate(__(' Artikel auf Lager', 'wpsg')); ?>
- </div>
- <?php } ?>
- <?php /* Lagerbestand ENDE*/?>
-
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
-
- <div class="wpsg_produkt_fuellmenge">
- <label><?php echo wpsg_translate(__('Füllmenge:', 'wpsg')); ?></label>
- <?php echo wpsg_translate(__('#1# (#2# / #3#)', 'wpsg'),
- '<span class="wpsg_fmenge">'.wpsg_ff($this->view['data']['fmenge'], '', true).'</span> '.$this->view['data']['feinheit'],
- '<span class="fmenge_preis">'.wpsg_ff($this->view['data']['fmenge_preis'], $this->get_option('wpsg_currency')).'</span> ',
- wpsg_ff($this->get_option('wpsg_mod_fuellmenge_bezug'), $this->view['data']['feinheit'])
- ); ?>
- </div>
-
- <?php } ?>
- <?php /* Füllmengenanzeige ENDE */ ?>
- </div>
-
- <div class="wpsg_product_informations_right">
- <?php /* Lieferzeit Anzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
-
- <?php /* Produkt nur im Store, nicht im Onlineshop vorhanden */ ?>
- <?php if ($this->callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($this->view['data']['product_key']))) {?>
-
- <span class="wpsg_product_only_store"><?php echo wpsg_translate($this->get_option('wpsg_mod_deliverytime_storetext')); ?></span>
- <?php if (wpsg_isSizedInt($this->get_option('wpsg_page_mod_deliverytime_storelink'))) { ?>
- <a href="<?php echo get_permalink($this->get_option('wpsg_page_mod_deliverytime_storelink')); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
- <?php } ?>
- <br />
-
- <?php } else {?>
- <div class="wpsg_mod_deliverytime">
- <img src="<?php echo WPSG_URL_WP;?>wp-content/plugins/wpshopgermany/views/gfx/deliverytime.png" />
- <label><?php echo wpsg_translate(__('Lieferzeit:', 'wpsg')); ?></label>
- <?php echo $this->callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?>
-
- </div>
-
- <?php $strDelayNote = $this->callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?>
- <?php if (wpsg_isSizedString($strDelayNote)) { ?>
- <div class="wpsg_mod_deliverytime_offline">
- <img src="<?php echo WPSG_URL_WP;?>wp-content/plugins/wpshopgermany/views/gfx/deliverytime-offline.png" />
- <div class="wpsg_mod_deliverytime_delay"><?php echo wpsg_hspc($strDelayNote); ?></div>
- </div>
- <?php } ?>
-
- <?php } ?>
- <?php } ?>
- <?php /* Lieferzeit Anzeige ENDE */ ?>
-
- <?php /* Gewichtsanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?>
- <div class="wpsg_mod_weight_produkt">
- <label><?php echo wpsg_translate(__('Gewicht:', 'wpsg')); ?></label>
- <?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')); ?>
- </div>
- <?php } ?>
- <?php /* Gewichtsanzeige ENDE */ ?>
-
- <?php /* Varianten START */ ?>
- <div class="wpsg_produkt_varianten">
- <?php echo $this->callMod('wpsg_mod_varianten', 'renderTemplate', array($this->view['data']['product_key'])); ?>
- </div>
- <?php /* Varianten ENDE */ ?>
- </div>
-
- <div class="wpsg_clear"></div>
-
- <div class="wpsg_product_buttonarea">
- <div class="wpsg_product_buttons_add_basket">
- <?php if ($this->view['oProduct']->canOrder()) { ?>
- <div class="wpsg_produkt_add_basket_wrapper">
-
- <label class="wpsg_amount_label" for="wpsg_menge_<?php echo $this->getTemplateIndex(); ?>"><?php echo __('Anzahl', 'wpsg'); ?>:</label>
-
- <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" ':''); ?>
- />
-
- <?php if (in_array($this->get_option('wpsg_afterinsert'), array('2', '3'))) { ?>
- <script type="text/javascript">
-
- jQuery(document).ready(function() {
-
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
-
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').prop('disabled', true);
-
- jQuery.ajax( {
- url: '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>',
- data:
- {
- 'wpsg_form_data': jQuery('#wpsg_produktform_<?php echo $this->getTemplateIndex(); ?>').serialize(),
- 'wpsg[ajax]': '1',
- 'wpsg[submit]': '1'
- },
- success: function(data)
- {
-
- <?php if ($this->get_option('wpsg_afterinsert') == '2') { ?>
- tb_show('<?php echo __('Ihr Warenkorb', 'wpsg'); ?>', '<?php echo $this->getURL(wpsg_ShopController::URL_BASKET_AJAX); ?>&height=500');
- <?php } else { ?>
-
- jQuery('#wpsg_basket_ajax_message_wrap').remove();
- jQuery('body').append('<div id="wpsg_basket_ajax_message_wrap">' + data + '</div>');
-
- <?php } ?>
-
- wpsg_refreshBasketWidget();
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').prop('disabled', false);
-
- }
- } );
-
- return false;
-
- } );
-
- } );
-
- </script>
- <?php } ?>
-
- <div class="wpsg_clear"></div>
-
- </div>
- <?php } ?>
- </div>
-
- <?php /* Abfrage Warenkorbanzeige nur für eingeloggte Benutzer START */ ?>
- <div class="wpsg_product_button_basket">
- <?php if (($this->callMod('wpsg_mod_kundenverwaltung', 'isLoggedIn') && ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '1')) || ($this->get_option('wpsg_mod_kundenverwaltung_preisAnzeige') == '0')) { ?>
- <?php if ($this->callMods('productForSale', array($this->view['data']['product_key']))) { ?>
- <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]" />
- <?php } ?>
- <?php }else{?>
- <a class="wpsg_blind_basket_button" href="#"><?php echo wpsg_translate(__('Loggen Sie sich bitte ein, um zu bestellen', 'wpsg')); ?></a>
- <?php } ?>
- <?php /* Abfrage Warenkorbanzeige nur für eingeloggte Benutzer ENDE */ ?>
- </div>
- </div>
-
- <div class="wpsg_clear"></div>
-
- <?php if ($this->hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?>
- <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]" />
- <?php } ?>
-
- </div>
-
- <div class="wpsg_clear"></div>
-
- </div>
-
- <?php /* Produktcontentbereich START */ ?>
- <div class="wpsg_product_informationarea">
-
- <?php if (strlen(trim($this->view['data']['longdescription'])) > 0) { ?>
- <div class="wpsg_product_information_large">
- <div class="wpsg_produkt_additional_information">
- <div itemprop="description" class="wpsg_produkt_longdescription">
- <h3><?php echo wpsg_translate(__('Beschreibung', 'wpsg')); ?></h3>
- <span><?php echo $this->view['data']['longdescription']; ?></span>
- </div>
- </div>
- </div>
- <?php } ?>
-
- <div class="wpsg_product_information_more">
- <div itemprop="description" class="wpsg_produkt_more_information">
- <h3><?php echo wpsg_translate(__('Zusätzliche Informationen', 'wpsg')); ?></h3>
- </div>
- </div>
-
- <div class="wpsg_product_assessment">
- <div itemprop="description" class="wpsg_product_assessments">
- <h3><?php echo wpsg_translate(__('Bewertungen', 'wpsg')); ?></h3>
- </div>
- </div>
-
- <?php /* Produktcontentbereich ENDE */ ?>
- </div>
-
- <div class="wpsg_clear"></div>
-
- <?php /* Social Media Integration */ ?>
- <div class="wpsg_product_social_media">
- <?php if ( is_plugin_active( 'plugin-directory/shariff.php' )) {?>
- <?=do_shortcode('[shariff]')?>
- <?php } ?>
- </div>
-
- <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
-
- </div>
-
-</div>
\ No newline at end of file diff --git a/views/warenkorb/ajaxDialog.phtml b/views/warenkorb/ajaxDialog.phtml index d029faf..4ac5c4f 100644 --- a/views/warenkorb/ajaxDialog.phtml +++ b/views/warenkorb/ajaxDialog.phtml @@ -4,151 +4,98 @@ * Template für den Dialog wenn im Backend "Lightbox Meldung" eingestellt ist
*/
- // $this->view['error'] // Steht auf true wenn ein Fehler produziert und angezeigt werden soll
// $this->view['product_key'] // Der ProduktSchlüssel des hinzugefügten Produktes
// $this->view['amount_add'] // So oft wurde das Produkt hinzugefügt
// $this->view['amount_basket'] // So oft befindet sich das hinzugefügte Produkt im Warenkorb
// $this->view['product_data'] // Array mit Produktdaten
// $this->view['product_index'] // Index des Produktes im Warenkorb
-?><div id="wpsg_basket_ajax_message">
-
- <div class="wpsg_basket_ajax_message_content">
-
- <?php if ($this->view['error'] === true) { ?>
+ $arImages = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->view['product_data']['product_id']));
+ if (!wpsg_isSizedArray($arImages)) $arImages = array();
- <h3><?php echo __('Es sind folgende Fehler aufgetreten:', 'wpsg'); ?></h3>
+ $arBasket = $this->basket->toArray();
- <?php echo $this->writeFrontendMessage(); ?>
-
- <div class="wpsg_button_wrap">
- <button class="wpsg_button wpsg_button_continue_shopping" onclick="return wpsg_basket_ajax_message_close();"><?php echo __('Weiter Einkaufen', 'wpsg'); ?></button>
- </div>
-
- <div class="wpsg_clear"></div>
-
- <?php } else { ?>
-
- <div class="wpsg_basket_ajax_message_content_left">
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <?php $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->getProduktId($this->view['product_data']['id']))); ?>
- <?php if (wpsg_isSizedArray($arBilder)) { ?>
- <?php $href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
- <?php $imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
- <img src="<?php echo $href[0]; ?>" width="30" height="30" alt="" />
- <?php } ?>
- <?php } ?>
- </div>
-
- <div class="wpsg_basket_ajax_message_content_right">
- <?php if ($this->view['error'] === true) { echo $this->writeFrontendMessage(); } else { ?>
-
- <span class="wpsg_basket_ajax_message_content_success">
- <?php echo wpsg_translate(
- __('Es wurde #1#x "#2#" in den Warenkorb gelegt.', 'wpsg'),
- $this->view['amount_add'],
- $this->getProductName($this->view['product_data']['id'], true)); ?>
- </span>
- <?php } ?>
- <div class="wpsg_clear"></div>
-
- <?php /* Preisanzeige Start */ ?>
- <div class=wpsg_ajaxdialog_form>
- <?php echo __('Der Preis für das Produkt beträgt:','wpsg')?>
- <?php echo wpsg_ff($this->view['product_data']['preis'], $this->get_option('wpsg_currency')); ?>
- </div>
- <div class="wpsg_clear"></div>
- <?php /* Preisanzeige ENDE */ ?>
+?>
+
+<div class="product_add_layer">
+ <?php if (wpsg_isSizedArray($arImages)) { ?>
+ <div class="wpsg_productimages">
+ <?php echo wp_get_attachment_image($arImages[0]['post_id'], array(600, 600), false, array()); ?>
+ </div>
+ <?php } ?>
+
+ <div class="wpsg_basket_ajax_message_content_right">
+
+ <?php /* Preisanzeige Start */ ?>
+ <div class=wpsg_ajaxdialog_form>
+ <?php echo wpsg_translate(
+ __('Der Preis für das Produkt beträgt #1#.', 'wpsg'),
+ wpsg_ff($this->view['product_data']['preis'], $this->get_option('wpsg_currency'))
+ ); ?>
+ <br />
+ <?php echo wpsg_translate(
+ __('Im Warenkorb befinden sich jetzt #1# Produkt(e) zu #2#.', 'wpsg'),
+ $arBasket['menge'],
+ wpsg_ff($arBasket['sum']['preis_gesamt'], $this->get_option('wpsg_currency'))
+ ); ?>
+ </div>
+ <div class="wpsg_clear"></div>
+ <?php /* Preisanzeige ENDE */ ?>
+
+ <?php /* Füllmengenanzeige START */ ?>
+ <?php if ($this->hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showAjaxDialog') === '1') { ?>
+ <div class="wpsg_ajaxdialog_form">
+ <?php echo wpsg_translate(__('Füllmenge: #1# #2#', 'wpsg'),'<span class="wpsg_fmenge">'.wpsg_ff($this->view['product_data']['fmenge']).'</span>', $this->view['product_data']['feinheit']); ?>
+ </div>
+ <?php } ?>
+ <div class="wpsg_clear"></div>
+ <?php /* Füllmengenanzeige ENDE */ ?>
+
+ <?php /* Gewichtsanzeige Start */ ?>
+ <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showAjaxDialog') === '1') { ?>
+ <div class="wpsg_ajaxdialog_form">
+ <?php echo wpsg_translate(__('Gewicht: #1# #2#', 'wpsg'), '<span class="wpsg_weight"">'.wpsg_ff($this->view['product_data']['weight']).'</span>', $this->view['product_data']['weight_unit']); ?>
+ </div>
+ <?php } ?>
+ <div class="wpsg_clear"></div>
+ <?php /* Gewichtsanzeige ENDE */ ?>
+
+ </div>
+
+ <div class="wpsg_clear"></div>
+
+ <?php /* Zubehörprodukte START */?>
+ <?php if ($this->hasMod('wpsg_mod_relatedproducts') && $this->get_option('wpsg_mod_relatedproducts_showAjaxDialog') === '1') { ?>
+ <?php $arRelatedProducts = $this->callMod('wpsg_mod_relatedproducts', 'getRelatedProducts', array($this->getProduktID($this->view['product_key']))); ?>
+ <?php if (wpsg_isSizedArray($arRelatedProducts)) { ?>
+ <div class="wpsg_ajaxdialog_relatedproducts">
+ <h3><?php echo __('Das könnte Ihnen auch gefallen:', 'wpsg'); ?></h3>
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge') && $this->get_option('wpsg_mod_fuellmenge_showAjaxDialog') === '1') { ?>
- <div class="wpsg_ajaxdialog_form">
- <?php echo wpsg_translate(__('Füllmenge: #1# #2#', 'wpsg'),'<span class="wpsg_fmenge">'.wpsg_ff($this->view['product_data']['fmenge']).'</span>', $this->view['product_data']['feinheit']); ?>
- </div>
- <?php } ?>
- <div class="wpsg_clear"></div>
- <?php /* Füllmengenanzeige ENDE */ ?>
-
- <?php /* Gewichtsanzeige Start */ ?>
- <?php if ($this->hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showAjaxDialog') === '1') { ?>
- <div class="wpsg_ajaxdialog_form">
- <?php echo wpsg_translate(__('Gewicht: #1# #2#', 'wpsg'), '<span class="wpsg_weight"">'.wpsg_ff($this->view['product_data']['weight']).'</span>', $this->view['product_data']['weight_unit']); ?>
- </div>
- <?php } ?>
<div class="wpsg_clear"></div>
- <?php /* Gewichtsanzeige ENDE */ ?>
- </div>
-
- <div class="wpsg_clear"></div>
-
- <?php /* Zubehörprodukte START */?>
- <?php if ($this->hasMod('wpsg_mod_relatedproducts') && $this->get_option('wpsg_mod_relatedproducts_showAjaxDialog') === '1') { ?>
- <?php $arRelatedProducts = $this->callMod('wpsg_mod_relatedproducts', 'getRelatedProducts', array($this->getProduktID($this->view['product_key']))); ?>
- <?php if (wpsg_isSizedArray($arRelatedProducts)) { ?>
- <div class="wpsg_ajaxdialog_relatedproducts">
- <h3><?php echo __('Das könnte Ihnen auch gefallen:', 'wpsg'); ?></h3>
-
- <div class="wpsg_clear"></div>
-
- <?php foreach ($arRelatedProducts as $rp_data) { $product_data = $this->loadProduktArray($rp_data['product_id']); ?>
-
- <div class="wpsg_ajaxdialog_productrow">
- <h4><?php echo $this->getProductName($rp_data['product_id']); ?></h4>
- <a href="<?php echo $this->getProduktLink($rp_data['product_id']); ?>">
- <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
- <?php $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->getProduktId($this->view['product_data']['id']))); ?>
- <?php if (wpsg_isSizedArray($arBilder)) { ?>
- <?php $href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
- <?php $imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
- <img src="<?php echo $href[0]; ?>" width="30" height="30" alt="" />
- <?php } ?>
- <?php } ?>
- </a>
- </div>
-
+ <?php foreach ($arRelatedProducts as $rp_data) { $product_data = $this->loadProduktArray($rp_data['product_id']); ?>
+
+ <div class="wpsg_ajaxdialog_productrow">
+ <h4><?php echo $this->getProductName($rp_data['product_id']); ?></h4>
+ <a href="<?php echo $this->getProduktLink($rp_data['product_id']); ?>">
+ <?php if ($this->hasMod('wpsg_mod_produktbilder')) { ?>
+ <?php $arBilder = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($this->getProduktId($this->view['product_data']['id']))); ?>
+ <?php if (wpsg_isSizedArray($arBilder)) { ?>
+ <?php $href = wp_get_attachment_image_src($arBilder[0]['post_id'], Array(30, 30)); ?>
+ <?php $imgtag = wp_get_attachment_image($arBilder[0]['post_id'], Array(30, 30)); ?>
+ <img src="<?php echo $href[0]; ?>" width="30" height="30" alt="" />
<?php } ?>
- </div>
- <?php }?>
- <?php } ?>
-
- <div class="wpsg_clear"></div>
- <?php /* Zubehörprodukte ENDE*/?>
-
- <div class="wpsg_button_wrap">
- <button class="wpsg_button wpsg_button_continue_shopping" onclick="return wpsg_basket_ajax_message_close();"><?php echo __('Weiter Einkaufen', 'wpsg'); ?></button>
- <a href="<?php echo $this->getUrl(wpsg_ShopController::URL_BASKET); ?>"><button class="wpsg_button wpsg_button_basket"><?php echo __('Zum Warenkorb', 'wpsg'); ?></button></a>
- <div class="wpsg_clear"></div>
- </div>
-
- <?php } ?>
-
- <?php $this->clearFrontendMessage(); ?>
-
- </div>
-
-</div><div id="wpsg_basket_ajax_layer"></div>
-
-<script type="text/javascript">/* <![CDATA[ */
-
- function wpsg_basket_ajax_message_close()
- {
-
- jQuery('#wpsg_basket_ajax_message').remove();
- jQuery('#wpsg_basket_ajax_layer').remove();
-
- return false;
-
- }
-
- jQuery(document).ready(function() {
-
- jQuery('#wpsg_basket_ajax_layer').bind('click', function() {
+ <?php } ?>
+ </a>
+ </div>
+
+ <?php } ?>
+ </div>
+ <?php }?>
+ <?php } ?>
+ <?php /* Zubehörprodukte ENDE*/?>
+
+ <div class="wpsg_clear"></div>
+</div>
- wpsg_basket_ajax_message_close();
-
- } );
-
- } );
-
-/* ]]> */</script>
\ No newline at end of file +
\ No newline at end of file diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml index f004133..d61fb57 100644 --- a/views/warenkorb/basket.phtml +++ b/views/warenkorb/basket.phtml @@ -35,6 +35,56 @@ <div class="wpsg_spacer"></div>
+ <div class="basket_product_wrap">
+
+ <?php foreach ($this->view['basket']['produkte'] as $k => $product_data) { ?>
+ <div class="basket_product_row">
+
+ <?php $arImages = $this->callMod('wpsg_mod_produktbilder', 'getProduktBilder_MT', array($product_data['product_id'])); if (!wpsg_isSizedArray($arImages)) $arImages = array(); ?>
+ <?php if (wpsg_isSizedArray($arImages)) { ?>
+ <div class="productimage">
+
+ <?php echo wp_get_attachment_image($arImages[0]['post_id'], array(300, 300), false, array()); ?>
+
+ </div>
+ <?php } ?>
+
+ <div class="product_content">
+
+ <div class="product_name">
+ <?php if ($this->getProduktLink($product_data)) { ?>
+ <a href="<?php echo $this->getProduktLink($product_data); ?>"><?php echo wpsg_hspc((($product_data['detailname'] != '')?$product_data['detailname']:$product_data['name'])); ?></a>
+ <?php } else { ?>
+ <?php echo wpsg_hspc((($product_data['detailname'] != '')?$product_data['detailname']:$product_data['name'])); ?>
+ <?php } ?>
+
+ <?php if (wpsg_isSizedString($product_data['shortdesc'])) { ?>
+ <div class="product_shortdesc"><?php echo $product_data['shortdesc']; ?></div>
+ <?php } ?>
+
+ </div>
+
+ <div class="product_action">
+ <div class="amount">
+
+ <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" />
+
+ </div>
+ <div class="price">
+ <?php echo wpsg_ff($product_data['preis'], $this->get_option('wpsg_currency')); ?>
+ </div>
+ <div class="price_total">
+ <?php echo wpsg_ff($product_data['menge'] * $product_data['preis'], $this->get_option('wpsg_currency')); ?>
+ </div>
+ </div>
+
+ </div>
+
+ </div>
+ <?php } ?>
+ </div>
+
+
<table>
<tr class="wpsg_kopf">
<th class="wpsg_cell_number"> </th>
diff --git a/views/warenkorb/messageDialog.phtml b/views/warenkorb/messageDialog.phtml index 96ca5c1..1a2ee6b 100644 --- a/views/warenkorb/messageDialog.phtml +++ b/views/warenkorb/messageDialog.phtml @@ -7,27 +7,27 @@ ?>
-<div id="wpsg_basket_ajax_message_wrap">
- <div id="wpsg_basket_ajax_message">
- <div class="wpsg_basket_ajax_message_content">
- <?php echo $this->writeFrontendMessage(); $this->clearFrontendMessage(); ?>
- <br />
- <input type="button" id="wpsg_basket_messageDialog_closeButton" value="<?php echo __('Schließen', 'wpsg'); ?>" />
- </div>
- </div>
- <div id="wpsg_basket_ajax_layer"></div></div>
+<div id="wpsg_ajax_layer">
+
+ <div class="wpsg_ajax_message_content">
+ <?php echo $this->writeFrontendMessage(); $this->clearFrontendMessage(); ?>
+ <?php echo wpsg_getStr($this->view['content']); ?>
+ <br />
+ <input type="button" id="wpsg_basket_messageDialog_closeButton" value="<?php echo __('Schließen', 'wpsg'); ?>" />
+ </div>
+
+ <script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#wpsg_basket_messageDialog_closeButton, #wpsg_ajax_layer').bind('click', function() {
+
+ jQuery('#wpsg_ajax_layer').remove();
-<script type="text/javascript">/* <![CDATA[ */
-
- jQuery(document).ready(function() {
-
- jQuery('#wpsg_basket_messageDialog_closeButton, #wpsg_basket_ajax_layer').bind('click', function() {
-
- jQuery('#wpsg_basket_ajax_message').remove();
- jQuery('#wpsg_basket_ajax_layer').remove();
+ } );
} );
-
- } );
-
-/* ]]> */</script>
\ No newline at end of file +
+ /* ]]> */</script>
+
+</div>
\ No newline at end of file |
