summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_minrequest/produkt_addedit_allgemein.phtml31
-rw-r--r--views/mods/mod_minrequest/produkt_edit_allgemein.phtml9
-rw-r--r--views/mods/mod_minrequest/settings_edit.phtml5
-rw-r--r--views/mods/mod_voucherproduct/order_view_sidebar_content.phtml11
4 files changed, 53 insertions, 3 deletions
diff --git a/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml b/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml
new file mode 100644
index 0000000..fb4e892
--- /dev/null
+++ b/views/mods/mod_minrequest/produkt_addedit_allgemein.phtml
@@ -0,0 +1,31 @@
+<?php
+
+/**
+ * Integration des Moduls "Mindestbestellwert" in die Produktverwaltung
+ */
+
+?>
+
+<div id="wpsg_minrequest" class="panel panel-default">
+ <div class="panel-heading clearfix">
+ <h3 class="panel-title">
+ <span><?php echo __('Mindestbestellwert', 'wpsg'); ?></span>
+ </h3>
+ </div>
+ <div class="panel-body">
+
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_minrequest[product_activ]', __('Bestellwertgrenzen für dieses Produkt aktivieren', 'wpsg'), $this->view['wpsg_mod_minrequest']['data'][0]); ?>
+
+ <?php if ($this->hasMod('wpsg_mod_minrequest') && $this->get_option('wpsg_mod_minrequest_productamount') == '1') { ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_minrequest[value]', __('Mindestbestellwert', 'wpsg'), $this->view['wpsg_mod_minrequest']['value']); ?>
+ <?php } ?>
+
+ <?php if ($this->hasMod('wpsg_mod_minrequest') && $this->get_option('wpsg_mod_minrequest_productamount_max') == '1') { ?>
+ <?php echo wpsg_drawForm_Input('wpsg_mod_minrequest[valuemax]', __('Maximalbestellwert', 'wpsg'), $this->view['wpsg_mod_minrequest']['valuemax']); ?>
+ <?php } ?>
+
+ <br /><br />
+
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_minrequest"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration der Mindestbestellwerte', 'wpsg'); ?></a>
+ </div>
+</div> \ No newline at end of file
diff --git a/views/mods/mod_minrequest/produkt_edit_allgemein.phtml b/views/mods/mod_minrequest/produkt_edit_allgemein.phtml
new file mode 100644
index 0000000..8764879
--- /dev/null
+++ b/views/mods/mod_minrequest/produkt_edit_allgemein.phtml
@@ -0,0 +1,9 @@
+<?php
+
+/**
+ * Integration des Moduls "Mindestbestellwert" in die Produktverwaltung
+ */
+
+?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_minrequest[value]', __('Mindestbestellwert', 'wpsg'), $this->view['wpsg_mod_minrequest']['value']); ?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_minrequest[valuemax]', __('Maximalbestellwert', 'wpsg'), $this->view['wpsg_mod_minrequest']['valuemax']); ?> \ No newline at end of file
diff --git a/views/mods/mod_minrequest/settings_edit.phtml b/views/mods/mod_minrequest/settings_edit.phtml
index 83c63f1..bc2860b 100644
--- a/views/mods/mod_minrequest/settings_edit.phtml
+++ b/views/mods/mod_minrequest/settings_edit.phtml
@@ -7,5 +7,10 @@
?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_minrequest_productamount', __('Minimaler Produktwert aktivieren', 'wpsg'), $this->get_option('wpsg_mod_minrequest_productamount'), array('help' => 'wpsg_mod_minrequest_productamount')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_minrequest_productamount_max', __('Maximaler Produktwert aktivieren', 'wpsg'), $this->get_option('wpsg_mod_minrequest_productamount_max'), array('help' => 'wpsg_mod_minrequest_productamount_max')); ?>
+
+<br />
+
<?php echo wpsg_drawForm_Input('wpsg_mod_minrequest_basketamount', __('Minimaler Warenkorbwert', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_minrequest_basketamount')), array('hint' => __('Gilt für den Brutto Produktpreis. (Ohne Versand- und Zahlungskosten)', 'wpsg'), 'help' => 'wpsg_mod_minrequest_basketamount', 'unit' => $this->get_option('wpsg_currency'))); ?>
<?php echo wpsg_drawForm_Input('wpsg_mod_minrequest_basketmaxamount', __('Maximaler Warenkorbwert', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_minrequest_basketmaxamount')), array('hint' => __('Gilt für den Brutto Produktpreis. (Ohne Versand- und Zahlungskosten)', 'wpsg'), 'help' => 'wpsg_mod_minrequest_basketmaxamount', 'unit' => $this->get_option('wpsg_currency'))); ?> \ No newline at end of file
diff --git a/views/mods/mod_voucherproduct/order_view_sidebar_content.phtml b/views/mods/mod_voucherproduct/order_view_sidebar_content.phtml
index b1bf335..c528a8d 100644
--- a/views/mods/mod_voucherproduct/order_view_sidebar_content.phtml
+++ b/views/mods/mod_voucherproduct/order_view_sidebar_content.phtml
@@ -12,13 +12,18 @@
<div class="wpsg_mod_voucherproduct_code">
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Voucher&amp;wpsg_search=<?php echo $d['code']; ?>"><?php echo wpsg_hspc($d['code']); ?></a>
<?php if ($this->callMod('wpsg_mod_voucherproduct', 'hasFile', array($this->view['wpsg_mod_voucherproduct']['order_id'], $d['id']))) { ?>
- &nbsp;/&nbsp;<a target="_blank" href="<?php echo $this->callMod('wpsg_mod_voucherproduct', 'getBackendDownloadURL', array($this->view['wpsg_mod_voucherproduct']['order_id'], $d['id'])); ?>"><?php echo __('Download', 'wpsg'); ?></a>
- <?php } ?>
+ &nbsp;/&nbsp;<a target="_blank" href="<?php echo $this->callMod('wpsg_mod_voucherproduct', 'getBackendDownloadURL', array($this->view['wpsg_mod_voucherproduct']['order_id'], $d['id'])); ?>">
+ <?php echo __('Download', 'wpsg'); ?>
+ </a>
+ &nbsp;/&nbsp;<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_voucherproduct&gs_id=<?php echo $d['id']; ?>&order_id=<?php echo $this->view['wpsg_mod_voucherproduct']['order_id']; ?>&noheader=1&cmd=getVoucher" target="_new">
+ <?php echo __('Ansehen', 'wpsg'); ?>
+ </a>
+ <?php } ?>
<?php if ($d['calc_typ'] == 'w') { ?>
&nbsp;(<?php echo wpsg_ff($d['value'], $this->get_option('wpsg_currency'))?>)
<?php } else if ($d['calc_typ'] == 'p') { ?>
&nbsp;(<?php echo wpsg_ff($d['value'], '%')?>)
- <?php } ?>
+ <?php } ?>
</div>
<div class="wpsg_mod_voucherproduct_status"><?php echo wpsg_hspc($d['status']); ?></div>
<div class="wpsg_clear"></div>