summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomas <noreply@maennchen1.de>2016-11-23 14:01:21 +0000
committerthomas <noreply@maennchen1.de>2016-11-23 14:01:21 +0000
commitef354c8bae01b4416ba3b1958d58c38e2e25d2a4 (patch)
treec83053eda3c024982e7e90f3f137f53185c0342c
parent66e75d1ead92212f16b0376d9cc9097337748033 (diff)
- standard.phtml
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5928 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/css/frontend.css34
-rw-r--r--views/gfx/deliverytime.pngbin0 -> 417 bytes
-rw-r--r--views/gfx/stock_pos.pngbin0 -> 605 bytes
-rw-r--r--views/produkttemplates/standard.phtml486
4 files changed, 306 insertions, 214 deletions
diff --git a/views/css/frontend.css b/views/css/frontend.css
index 171c100..7c943ab 100644
--- a/views/css/frontend.css
+++ b/views/css/frontend.css
@@ -154,7 +154,7 @@ input.wpsg_error { border-color:red !important; }
.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_label { display:inline; font-weight:bold; }
.wpsg_produkt_wrapper .wpsg_value { display:inline; }
.wpsg_produkt_wrapper .wpsg_preis_prediscount { text-decoration: line-through; }
.wpsg_produkt_wrapper .wpsg_menge { width:auto; }
@@ -162,6 +162,38 @@ input.wpsg_error { border-color:red !important; }
.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; }
+.wpsg_produkt_wrapper .wpsg_product_afterimage { float:left; width:50%; }
+.wpsg_produkt_wrapper .wpsg_product_image { float:left; width:50%; }
+.wpsg_produkt_wrapper .wpsg_mod_deliverytime,
+.wpsg_produkt_wrapper .wpsg_mod_weight_produkt,
+.wpsg_produkt_wrapper .wpsg_produkt_varianten,
+.wpsg_produkt_wrapper .wpsg-mod_produktindex_stock,
+.wpsg_produkt_wrapper .wpsg_produkt_fuellmenge { margin:10px 0; }
+
+.wpsg_produkt_wrapper .wpsg_product_mod_information_left { float:left; width:45%; margin:20px 20px 20px 0; }
+.wpsg_produkt_wrapper .wpsg_product_mod_information_right { float:left; width:45%; margin:20px 0 20px 0; }
+.wpsg_produkt_wrapper .wpsg_mod_deliverytime_offline { border:1px solid #ff0a0a; }
+
+.wpsg_produkt_wrapper .wpsg_product_buttons_add_basket .wpsg_amount_label { float:left; }
+.wpsg_produkt_wrapper .wpsg_product_button_basket { float:right; margin:30px 0; }
+.wpsg_produkt_wrapper .wpsg_add_basket { padding:10px 30px; color:#fff; background-color:#29556e; border:none; text-transform:uppercase; }
+.wpsg_produkt_wrapper .wpsg_add_basket { padding:10px 30px; color:#fff; background-color:#29556e; border:none; text-transform:uppercase; }
+.wpsg_produkt_wrapper .wpsg_product_button_area { border-top:1px solid #d0e7ef; border-bottom:1px solid #d0e7ef; }
+.wpsg_produkt_wrapper .wpsg_producttitle { font-size:25px; margin:20px 0; }
+.wpsg_produkt_wrapper .wpsg_produkt_preis label { display:none; }
+.wpsg_produkt_wrapper .wpsg_produkt_preis .wpsg_preis { font-size:20px; font-weight:bold; color:#29556E;}
+.wpsg_produkt_wrapper .wpsg_product_price_area { margin-bottom:20px; }
+.wpsg_produkt_wrapper .wpsg_product_social_media { border-top:1px solid #d0e7ef; border-bottom:1px solid #d0e7ef; margin:20px 0; }
+
+.wpsg_product_informationarea { margin:20px 0; }
+.wpsg_product_informationarea .wpsg_product_informationarea_reiter { text-transform:uppercase; font-size:20px; font-weight:bold; color:#d0e7ef; }
+.wpsg_product_informationarea .wpsg_product_informationarea_reiter:active { font-weight:bold; color:##29556e; text-decoration:underline; }
+.wpsg_product_informationarea .wpsg_product_informationarea_reiter:hover { font-weight:bold; color:##29556e; text-decoration:none; }
+
+.wpsg_product_assessment, .wpsg_product_information_more, .wpsg_product_information_large { width:30%; margin:0 10px; float:left; }
+
+
+
/* 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 {
diff --git a/views/gfx/deliverytime.png b/views/gfx/deliverytime.png
new file mode 100644
index 0000000..f1fd35f
--- /dev/null
+++ b/views/gfx/deliverytime.png
Binary files differ
diff --git a/views/gfx/stock_pos.png b/views/gfx/stock_pos.png
new file mode 100644
index 0000000..7546840
--- /dev/null
+++ b/views/gfx/stock_pos.png
Binary files differ
diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml
index fcec1d0..81c449f 100644
--- a/views/produkttemplates/standard.phtml
+++ b/views/produkttemplates/standard.phtml
@@ -13,253 +13,313 @@
//wpsg_debug($_SESSION);
?>
-<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_afterimage">
+<div class="container container-fluid-page">
- <h2 itemprop="name" class="wpsg_producttitle"><?php echo $this->getProductName($this->view['data']['id']); ?></h2>
+ <div class="wpsg_produkt_wrapper">
- <?php $this->callMods('product_top_afterheadline', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
+ <input type="hidden" name="wpsg_post_id" value="<?php echo get_the_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 && !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>
+ <?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>
- <?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><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">
- <?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') && 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 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')) { ?>
- <?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 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 */ ?>
- <?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 */ ?>
-
- <?php /* Füllmengenanzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
+ <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_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 */ ?>
+ <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 /* Lagerbestand START*/?>
- <?php if ($this->hasMod('wpsg_mod_stock') && $this->get_option('wpsg_mod_stock_showProduct') == '1') { ?>
- <div class="wpsg_mod_produktindex_stock">
- <?php echo wpsg_translate(__('Lagerbestand: #1#','wpsg'), $this->view['data']['stock']); ?>
- </div>
- <?php } ?>
- <?php /* Lagerbestand ENDE*/?>
-
- <?php /* Lieferzeit Anzeige START */ ?>
- <?php if ($this->hasMod('wpsg_mod_deliverytime') && $this->get_option('wpsg_mod_deliverytime_show_product') == '1') { ?>
+ <?php } ?>
+ <?php } else {?>
- <?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'))) { ?>
- &nbsp;<a href="<?php echo get_permalink($this->get_option('wpsg_page_mod_deliverytime_storelink')); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
- <?php } ?>
- <br />
+ <?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 } else {?>
- <div class="wpsg_mod_deliverytime">
-
- <?php echo $this->callMod('wpsg_mod_deliverytime', 'displayDeliveryTime', array($this->view['data']['product_key'])); ?>
-
+
+ <?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 $strDelayNote = $this->callMod('wpsg_mod_deliverytime', 'displayDelayTime', array($this->view['data']['product_key'])); ?>
- <?php if (wpsg_isSizedString($strDelayNote)) { ?>
- <div class="wpsg_mod_deliverytime_delay"><?php echo wpsg_hspc($strDelayNote); ?></div>
- <?php } ?>
+ <?php /* Füllmengenanzeige START */ ?>
+ <?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>
- <?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">
- <?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_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 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>
+ <?php } ?>
+ <?php /* Füllmengenanzeige ENDE */ ?>
+ </div>
- <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" ':''); ?>
- />
+ <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']))) {?>
- <?php if (in_array($this->get_option('wpsg_afterinsert'), array('2', '3'))) { ?>
- <script type="text/javascript">
-
- jQuery(document).ready(function() {
+ <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'))) { ?>
+ &nbsp;<a href="<?php echo get_permalink($this->get_option('wpsg_page_mod_deliverytime_storelink')); ?>"><?php echo __('So erreichen Sie uns.'); ?></a>
+ <?php } ?>
+ <br />
- jQuery('.wpsg_add_basket_<?php echo $this->getTemplateIndex(); ?>').bind('click', function() {
+ <?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>
- 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);
+ <?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 } ?>
- return false;
+ <div class="wpsg_clear"></div>
- } );
-
- } );
-
- </script>
+ </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 } ?>
- <?php /* Abfrage Warenkorbanzeige nur für eingeloggte Benutzer 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')) { ?>
- <?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 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>
- <?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_product_assessment">
+ <div itemprop="description" class="wpsg_product_assessments">
+ <h3><?php echo wpsg_translate(__('Bewertungen', 'wpsg')); ?></h3>
+ </div>
+ </div>
- <div class="wpsg_clear"></div>
-
- <?php /* Social Media Integration */ ?>
+ <?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>
-
- </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())); ?>
-
+
+ <?php $this->callMods('product_bottom', array(&$this->view['data']['id'], $this->getTemplateIndex())); ?>
+
+ </div>
+
</div> \ No newline at end of file