summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2021-03-25 08:38:52 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2021-03-25 08:38:52 +0000
commit0acb5308215717e40f75ed9cb42aace1ce9f11ff (patch)
treee5ef976c8291027379a742ccb2f127f6003ff7bf
parent46fb0d0900a4e2a321ea691b1c916bb5b8728d96 (diff)
- RegEx Kundensuche korrigiert
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7879 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/mods/mod_productvariants/admin_edit.phtml29
1 files changed, 29 insertions, 0 deletions
diff --git a/views/mods/mod_productvariants/admin_edit.phtml b/views/mods/mod_productvariants/admin_edit.phtml
index 0546aa3..57d4f47 100644
--- a/views/mods/mod_productvariants/admin_edit.phtml
+++ b/views/mods/mod_productvariants/admin_edit.phtml
@@ -304,11 +304,40 @@
</script>
+ <?php if (intval($this->view['product_id']) <= 0) { ?>
+ <span style="padding-left:15px;">
+ <span style="display:inline-block; margin-right:5px;"><?php echo __('Für alle Downloadplus Produkte:', 'wpsg'); ?></span>
+ <a onclick="return wpsg_mod_downloadplus_setProducts(<?php echo $vari['id']; ?>, '1');" href="#" style="display:inline-block;"><?php echo __('aktivieren', 'wpsg'); ?></a>
+ <span style="margin:0 3px; text-align:center;">/</span>
+ <a onclick="return wpsg_mod_downloadplus_setProducts(<?php echo $vari['id']; ?>, '0');" href="#" style="display:inline-block;"><?php echo __('deaktivieren', 'wpsg'); ?></a>
+ </span>
+ <?php } ?>
+
</div>
<?php } ?>
<script>
+ function wpsg_mod_downloadplus_setProducts(vari_id, active) {
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_wpsg_mod_downloadplus_setProducts&noheader=1',
+ async: false,
+ data: {
+ vari_id: vari_id,
+ active: active
+ },
+ success: function(data) {
+
+ if (data != '1') alert(data);
+
+ }
+ } );
+
+ return false;
+
+ }
+
jQuery(document).ready(function() {
<?php if (intval($this->view['product_id']) <= 0) { ?>