diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/mods/mod_stock/settings_edit.phtml | 32 | ||||
| -rw-r--r-- | views/produkttemplates/ausverkauft.phtml | 144 |
2 files changed, 1 insertions, 175 deletions
diff --git a/views/mods/mod_stock/settings_edit.phtml b/views/mods/mod_stock/settings_edit.phtml index 60f55db..1cff2d6 100644 --- a/views/mods/mod_stock/settings_edit.phtml +++ b/views/mods/mod_stock/settings_edit.phtml @@ -5,13 +5,7 @@ */
?>
-<?php
- $arTemp = wpsg_array_merge(array('-1' => __('Wie Produkttemplate', 'wpsg')), $this->view['arTemplates']);
-?>
-<?php echo wpsg_drawForm_Select('wpsg_mod_stock_template', __('Template für ausverkaufte Produkte', 'wpsg'),
- $arTemp, @$this->get_option('wpsg_mod_stock_template')); ?>
-<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_notemplateswitch', __('Template nicht wechseln', 'wpsg'), $this->get_option('wpsg_mod_stock_notemplateswitch'), array('help' => 'wpsg_mod_stock_notemplateswitch')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_allow', __('Bestellungen bei negativen Bestand verhindern', 'wpsg'), $this->get_option('wpsg_mod_stock_allow'), array('help' => 'wpsg_mod_stock_allow')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showBackendStock', __('Bestand in Produktübersicht (Backend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showBackendStock'), array('help' => 'wpsg_mod_stock_showBackendStock')); ?>
<?php if ($this->hasMod('wpsg_mod_productindex')) { ?>
@@ -22,28 +16,4 @@ <br />
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_minstockproduct', __('Minimalbestand im Produkt hinterlegen', 'wpsg'), $this->get_option('wpsg_mod_stock_minstockproduct'), array('help' => 'wpsg_mod_stock_minstockproduct')); ?>
-
-<script type="text/javascript">/* <![CDATA[ */ - - jQuery(document).ready(function() {
-
- jQuery('#wpsg_mod_stock_notemplateswitch').bind('change', function() {
-
- if (jQuery(this).attr("checked"))
- {
-
- jQuery('#wpsg_mod_stock_template').attr('disabled', true);
-
- }
- else
- {
-
- jQuery('#wpsg_mod_stock_template').attr('disabled', false);
-
- }
-
- } ).change();
-
- } ); - -/* ]]> */</script>
\ No newline at end of file +
\ No newline at end of file diff --git a/views/produkttemplates/ausverkauft.phtml b/views/produkttemplates/ausverkauft.phtml deleted file mode 100644 index 21a711e..0000000 --- a/views/produkttemplates/ausverkauft.phtml +++ /dev/null @@ -1,144 +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']; ?>">
-
- <?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 class="wpsg_product_afterimage">
-
- <h2 itemprop="name" class="wpsg_producttitle"><?php echo wpsg_hspc($this->view['data']['name']); ?></h2>
-
- <?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'),
- 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_soldout">
- <?php echo __('Produkt ausverkauft', 'wpsg'); ?>
- </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>
-
- </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 |
