diff options
| author | hartmut <noreply@maennchen1.de> | 2017-05-18 10:03:49 +0000 |
|---|---|---|
| committer | hartmut <noreply@maennchen1.de> | 2017-05-18 10:03:49 +0000 |
| commit | 7c48ccd21dfca3a3628257798bd7a8d727df74d8 (patch) | |
| tree | 19c4611e32342546226d2174c373a6daf04728d1 /views | |
| parent | b348f33f10747830b1b6dc26b2c6d804e61e70e6 (diff) | |
Anzahlfeld und Warenkorbtaste unsichtbar wenn Bestand=0
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6274 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
| -rw-r--r-- | views/produkttemplates/standard.phtml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml index b9d4c68..2a120ac 100644 --- a/views/produkttemplates/standard.phtml +++ b/views/produkttemplates/standard.phtml @@ -215,11 +215,12 @@ if (!function_exists('is_plugin_active')) <?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 ($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">
@@ -275,7 +276,11 @@ if (!function_exists('is_plugin_active')) <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 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>
|
