summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomas <noreply@maennchen1.de>2019-06-24 07:57:28 +0000
committerthomas <noreply@maennchen1.de>2019-06-24 07:57:28 +0000
commit443132c31452a174e20d3f9a46dfb849a2974546 (patch)
tree90516b7462cf06e7f21be6290f5a30e50aa2b212
parentae423922d58915f95286b4a09d1f244ca76d9329 (diff)
- Vorbereitung Wertgutschein
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7461 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/mods/mod_gutschein/product_bottom.phtml16
-rw-r--r--views/mods/mod_gutschein/settings_edit.phtml32
2 files changed, 47 insertions, 1 deletions
diff --git a/views/mods/mod_gutschein/product_bottom.phtml b/views/mods/mod_gutschein/product_bottom.phtml
new file mode 100644
index 0000000..ba938cd
--- /dev/null
+++ b/views/mods/mod_gutschein/product_bottom.phtml
@@ -0,0 +1,16 @@
+<?php
+
+ /**
+ * Template um den Wertgutschein im unteren Bereich des Produkttemplates zu integrieren
+ */
+
+?>
+<?php if ($this->hasMod('wpsg_mod_gutschein') && ($this->get_option('wpsg_mod_gutschein_wert') == 1)) { ?>
+
+ <div class="wpsg_checkoutblock" id="wpsg_vorname">
+ <label style="float:left" for="vname" class="wpsg_checkout"><?php echo __("Wertgutschein:", "wpsg"); ?></label>
+ <input style="width:50%; float:left; margin:0 20px; height:20px; " class="product_voucher" type="text" id="vname" value="" /><span style="float:left;"><?php echo $this->get_option('wpsg_currency'); ?></span>
+ </div>
+
+ <div class="wpsg_clear"></div> <br />
+<?php } ?> \ No newline at end of file
diff --git a/views/mods/mod_gutschein/settings_edit.phtml b/views/mods/mod_gutschein/settings_edit.phtml
index 9ffdbd2..b67a39a 100644
--- a/views/mods/mod_gutschein/settings_edit.phtml
+++ b/views/mods/mod_gutschein/settings_edit.phtml
@@ -6,4 +6,34 @@
?>
<?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_size', __('Länge der Gutscheincodes', 'wpsg'), $this->get_option('wpsg_mod_gutschein_size'), array ('help' => 'wpsg_mod_gutschein_size')); ?>
-<?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_perPage', __('Gutscheine pro Seite (Backend)', 'wpsg'), $this->get_option('wpsg_mod_gutschein_perPage'), array ('help' => 'wpsg_mod_gutschein_perPage')); ?> \ No newline at end of file
+<?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_perPage', __('Gutscheine pro Seite (Backend)', 'wpsg'), $this->get_option('wpsg_mod_gutschein_perPage'), array ('help' => 'wpsg_mod_gutschein_perPage')); ?>
+
+<br />
+
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_gutschein_wert', __('Wertgutschein als Zahlungsart aktiv', 'wpsg'), $this->get_option('wpsg_mod_gutschein_wert'), array ('help' => 'wpsg_mod_gutschein_wert')); ?>
+<div class="wpsg_mod_gutschein_wert_activ" style="display:none;">
+
+ <?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_wert_bezeichnung', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_gutschein_wert_bezeichnung'), array('help' => 'wpsg_mod_gutschein_wert_bezeichnung')); ?>
+ <?php echo wpsg_drawForm_Textarea('wpsg_mod_gutschein_wert_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_gutschein_wert_hint'), array('help' => 'wpsg_mod_gutschein_wert_hint')); ?>
+
+ <br />
+ <?php echo wpsg_drawForm_Input('wpsg_mod_gutschein_wert_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_gutschein_wert_gebuehr'), true), array('help' => 'wpsg_mod_gutschein_wert_gebuehr','unit' => $this->get_option('wpsg_currency').' / %')); ?>
+ <?php echo wpsg_drawForm_Select('wpsg_mod_gutschein_wert_mwst', __('Mehrwertsteuersatz', 'wpsg'), wpsg_tax_groups(), $this->get_option('wpsg_mod_gutschein_wert_mwst'), array('help' => 'wpsg_mod_gutschein_wert_mwst')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_gutschein_wert_mwstland', __('Keine MwSt. wenn Land steuerfrei', 'wpsg'), $this->get_option('wpsg_mod_gutschein_wert_mwstland'), array('help' => 'wpsg_mod_gutschein_wert_mwstland')); ?>
+
+</div>
+
+<script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#wpsg_mod_gutschein_wert').bind('change', function() {
+
+ if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_gutschein_wert_activ').show();
+ else jQuery('.wpsg_mod_gutschein_wert_activ').hide();
+
+ } ).change();
+
+ } );
+
+/* ]]> */</script> \ No newline at end of file