diff options
| author | thomas <noreply@maennchen1.de> | 2019-07-17 05:45:25 +0000 |
|---|---|---|
| committer | thomas <noreply@maennchen1.de> | 2019-07-17 05:45:25 +0000 |
| commit | 275b7e8464767913a08a5acc4d0148954bb9738d (patch) | |
| tree | aa9ec68164a83ab5b82ed48d8dbe8f1f9bff49d4 | |
| parent | 6713af92c1ff09f17c46e45db3a88bcad1a51490 (diff) | |
- Vorbereitung Wertgutschein
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7483 0d5edaf7-2b12-4e95-93f4-047927463d4b
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&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']))) { ?>
- / <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 } ?>
+ / <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>
+ / <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') { ?>
(<?php echo wpsg_ff($d['value'], $this->get_option('wpsg_currency'))?>)
<?php } else if ($d['calc_typ'] == 'p') { ?>
(<?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>
|
