From 99ae0ebc1bca2b52a1c58ec98ae174f767bb1643 Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 3 Sep 2018 08:58:43 +0000 Subject: git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7124 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_abo/mail_autoinformation.phtml | 13 +++++++++++++ views/mods/mod_abo/mail_autoinformation_html.phtml | 13 +++++++++++++ views/mods/mod_abo/settings_edit.phtml | 22 +++++++++++++++++----- 3 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 views/mods/mod_abo/mail_autoinformation.phtml create mode 100644 views/mods/mod_abo/mail_autoinformation_html.phtml 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 @@ + view['customer']['vname']); ?> view['customer']['name']); ?>, + +view['oProduct']->getProductName()); ?> + + + +get_option('wpsg_shopdata_name'), '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 @@ +

view['customer']['vname']); ?> view['customer']['name']); ?>,

+ +

view['oProduct']->getProductName()); ?>

+ +

+ +

get_option('wpsg_shopdata_name'), 'wpsg'); ?> -

\ 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 @@
- get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?> - get_option('wpsg_mod_abo_autoexpire_customermail'), array ('help' => 'wpsg_mod_abo_autoexpire_customermail')); ?> - get_option('wpsg_mod_abo_autoexpire_adminmail'), array ('help' => 'wpsg_mod_abo_autoexpire_adminmail')); ?> - + get_option('wpsg_mod_abo_autoexpire_payment'), array('help' => 'wpsg_mod_abo_autoexpire_payment')); ?> +
+ get_option('wpsg_mod_abo_autoexpire_customermail'),array('help' => 'wpsg_mod_abo_autoexpire_customermail')); ?> + get_option('wpsg_mod_abo_autoexpire_adminmail'), array ('help' => 'wpsg_mod_abo_autoexpire_adminmail')); ?> +
+ get_option('wpsg_mod_abo_autoexpire_information'), array('help' => 'wpsg_mod_abo_autoexpire_information')); ?> +
- __('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(); } ); -- cgit v1.2.3