diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
| commit | ad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch) | |
| tree | b41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/mods/mod_autodebit | |
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_autodebit')
| -rw-r--r-- | views/mods/mod_autodebit/mail.phtml | 21 | ||||
| -rw-r--r-- | views/mods/mod_autodebit/mail_html.phtml | 41 | ||||
| -rw-r--r-- | views/mods/mod_autodebit/order_done.phtml | 8 | ||||
| -rw-r--r-- | views/mods/mod_autodebit/order_view_afterpayment.phtml | 23 | ||||
| -rw-r--r-- | views/mods/mod_autodebit/paymenthint.phtml | 67 | ||||
| -rw-r--r-- | views/mods/mod_autodebit/settings_edit.phtml | 18 |
6 files changed, 178 insertions, 0 deletions
diff --git a/views/mods/mod_autodebit/mail.phtml b/views/mods/mod_autodebit/mail.phtml new file mode 100644 index 0000000..bec996e --- /dev/null +++ b/views/mods/mod_autodebit/mail.phtml @@ -0,0 +1,21 @@ +<?php
+
+ /**
+ * Dieses Template integriert sich in die E-Mails für Kunden und Admin und zeigt die Bankdaten für das Modul "Bankeinzug" an
+ */
+
+?>
+
+<?php echo wpsg_pad_right(__('Name der Bank', 'wpsg').':', 35); ?><?php echo $this->view['wpsg_mod_autodebit']['name']; ?>
+<?php if ($this->get_option('wpsg_mod_autodebit_iban') == '1') { ?>
+<?php echo wpsg_pad_right(__('BIC Code der Bank', 'wpsg').':', 35); ?><?php echo $this->view['wpsg_mod_autodebit']['bic']; ?>
+<?php } else { ?>
+<?php echo wpsg_pad_right(__('BLZ der Bank', 'wpsg').':', 35); ?><?php echo $this->view['wpsg_mod_autodebit']['blz']; ?>
+<?php } ?>
+<?php echo wpsg_pad_right(__('Name des Kontoinhabers', 'wpsg').':', 35); ?><?php echo $this->view['wpsg_mod_autodebit']['inhaber']; ?>
+<?php if ($this->get_option('wpsg_mod_autodebit_iban') == '1') { ?>
+<?php echo wpsg_pad_right(__('IBAN Nr.', 'wpsg').':', 35); ?><?php echo $this->view['wpsg_mod_autodebit']['iban']; ?>
+<?php } else { ?>
+<?php echo wpsg_pad_right(__('Kontonummer', 'wpsg').':', 35); ?><?php echo $this->view['wpsg_mod_autodebit']['knr']; ?>
+<?php } ?>
+
\ No newline at end of file diff --git a/views/mods/mod_autodebit/mail_html.phtml b/views/mods/mod_autodebit/mail_html.phtml new file mode 100644 index 0000000..d08970f --- /dev/null +++ b/views/mods/mod_autodebit/mail_html.phtml @@ -0,0 +1,41 @@ +<?php
+
+ /**
+ * Dieses Template integriert sich in die E-Mails für Kunden und Admin und zeigt die Bankdaten für das Modul "Bankeinzug" an
+ */
+
+?>
+
+<table style="width:100%;">
+ <tr>
+ <td><?php echo __('Name der Bank', 'wpsg'); ?></td>
+ <td style="text-align:right;"><?php echo $this->view['wpsg_mod_autodebit']['name']; ?></td>
+ </tr>
+ <?php if ($this->get_option('wpsg_mod_autodebit_iban') == '1') { ?>
+ <tr>
+ <td><?php echo __('BIC Code der Bank', 'wpsg'); ?></td>
+ <td style="text-align:right;"><?php echo $this->view['wpsg_mod_autodebit']['bic']; ?></td>
+ </tr>
+ <?php } else { ?>
+ <tr>
+ <td><?php echo __('BLZ der Bank', 'wpsg'); ?></td>
+ <td style="text-align:right;"><?php echo $this->view['wpsg_mod_autodebit']['blz']; ?></td>
+ </tr>
+ <?php } ?>
+ <tr>
+ <td><?php echo __('Name des Kontoinhabers', 'wpsg'); ?></td>
+ <td style="text-align:right;"><?php echo $this->view['wpsg_mod_autodebit']['inhaber']; ?></td>
+ </tr>
+ <?php if ($this->get_option('wpsg_mod_autodebit_iban') == '1') { ?>
+ <tr>
+ <td><?php echo __('IBAN Nr.', 'wpsg'); ?></td>
+ <td style="text-align:right;"><?php echo $this->view['wpsg_mod_autodebit']['iban']; ?></td>
+ </tr>
+ <?php } else { ?>
+ <tr>
+ <td><?php echo __('Kontonummer', 'wpsg'); ?></td>
+ <td style="text-align:right;"><?php echo $this->view['wpsg_mod_autodebit']['knr']; ?></td>
+ </tr>
+ <?php } ?>
+</table>
+
\ No newline at end of file diff --git a/views/mods/mod_autodebit/order_done.phtml b/views/mods/mod_autodebit/order_done.phtml new file mode 100644 index 0000000..ed8c4e3 --- /dev/null +++ b/views/mods/mod_autodebit/order_done.phtml @@ -0,0 +1,8 @@ +<?php
+
+ /**
+ * Template wird nach Bestellabschluss für Zahlungsart "Bankeinzug angezeigt"
+ */
+
+?>
+<p><?php echo __('Sie bezahlen mit Bankeinzug. Wir werden den Betrag von Ihrem Konto abbuchen.', 'wpsg'); ?></p>
\ No newline at end of file diff --git a/views/mods/mod_autodebit/order_view_afterpayment.phtml b/views/mods/mod_autodebit/order_view_afterpayment.phtml new file mode 100644 index 0000000..3a294c2 --- /dev/null +++ b/views/mods/mod_autodebit/order_view_afterpayment.phtml @@ -0,0 +1,23 @@ +<?php
+
+ /**
+ * Das Template wird in der Bestellansicht eingebunden und zeigt die Kontodaten des Kunden an, die er während der Bestellung angegeben hat
+ */
+
+?>
+<br />
+<?php echo wpsg_drawForm_Input('', __('Name der Bank', 'wpsg'), $this->view['wpsg_mod_autodebit']['name'], array('text' => true, 'clear_after' => true)); ?>
+
+<?php if ($this->get_option('wpsg_mod_autodebit_iban') == '1') { ?>
+<?php echo wpsg_drawForm_Input('', __('BIC der Bank', 'wpsg'), $this->view['wpsg_mod_autodebit']['bic'], array('text' => true, 'clear_after' => true)); ?>
+<?php } else { ?>
+<?php echo wpsg_drawForm_Input('', __('BLZ der Bank', 'wpsg'), $this->view['wpsg_mod_autodebit']['blz'], array('text' => true, 'clear_after' => true)); ?>
+<?php } ?>
+
+<?php echo wpsg_drawForm_Input('', __('Inhaber', 'wpsg'), $this->view['wpsg_mod_autodebit']['inhaber'], array('text' => true, 'clear_after' => true)); ?>
+
+<?php if ($this->get_option('wpsg_mod_autodebit_iban') == '1') { ?>
+<?php echo wpsg_drawForm_Input('', __('IBAN Nr.', 'wpsg'), $this->view['wpsg_mod_autodebit']['iban'], array('text' => true, 'clear_after' => true)); ?>
+<?php } else { ?>
+<?php echo wpsg_drawForm_Input('', __('Kontonummer', 'wpsg'), $this->view['wpsg_mod_autodebit']['knr'], array('text' => true, 'clear_after' => true)); ?>
+<?php } ?>
\ No newline at end of file diff --git a/views/mods/mod_autodebit/paymenthint.phtml b/views/mods/mod_autodebit/paymenthint.phtml new file mode 100644 index 0000000..93de573 --- /dev/null +++ b/views/mods/mod_autodebit/paymenthint.phtml @@ -0,0 +1,67 @@ +<?php
+
+ /**
+ * Template für die Integration der Kundeneingaben für das Modul "Bankeinzug" in den Checkout2
+ */
+
+?>
+<br /><br />
+<div class="wpsg_mod_autodebit">
+
+ <div class="wpsg_mod_autodebit_inhaber wpsg_mod_autodebit_field">
+ <label>
+ <?php echo __('Inhaber', 'wpsg'); ?><span class="wpsg_required">*</span>:
+ <input class="<?php echo ((in_array("mod_autodebit_inhaber", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg_mod_autodebit[inhaber]" value="<?php echo wpsg_hspc($this->view['wpsg_mod_autodebit']['inhaber']); ?>" />
+ </label>
+ </div>
+ <div class="wpsg_clear"></div>
+
+ <?php if ($this->get_option('wpsg_mod_autodebit_iban') == '1') { ?>
+ <div class="wpsg_mod_autodebit_bic wpsg_mod_autodebit_field">
+ <label>
+ <?php echo __('BIC', 'wpsg'); ?><span class="wpsg_required">*</span>:
+ <input class="<?php echo ((in_array("mod_autodebit_bic", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg_mod_autodebit[bic]" value="<?php echo wpsg_hspc($this->view['wpsg_mod_autodebit']['bic']); ?>" />
+ </label>
+ </div>
+ <div class="wpsg_clear"></div>
+ <?php } else { ?>
+ <div class="wpsg_mod_autodebit_blz wpsg_mod_autodebit_field">
+ <label>
+ <?php echo __('Bankleitzahl', 'wpsg'); ?><span class="wpsg_required">*</span>:
+ <input class="<?php echo ((in_array("mod_autodebit_blz", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg_mod_autodebit[blz]" value="<?php echo wpsg_hspc($this->view['wpsg_mod_autodebit']['blz']); ?>" />
+ </label>
+ </div>
+ <div class="wpsg_clear"></div>
+ <?php } ?>
+
+ <?php if ($this->get_option('wpsg_mod_autodebit_iban') == '1') { ?>
+ <div class="wpsg_mod_autodebit_iban wpsg_mod_autodebit_field">
+ <label>
+ <?php echo __('IBAN', 'wpsg'); ?><span class="wpsg_required">*</span>:
+ <input class="<?php echo ((in_array("mod_autodebit_iban", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg_mod_autodebit[iban]" value="<?php echo wpsg_hspc($this->view['wpsg_mod_autodebit']['iban']); ?>" />
+ </label>
+ </div>
+ <div class="wpsg_clear"></div>
+ <?php } else { ?>
+ <div class="wpsg_mod_autodebit_knr wpsg_mod_autodebit_field">
+ <label>
+ <?php echo __('Kontonummer', 'wpsg'); ?><span class="wpsg_required">*</span>:
+ <input class="<?php echo ((in_array("mod_autodebit_knr", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg_mod_autodebit[knr]" value="<?php echo wpsg_hspc($this->view['wpsg_mod_autodebit']['knr']); ?>" />
+ </label>
+ </div>
+ <div class="wpsg_clear"></div>
+ <?php } ?>
+
+ <div class="wpsg_mod_autodebit_name wpsg_mod_autodebit_field">
+ <label>
+ <?php echo __('Name der Bank', 'wpsg'); ?><span class="wpsg_required">*</span>:
+ <input class="<?php echo ((in_array("mod_autodebit_name", (array)$this->view['error']))?'wpsg_error':''); ?>" type="text" name="wpsg_mod_autodebit[name]" value="<?php echo wpsg_hspc($this->view['wpsg_mod_autodebit']['name']); ?>" />
+ </label>
+ </div>
+ <div class="wpsg_clear"></div>
+
+ <div class="wpsg_mandatoryfield_hint">
+ <?php echo wpsg_translate(__('Mit #1# gekennzeichnete Felder sind Pflichtfelder.', 'wpsg'), '<span class="wpsg_required">*</span>'); ?>
+ </div>
+
+</div>
\ No newline at end of file diff --git a/views/mods/mod_autodebit/settings_edit.phtml b/views/mods/mod_autodebit/settings_edit.phtml new file mode 100644 index 0000000..1e6685d --- /dev/null +++ b/views/mods/mod_autodebit/settings_edit.phtml @@ -0,0 +1,18 @@ +<?php
+
+ /**
+ * Template für die Einstellungen des Moduls "Bankeinzug"
+ */
+
+?>
+<?php echo wpsg_drawForm_Input('wpsg_mod_autodebit_bezeichnung', __('Bezeichnung', 'wpsg'), $this->get_option('wpsg_mod_autodebit_bezeichnung'), array('help' => 'wpsg_shippay_name')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_autodebit_aktiv', __('Aktiv', 'wpsg'), $this->get_option('wpsg_mod_autodebit_aktiv'), array('help' => 'wpsg_shippay_activ')); ?>
+<?php echo wpsg_drawForm_Textarea('wpsg_mod_autodebit_hint', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_autodebit_hint'), array('help' => 'wpsg_shippay_hint')); ?>
+
+<br />
+<?php echo wpsg_drawForm_Input('wpsg_mod_autodebit_gebuehr', __('Gebühr/Rabatt', 'wpsg'), wpsg_ff($this->get_option('wpsg_mod_autodebit_gebuehr'), true), array('unit' => $this->get_option('wpsg_currency').' / %', 'help' => 'wpsg_shippay_gebuehr')); ?>
+<?php echo wpsg_drawForm_Select('wpsg_mod_autodebit_mwst', __('Mehrwertsteuersatz', 'wpsg'), wpsg_tax_groups(), $this->get_option('wpsg_mod_autodebit_mwst')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_autodebit_mwstland', __('Keine MwSt. wenn Land steuerfrei', 'wpsg'), $this->get_option('wpsg_mod_autodebit_mwstland'), array('help' => 'wpsg_shippay_mwstland')); ?>
+<?php echo wpsg_drawForm_Checkbox('wpsg_mod_autodebit_iban', __('IBAN/BIC statt Kontonummer/BLZ verwenden', 'wpsg'), $this->get_option('wpsg_mod_autodebit_iban'), array('help' => 'wpsg_mod_autodebit_iban')); ?>
+<?php // echo wpsg_drawForm_Button('wpsg_mod_autodebit_ibanbicconvert2', __('BIC/IBAN Konvertierung', 'wpsg'), array('button_text' => __('BIC/IBAN Konvertieren', 'wpsg'), 'button_class' => 'wpsg_mod_autodebit_button', 'button_onclick' => 'if (!confirm(\''.wpsg_hspc(__('Es werden die Bankdaten von allen Bestellungen mit Bankeinzug in BIC/IBAN konvertiert, sofern noch nicht angegeben. Die Länderkürzel müssen den IBAN Länderkürzeln entsprechen.', 'wpsg')).'\')) return false; location.href=\''.WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_autodebit&wpsg_mod_autodebit_bicibanconverter=1&mail=0&noheader=1\'')); ?>
+<?php // echo wpsg_drawForm_Button('wpsg_mod_autodebit_ibanbicconvert', '', array('button_text' => __('BIC/IBAN Konvertierung starten / Kunden informieren', 'wpsg'), 'button_class' => 'wpsg_mod_autodebit_button', 'button_onclick' => 'if (!confirm(\''.wpsg_hspc(__('Es werden die Bankdaten von allen Bestellungen mit Bankeinzug in BIC/IBAN konvertiert, sofern noch nicht angegeben. Die Länderkürzel müssen den IBAN Länderkürzeln entsprechen. Der Kunde wird darüber per E-Mail informiert.', 'wpsg')).'\')) return false;', 'onclick' => WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_autodebit&wpsg_mod_autodebit_bicibanconverter=1&mail=1&noheader=1')); ?>
|
