summaryrefslogtreecommitdiff
path: root/views/mods/mod_printshop/mail_row.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2020-04-28 06:26:31 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2020-04-28 06:26:31 +0000
commitf1850f51a088c4892e215f9eb963d435f45767e4 (patch)
tree83a97e822b7f07403496b4e02b41e5e7690dd2d7 /views/mods/mod_printshop/mail_row.phtml
parentef7678be4649d041a651dc226427a58b6b49c9f2 (diff)
- Upload zu Produkten
- Flächenprodukt umbenannt in "Druckerei" inter mod_printshop git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7706 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_printshop/mail_row.phtml')
-rw-r--r--views/mods/mod_printshop/mail_row.phtml17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/mods/mod_printshop/mail_row.phtml b/views/mods/mod_printshop/mail_row.phtml
new file mode 100644
index 0000000..fd98b6c
--- /dev/null
+++ b/views/mods/mod_printshop/mail_row.phtml
@@ -0,0 +1,17 @@
+<?php
+
+ declare(strict_types=1);
+
+ /**
+ * Template für die Integration des Flächenprodukts in die Text Mail im Bereich der Produkte
+ */
+
+ $view = $this->view['wpsg_mod_printshop'];
+
+ // 150,55 m x 1,5 m = 225,83 m²
+ $strOut = wpsg_ff($view['width'], $view['unit_price'], true, 0).' x '.wpsg_ff($view['length'], $view['unit_price'], true, 0).' = '.wpsg_ff($view['area'], $view['unit_price'].'²');
+
+ // (1 m² ≅ 1,00 EUR)
+ $strOut .= '('.wpsg_ff($view['price_onepice'], $this->get_option('wpsg_currency').' / '.$view['unit_price'].'²').')';
+
+ echo wpsg_pad_left(__('Größe:', 'wpsg').' ', 12); ?><?php echo $strOut; ?>