summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/produkttemplates/standard.phtml10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml
index 3243cbb..3b3b59a 100644
--- a/views/produkttemplates/standard.phtml
+++ b/views/produkttemplates/standard.phtml
@@ -10,8 +10,8 @@
// Damit keine Zubehörprodukte ausgegeben werden
//$this->noReleatedProducts = true;
-if (!function_exists('is_plugin_active'))
- require_once(ABSPATH.'/wp-admin/includes/plugin.php');
+ if (!function_exists('is_plugin_active')) require_once(ABSPATH.'/wp-admin/includes/plugin.php');
+
?>
<div class="container container-fluid-page">
@@ -213,11 +213,11 @@ if (!function_exists('is_plugin_active'))
<?php if ($this->view['oProduct']->canOrder()) { ?>
<div class="wpsg_produkt_add_basket_wrapper">
- <?php if ($this->hasMod('wpsg_mod_stock') && $this->callMod('wpsg_mod_stock', 'getBestand', array($this->view['data']['id']))) { ?>
+ <?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'))) { ?>
@@ -274,7 +274,7 @@ 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']))) { ?>
- <?php if ($this->hasMod('wpsg_mod_stock') && $this->callMod('wpsg_mod_stock', 'getBestand', array($this->view['data']['id']))) { ?>
+ <?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]" />