From f4f51b6a27edc2ea39d254b34ab26444a20bb159 Mon Sep 17 00:00:00 2001 From: thomas Date: Fri, 5 Jul 2019 06:26:08 +0000 Subject: - standard2 git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7472 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/css/frontend.css | 13 + views/js/frontend.js | 42 +++ views/produkttemplates/standard2.phtml | 463 +++++++++++++++++++++++++++++++++ 3 files changed, 518 insertions(+) create mode 100644 views/produkttemplates/standard2.phtml diff --git a/views/css/frontend.css b/views/css/frontend.css index 3f694ed..e5c48d1 100644 --- a/views/css/frontend.css +++ b/views/css/frontend.css @@ -254,6 +254,19 @@ input.wpsg_error { border-color:red !important; } } .wpsg_product_deliverytime_holiday { height:50px; padding:10px; width:50%; float:right; border:1px solid #ff0000; } +/* Minigallery */ +.wpsg_productform #responsive_slider .carousel-indicators { bottom:-45px; } +.wpsg_productform #responsive_slider .carousel-indicators li { margin-left:2.5px; margin-right:2.5px; } +.wpsg_productform #responsive_slider .carousel-indicators li.active { border-width:2px; } +.wpsg_productform .sto_carousel { position:relative; margin-bottom:45px; margin-top:46px; } +.wpsg_productform .sto_carousel ul { list-style:none; } +.wpsg_productform .sto_carousel li { list-style:none; float:left; margin-right:10px; } +.wpsg_productform .sto_carousel li .wpsg_image_producttemplate_small { width:93px; } +.wpsg_productform .jcarousel { position:relative; width:100%; height:95px; overflow: hidden; width:515px; } +.wpsg_productform .jcarousel ul { width: 20000em; position: relative; list-style: none; margin: 0; padding: 0; } +.wpsg_productform .sto_carousel .left { position:absolute; left:0px; top:0px; height:95px; line-height:95px; width:20px; display:block; text-align:left; font-size:2rem; } +.wpsg_productform .sto_carousel .right { position:absolute; right:0px; top:0px; height:95px; line-height:95px; width:20px; display:block; text-align:right; font-size:2rem; } + @media (max-width:400px) { .wpsg_productform .wpsg_produkt_wrapper .wpsg_product_buttonarea input[type="text"] { width:28%; } diff --git a/views/js/frontend.js b/views/js/frontend.js index 487007a..b364265 100644 --- a/views/js/frontend.js +++ b/views/js/frontend.js @@ -64,6 +64,48 @@ return false; } + + + /* Minigallery */ + function wpsg_product_bind() + { + + // Prev im Produktcarousel + jQuery('.wpsg_productteaser .wpsg_productteaser_left').unbind('click').bind('click', function() { + + if (typeof jQuery(this).attr("data-target") != "undefined") jQuery('#wpsg_slider_pt_' + jQuery(this).attr("data-target")).carousel("prev"); + else jQuery(this).parents('.wpsg_productteaser').find('.carousel:visible').carousel("prev"); + + return false; + + } ); + + // Next im Productcarousel + jQuery('.wpsg_productteaser .wpsg_productteaser_right').unbind('click').bind('click', function() { + + if (typeof jQuery(this).attr("data-target") != "undefined") jQuery('#wpsg_slider_pt_' + jQuery(this).attr("data-target")).carousel("next"); + else jQuery(this).parents('.wpsg_productteaser').find('.carousel:visible').carousel("next"); + + return false; + + } ); + + // + / - im Produkttemplate + jQuery('.wpsg_product_sub, .wpsg_product_add').unbind('click').bind('click', function() { + + var amount = parseInt(jQuery(this).parents('.product_add').find('.wpsg_amount').val()); + if (amount == NaN || amount < 0) amount = 0; + + if (jQuery(this).hasClass('wpsg_product_add')) amount ++; + else if (amount > 1) amount --; + + jQuery(this).parents('.product_add').find('.wpsg_amount').val(amount); + + return false; + + } ); + + } /** * Sperrt die Funktionen im Produkttemplate, während einer Ajax Aktion diff --git a/views/produkttemplates/standard2.phtml b/views/produkttemplates/standard2.phtml new file mode 100644 index 0000000..54ae6ba --- /dev/null +++ b/views/produkttemplates/standard2.phtml @@ -0,0 +1,463 @@ +view['data']); + +// Damit keine Zubehörprodukte ausgegeben werden +//$this->noReleatedProducts = true; + +?> + +
+ + + + +
+ + titleDisplayed) { ?> +

getProductName($this->view['data']['id']); ?>

+

view['data']['detailname']; ?>

+ + + callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> + +
+ + callMods('product_top', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?> + +
+ + + imagehandler->getAttachmentID($this->view['data']['product_key']); + + /* Array mit allen AttachmentIDs der Produktbilder */ + $arAttachmentIDsAll = $this->imagehandler->getAttachmentIDs($this->view['data']['product_id']); + + ?> + + +
+ + + +
+ + + + get_option('wpsg_showArticelnumber') == '1') { ?> +
+ : view['data']['anr']); ?>
+ get_option('wpsg_mod_produktartikel_ean'))) {?> + :view['data']['ean']); ?>
+ + get_option('wpsg_mod_produktartikel_gtin'))) {?> + :view['data']['gtin']); ?>
+
+ + + + hasMod('wpsg_mod_kundenverwaltung') && $this->view['oProduct']->canDisplayPrice()) { ?> + +
+ + + + + + view['oProduct']->getOldPrice(); ?> + + view['oProduct']->getPrice($this->view['data']['product_key'])) { ?> + view['oProduct']->getPrice($this->view['data']['product_key']), $this->get_option('wpsg_currency')); ?> + get_option('wpsg_currency')); ?> + + view['oProduct']->getPrice($this->view['data']['product_key']), $this->get_option('wpsg_currency')); ?> + + +
+ + get_option('wpsg_kleinunternehmer')) { /* Kleinunternehmerregelung aktiviert START */ ?> + +
+ getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'">'.__('Versandkosten', 'wpsg').'', 'Endpreis'); ?> +
+ + + +
+ getFrontendTaxview() == WPSG_NETTO) { /* Frontend = NETTO Preise */ ?> + hasMod('wpsg_mod_freeshipping') && $this->get_option('wpsg_mod_freeshipping_aktiv') == '1') { /* Versandkostenfrei aktiv */?> + + get_option('wpsg_mod_freeshipping_minvalue') > 0) { ?> + ab #2# € versandkostenfrei)', 'wpsg'), + wpsg_ff($this->view['data']['mwst_value']), + wpsg_ff($this->get_option('wpsg_mod_freeshipping_minvalue')), + $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN) + ); ?> + + view['data']['mwst_value'])); ?> + + + + view['data']['mwst_value']), ''.__('Versandkosten', 'wpsg').''); ?> + + + hasMod('wpsg_mod_freeshipping') && $this->get_option('wpsg_mod_freeshipping_aktiv') == '1') { /* Versandkostenfrei aktiv */ ?> + + get_option('wpsg_mod_freeshipping_minvalue') > 0) { ?> + ab #2# € versandkostenfrei)', 'wpsg'), + wpsg_ff($this->view['data']['mwst_value']), + wpsg_ff($this->get_option('wpsg_mod_freeshipping_minvalue')), + $this->getUrl(wpsg_ShopController::URL_VERSANDKOSTEN) + ); ?> + + view['data']['mwst_value'])); ?> + + + + view['data']['mwst_value']), ''.__('Versandkosten', 'wpsg').''); ?> + + +
+ + + + + + getURL(wpsg_ShopController::URL_PROFIL).'">hier bitte ein, um zu bestellen.')); ?> + + + + +
+ + view['data']['shortdesc']; ?> + +
+ +
+ + + + + hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?> + +
+ + view['data']['stock']) > '0') {?> + + + view['data']['stock']); ?> + + + + + + + +
+ + + + + hasMod('wpsg_mod_fuellmenge')) { ?> + +
+ + view['data']['fmenge']) > '0') { ?> + + + + '.wpsg_ff($this->view['data']['fmenge'], '', true).' '.$this->view['data']['feinheit'], + ''.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']) + ); ?> + + + + + + + +
+ + + + + + hasMod('wpsg_mod_weight') && $this->get_option('wpsg_mod_weight_showProduct') === '1') { ?> +
+ + view['data']['weight']) > '0') { ?> + + view['data']['id'].'">'.wpsg_ff($this->view['data']['weight']).'', $this->get_option('wpsg_mod_weight_unit')); ?> + + + +
+ + + + + hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?> + + + callMod('wpsg_mod_deliverytime', 'isStoreProduct', array($this->view['data']['product_key']))) { ?> + +
callMod('wpsg_mod_deliverytime', 'displayStoreText', array($this->view['data']['product_key']))); ?>
+ + callMod('wpsg_mod_deliverytime', 'displayStoreLink', array($this->view['data']['product_key'])) ?> + + +   + + + + + + callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?> + + +
+ +
+ +
+ + + +
+ + callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?> +
+ + + + + + + + + +
+ + view['data']['beschreibung'])) > 0) { ?> +
+
+
+ view['data']['beschreibung']; ?> +
+
+
+ + +
+ + + +
+ callMod('wpsg_mod_productvariants', 'renderTemplate', array($this->view['data']['product_key'])); ?> +
+ + + callMods('product_bottom', array(&$this->view['data']['product_key'], $this->getTemplateIndex())); ?> + + +
+
+ view['oProduct']->canOrder()) { ?> +
+ + + + view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> /> + + + hasMod('wpsg_mod_deliverytime') && ($this->get_option('wpsg_mod_deliverytime_holiday') == '1')) { ?> + + callMod('wpsg_mod_deliverytime', 'holiday', array($this->view['data']['product_key']))) { ?> + +
+ + callMod('wpsg_mod_deliverytime', 'displayHolidaytext', array($this->view['data']['product_key']))); ?> + +
+ + + + + + + + + + get_option('wpsg_afterinsert'), array('2', '3'))) { ?> + + + +
+ +
+
+ +
+ + hasMod('wpsg_mod_request') && $this->callMod('wpsg_mod_request', 'isRequestProduct', array($this->view['data']['id']))) { ?> + + view['data']['basket_multiple'] == 4)?' readonly="readonly" ':''); ?> /> + + + + + +
+ + view['data']['longdescription'])) > 0) { ?> +
+
+
+ view['data']['longdescription']; ?> +
+
+
+ + +
+ + + +
+ + view['data']['moreinfos'])) > 0) { ?> +
+
+
+ view['data']['moreinfos']; ?> +
+
+
+ + +
+ + + +
+ + view['data']['moreinfos2'])) > 0) { ?> +
+
+
+ view['data']['moreinfos2']; ?> +
+
+
+ + +
+ + +
+ + +
+ + + +
+ +
+ +
\ No newline at end of file -- cgit v1.2.3