summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-08-02 09:51:50 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-08-02 09:51:50 +0000
commit63377639bd6382006028861ef5fd82767aa5fe0f (patch)
tree31e3bbb129599452232bfa2f6237a4c1654bda5e
parentdebf2216a471559260a23832106ed4de24591af0 (diff)
- Neue Kunden stehen erstmal auf aktiv
- Anlegen von Wertgutscheinen git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7493 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/mods/mod_voucherproduct/produkt_edit_sidebar.phtml46
-rw-r--r--views/warenkorb/basket.phtml2
2 files changed, 37 insertions, 11 deletions
diff --git a/views/mods/mod_voucherproduct/produkt_edit_sidebar.phtml b/views/mods/mod_voucherproduct/produkt_edit_sidebar.phtml
index 856ecb0..6181b11 100644
--- a/views/mods/mod_voucherproduct/produkt_edit_sidebar.phtml
+++ b/views/mods/mod_voucherproduct/produkt_edit_sidebar.phtml
@@ -12,16 +12,44 @@
</h3>
</div>
<div class="panel-body">
- <?php if (isset($this->view['data']['wpsg_mod_voucherproduct_gs']))
- echo wpsg_drawForm_Checkbox('wpsg_mod_voucherproduct_gs', __('Gutschein generieren', 'wpsg'), $this->view['data']['wpsg_mod_voucherproduct_gs']); ?>
- <?php if (isset($this->view['data']['wpsg_mod_voucherproduct_gslaenge']))
- echo wpsg_drawForm_Input('wpsg_mod_voucherproduct_gslaenge', __('Länge des Gutscheincodes', 'wpsg'), (($this->view['data']['wpsg_mod_voucherproduct_gslaenge'] > 0)?$this->view['data']['wpsg_mod_voucherproduct_gslaenge']:10)); ?>
- <?php if (isset($this->view['data']['wpsg_mod_voucherproduct_available']))
- echo wpsg_drawForm_Input('wpsg_mod_voucherproduct_available', __('Gültigkeit (Tage)', 'wpsg'), $this->view['data']['wpsg_mod_voucherproduct_available']); ?>
-
- <br /><br />
+
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_voucherproduct_gs', __('Gutschein generieren', 'wpsg'), $this->view['data']['wpsg_mod_voucherproduct_gs']); ?>
+
+ <div class="wpsg_mod_voucherproduct_gs wpsg_mod_voucherproduct_gs_1" style="display:none;">
+
+ <br />
+
+ <?php echo wpsg_drawForm_Input('wpsg_mod_voucherproduct_gslaenge', __('Länge des Gutscheincodes', 'wpsg'), (($this->view['data']['wpsg_mod_voucherproduct_gslaenge'] > 0)?$this->view['data']['wpsg_mod_voucherproduct_gslaenge']:10)); ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_voucherproduct_available', __('Gültigkeit (Tage)', 'wpsg'), $this->view['data']['wpsg_mod_voucherproduct_available']); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_voucherproduct_coupon', __('Gutschein als Wertgutschein generieren', 'wpsg'), $this->view['data']['wpsg_mod_voucherproduct_coupon']); ?>
+
+ </div>
+
+ <script>
+
+ jQuery(document).ready(function() {
+
+ jQuery('#wpsg_mod_voucherproduct_gs').on('change', function() {
+
+ if (jQuery(this).prop('checked')) {
+
+ jQuery('.wpsg_mod_voucherproduct_gs_1').show();
+
+ } else {
+
+ jQuery('.wpsg_mod_voucherproduct_gs_1').hide();
+
+ }
+
+ }).trigger('change');
+
+ });
+
+ </script>
+
+ <br /><br />
- <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_voucherproduct"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration des Gutscheinproduktes', 'wpsg'); ?></a>
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_voucherproduct"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration des Gutscheinproduktes', 'wpsg'); ?></a>
</div>
</div>
diff --git a/views/warenkorb/basket.phtml b/views/warenkorb/basket.phtml
index 0c4c169..3f541ef 100644
--- a/views/warenkorb/basket.phtml
+++ b/views/warenkorb/basket.phtml
@@ -145,8 +145,6 @@
<?php $bLine = false; ?>
-
-
<?php if (wpsg_isSizedArray($this->view['basket']['arCalculation']['voucher'])) { $bLine = true; ?>
<?php foreach ($this->view['basket']['arCalculation']['voucher'] as $gs) { ?>