summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_produktattribute/list.phtml3
-rw-r--r--views/produkttemplates/standard.phtml8
2 files changed, 6 insertions, 5 deletions
diff --git a/views/mods/mod_produktattribute/list.phtml b/views/mods/mod_produktattribute/list.phtml
index 0c20de2..1f59a93 100644
--- a/views/mods/mod_produktattribute/list.phtml
+++ b/views/mods/mod_produktattribute/list.phtml
@@ -87,7 +87,8 @@
jQuery('#show_<?php echo $pa['id']; ?>').bind('change', function() {
- if (jQuery(this).attr("checked")) value = 1; else value = 0;
+ //if (jQuery(this).attr("checked")) value = 1; else value = 0;
+ if (jQuery(this).prop("checked")) value = 1; else value = 0;
jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=module&modul=wpsg_mod_produktattribute&do=inlinedit&noheader=1',
diff --git a/views/produkttemplates/standard.phtml b/views/produkttemplates/standard.phtml
index 4492c90..bdcf3ba 100644
--- a/views/produkttemplates/standard.phtml
+++ b/views/produkttemplates/standard.phtml
@@ -162,25 +162,25 @@
<div class="wpsg_clear"></div>
- <?php /* Lagerbestand START*/?>
+ <?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 if (($this->view['data']['stock']) > '0') {?>
+ <?php if (intval($this->view['data']['stock']) > 0) {?>
<label><?php echo __('Lagerbestand', 'wpsg'); ?></label>
<?php echo wpsg_translate(__('#1# Artikel auf Lager','wpsg'), $this->view['data']['stock']); ?>
<?php } else { ?>
- <label><?php echo wpsg_translate(__('', 'wpsg')); ?></label>
+ <label><?php echo wpsg_translate(__('Ausverkauft', 'wpsg')); ?></label>
<?php } ?>
</div>
<?php } ?>
- <?php /* Lagerbestand ENDE*/?>
+ <?php /* Lagerbestand ENDE*/ ?>
<?php /* Füllmengenanzeige START */ ?>
<?php if ($this->hasMod('wpsg_mod_fuellmenge')) { ?>