summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2020-10-02 07:27:25 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2020-10-02 07:27:25 +0000
commitee3ca1819f5b3df048f1d7342094b7f43cfeada7 (patch)
treea1af773241a1a4c71c8f887911633e54b369c7a5
parent31d4c579c51aba105ee6390f96d537784aab5314 (diff)
- Speicherung der Einstellung "Anzeige" im Produktattribut
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7783 0d5edaf7-2b12-4e95-93f4-047927463d4b
-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')) { ?>