diff options
| author | thomas <noreply@maennchen1.de> | 2018-09-03 08:58:43 +0000 |
|---|---|---|
| committer | thomas <noreply@maennchen1.de> | 2018-09-03 08:58:43 +0000 |
| commit | 99ae0ebc1bca2b52a1c58ec98ae174f767bb1643 (patch) | |
| tree | 27fe6a42109e4042e88a98a777d9f53e1ac0aed2 | |
| parent | baf74bb7fe974b2cc092f63111554caeb40b92e8 (diff) | |
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7124 0d5edaf7-2b12-4e95-93f4-047927463d4b
| -rw-r--r-- | views/mods/mod_abo/mail_autoinformation.phtml | 13 | ||||
| -rw-r--r-- | views/mods/mod_abo/mail_autoinformation_html.phtml | 13 | ||||
| -rw-r--r-- | views/mods/mod_abo/settings_edit.phtml | 22 |
3 files changed, 43 insertions, 5 deletions
diff --git a/views/mods/mod_abo/mail_autoinformation.phtml b/views/mods/mod_abo/mail_autoinformation.phtml new file mode 100644 index 0000000..fe44618 --- /dev/null +++ b/views/mods/mod_abo/mail_autoinformation.phtml @@ -0,0 +1,13 @@ +<?php
+
+ /**
+ * Template für die Informationsmail an den Kunden wenn ein Abo automatisch verlängert werden soll
+ */
+
+?><?php echo __('Hallo', 'wpsg'); ?> <?php echo wpsg_hspc($this->view['customer']['vname']); ?> <?php echo wpsg_hspc($this->view['customer']['name']); ?>,
+
+<?php echo wpsg_translate(__('Ihr Abonnement von Produkt "#1#" wird in #2# automatisch verlängert.', 'wpsg'), $this->view['oProduct']->getProductName()); ?>
+
+<?php echo __('Viele Grüße', '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_abo/mail_autoinformation_html.phtml b/views/mods/mod_abo/mail_autoinformation_html.phtml new file mode 100644 index 0000000..1393a8c --- /dev/null +++ b/views/mods/mod_abo/mail_autoinformation_html.phtml @@ -0,0 +1,13 @@ +<?php
+
+ /**
+ * Template für die Informationsmail an den Kunden wenn ein Abo automatisch verlängert werden soll
+ */
+
+?><p><?php echo __('Hallo', 'wpsg'); ?> <?php echo wpsg_hspc($this->view['customer']['vname']); ?> <?php echo wpsg_hspc($this->view['customer']['name']); ?>,</p>
+
+<p><?php echo wpsg_translate(__('Ihr Abonnement von Produkt "#1#" wird in #2# automatisch verlängert.', 'wpsg'), $this->view['oProduct']->getProductName()); ?></p>
+
+<p><?php echo __('Viele Grüße', 'wpsg'); ?></p>
+
+<p><?php echo __($this->get_option('wpsg_shopdata_name'), 'wpsg'); ?> - <?php echo __('Team', 'wpsg'); ?></p>
\ No newline at end of file diff --git a/views/mods/mod_abo/settings_edit.phtml b/views/mods/mod_abo/settings_edit.phtml index 7e10bd7..f18a1f4 100644 --- a/views/mods/mod_abo/settings_edit.phtml +++ b/views/mods/mod_abo/settings_edit.phtml @@ -33,13 +33,18 @@ <div class="wpsg_mod_expiremode wpsg_mod_expiremode_<?php echo wpsg_mod_abo::EXPIRE_AUTO; ?>" style="display:<?php echo (($this->get_option('wpsg_mod_abo_expiremode') == wpsg_mod_abo::EXPIRE_AUTO)?'block':'none'); ?>;">
<?php /* TODO: Mehrfachauswahl von Zahlungsarten */ ?>
- <?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_payment', __('Zahlungsart für automatische Verlängerung'), $arPaymentSelect, $this->get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_customermail', __('Mail an Kunden'), $this->get_option('wpsg_mod_abo_autoexpire_customermail'), array ('help' => 'wpsg_mod_abo_autoexpire_customermail')); ?>
- <?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_adminmail', __('Mail an Administrator'), $this->get_option('wpsg_mod_abo_autoexpire_adminmail'), array ('help' => 'wpsg_mod_abo_autoexpire_adminmail')); ?>
-
+ <?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_payment', __('Zahlungsart für automatische Verlängerung', 'wpsg'), $arPaymentSelect, $this->get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?>
+<br />
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_customermail', __('Mail an Kunden', 'wpsg'), $this->get_option('wpsg_mod_abo_autoexpire_customermail'),array('help' => 'wpsg_mod_abo_autoexpire_customermail')); ?>
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_adminmail', __('Mail an Administrator', 'wpsg'), $this->get_option('wpsg_mod_abo_autoexpire_adminmail'), array ('help' => 'wpsg_mod_abo_autoexpire_adminmail')); ?>
+<br />
+ <?php echo wpsg_drawForm_Checkbox('wpsg_mod_abo_autoexpire_information', __('Mail vor automatischer Verlängerung versenden', 'wpsg'), $this->get_option('wpsg_mod_abo_autoexpire_information'), array('help' => 'wpsg_mod_abo_autoexpire_information')); ?>
+ <div class="wpsg_mod_abo_autoexpire_informationactiv" style="display:none;">
+ <?php echo wpsg_drawForm_Input('wpsg_mod_abo_autoexpire_informationtime', __('Zeitspanne zum Versenden der Informationsmail in Tagen', 'wpsg'), $this->get_option('wpsg_mod_abo_autoexpire_informationtime'), array('help' => 'wpsg_mod_abo_autoexpire_informationtime')); ?>
+ </div>
<br />
- <?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_customer', __('Kunde kann im Frontend'), Array(
+ <?php echo wpsg_drawForm_Select('wpsg_mod_abo_autoexpire_customer', __('Kunde kann im Frontend', 'wpsg'), Array(
wpsg_mod_abo::CUSTOMER_AUTO_NOTHING => __('Nichts', 'wpsg'),
wpsg_mod_abo::CUSTOMER_AUTO_DIRECT => __('Verlängerung direkt stoppen', 'wpsg'),
wpsg_mod_abo::CUSTOMER_AUTO_MAIL => __('Verlängerung über Mail an Administrator stoppen', 'wpsg')
@@ -88,6 +93,13 @@ else jQuery('.wpsg_mod_expiremode_moreorder_deactiv').show();
} ).change();
+
+ jQuery('#wpsg_mod_abo_autoexpire_information').bind('change', function() {
+
+ if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_abo_autoexpire_informationactiv').show();
+ else jQuery('.wpsg_mod_abo_autoexpire_informationactiv').hide();
+
+ } ).change();
} );
|
