summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/mods/mod_stock/produkt_edit_sidebar.phtml8
-rw-r--r--views/mods/mod_stock/settings_edit.phtml3
-rw-r--r--views/mods/mod_stock/stockmail.phtml17
-rw-r--r--views/mods/mod_stock/stockmail_html.phtml17
4 files changed, 44 insertions, 1 deletions
diff --git a/views/mods/mod_stock/produkt_edit_sidebar.phtml b/views/mods/mod_stock/produkt_edit_sidebar.phtml
index 3ed8618..1fcce65 100644
--- a/views/mods/mod_stock/produkt_edit_sidebar.phtml
+++ b/views/mods/mod_stock/produkt_edit_sidebar.phtml
@@ -7,4 +7,10 @@
?>
<?php echo wpsg_drawForm_Input('wpsg_mod_stock_stock', __('Lagerbestand', 'wpsg'), wpsg_getStr($this->view['data']['stock'], '0')); ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_stock_count', __('Lagerbestand zählen', 'wpsg'), wpsg_getStr($this->view['data']['stock_count'], '0')); ?>
-<?php echo __('Lagerbestand = Bestand(Variante 1) + Bestand(Variante 2) + Bestand(Variante X)','wpsg'); ?> \ No newline at end of file
+<?php echo __('Lagerbestand = Bestand(Variante 1) + Bestand(Variante 2) + Bestand(Variante X)','wpsg'); ?>
+
+<?php /* Mailbenachrichtigung beim Erreichen des Minimalbestandes des Produktes */ ?>
+<?php if ($this->get_option('wpsg_mod_stock_minstockproduct') == '1') { ?>
+<?php echo wpsg_drawForum_Input('wpsg_mod_minstockproduct', __('Mindestlagerbestand', 'wpsg'), wpsg_getStr($this->view['data']['minstockproduct_count'])); ?>
+<?php echo wpsg_drawForum_Input('wpsg_mod_stock_minstockproduct_mail', __('Benachrichtigung an', 'wpsg'), wpsg_getStr($this->view['data']['minstockproduct_mail'])); ?>
+<?php }?>
diff --git a/views/mods/mod_stock/settings_edit.phtml b/views/mods/mod_stock/settings_edit.phtml
index ed22e0e..92e2194 100644
--- a/views/mods/mod_stock/settings_edit.phtml
+++ b/views/mods/mod_stock/settings_edit.phtml
@@ -32,6 +32,9 @@
<?php } ?>
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showProduct', __('Bestand in Produkt (Frontend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showProduct'), array('help' => 'wpsg_mod_stock_showProduct')); ?>
+<br />
+
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_minstockproduct', __('Minimalbestand im Produkt hinterlegen', 'wpsg'), $this->get_option('wpsg_mod_stock_minstockproduct'), array('help' => 'wpsg_mod_stock_minstockproduct')); ?>
<script type="text/javascript">/* <![CDATA[ */
diff --git a/views/mods/mod_stock/stockmail.phtml b/views/mods/mod_stock/stockmail.phtml
new file mode 100644
index 0000000..59c8b11
--- /dev/null
+++ b/views/mods/mod_stock/stockmail.phtml
@@ -0,0 +1,17 @@
+<?php
+
+ /**
+ * Dieses Template wird für die HTML Mail beim Erreichen des Mindestlagerbestandes eines Produktes verwendet
+ */
+
+ $this->htmlMail = false;
+
+?>
+
+<?php echo __('Hallo Administrator,', 'wpsg'); ?>
+
+<?php echo wpsg_translate(__('Ein Produkt hat das Erreichen des minimalen Lagerbestand am #1# um #2# Uhr gemeldet', 'wpsg'), date('d.m.Y'), date('H:i')); ?>
+
+<?php echo __('Mit freundlichen Grüßen', 'wpsg'); ?>
+
+<?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?> \ No newline at end of file
diff --git a/views/mods/mod_stock/stockmail_html.phtml b/views/mods/mod_stock/stockmail_html.phtml
new file mode 100644
index 0000000..ed0d176
--- /dev/null
+++ b/views/mods/mod_stock/stockmail_html.phtml
@@ -0,0 +1,17 @@
+<?php
+
+ /**
+ * Dieses Template wird für die HTML Mail beim Erreichen des Mindestlagerbestandes eines Produktes verwendet
+ */
+
+ $this->htmlMail = true;
+
+?>
+
+<p><?php echo __('Hallo Administrator,', 'wpsg'); ?></p>
+
+<p><?php echo wpsg_translate(__('Ein Produkt hat das Erreichen des minimalen Lagerbestand am #1# um #2# Uhr gemeldet', 'wpsg'), date('d.m.Y'), date('H:i')); ?></p>
+
+<p><?php echo __('Mit freundlichen Grüßen', 'wpsg'); ?></p>
+
+<p><?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?></p> \ No newline at end of file