summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2017-10-29 19:14:38 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2017-10-29 19:14:38 +0000
commita2014e2513b8b79354d9e56fd46181aef8f97912 (patch)
tree041a05bdedfadfa543fdf46f54952f62ae65da30
parentc24d7f9f2851bf8e88451348c6261d0153089f96 (diff)
- Anzeige der Variante in Bestellansicht / Kunden- Adminmail
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6666 0d5edaf7-2b12-4e95-93f4-047927463d4b
-rw-r--r--views/mods/mod_productvariants/mail_row.phtml7
-rw-r--r--views/mods/mod_productvariants/mail_row_html.phtml16
-rw-r--r--views/mods/mod_productvariants/order_view_row.phtml18
3 files changed, 41 insertions, 0 deletions
diff --git a/views/mods/mod_productvariants/mail_row.phtml b/views/mods/mod_productvariants/mail_row.phtml
new file mode 100644
index 0000000..35b0f1f
--- /dev/null
+++ b/views/mods/mod_productvariants/mail_row.phtml
@@ -0,0 +1,7 @@
+<?php
+
+/**
+ * Template für die Variantenintegration in die Kunden- und Adminmail
+ */
+
+?><?php echo wpsg_pad_left(__('Variante:', 'wpsg').' ', 15); ?><?php echo $this->view['variante']['key']; ?>
diff --git a/views/mods/mod_productvariants/mail_row_html.phtml b/views/mods/mod_productvariants/mail_row_html.phtml
new file mode 100644
index 0000000..e4f8864
--- /dev/null
+++ b/views/mods/mod_productvariants/mail_row_html.phtml
@@ -0,0 +1,16 @@
+<?php
+
+ /**
+ * Template für die Variantenintegration in die HTML Kunden- und Adminmail
+ */
+
+ $i = $this->view['i'];
+
+?>
+<tr class="productrow productrow2 <?php echo ((($i % 2) == 0)?'productrow_odd':'productrow_even'); ?>">
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_pos">&nbsp;</td>
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name"><?php echo __('Variante', 'wpsg'); ?>:</td>
+ <td style="padding:4px; line-height:100%; vertical-align:middle;" class="col_name" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?'4':'3'); ?>">
+ <?php echo wpsg_hspc($this->view['variante']['key']); ?>
+ </td>
+</tr>
diff --git a/views/mods/mod_productvariants/order_view_row.phtml b/views/mods/mod_productvariants/order_view_row.phtml
new file mode 100644
index 0000000..2ba41ef
--- /dev/null
+++ b/views/mods/mod_productvariants/order_view_row.phtml
@@ -0,0 +1,18 @@
+<?php
+
+ /**
+ * Anzeige des Variantennamens in der Bestellverwaltung
+ */
+
+ $i = $this->view['i'];
+
+?>
+
+<tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
+ <td class="wpsg_cell_name">
+ <?php echo __('Variante', 'wpsg'); ?>:
+ </td>
+ <td class="wpsg_cell_gesamtpreis" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
+ <?php echo $this->view['variante']['key']; ?>
+ </td>
+</tr>