Index: openacs-4/packages/ecommerce/www/admin/email-templates/add.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/email-templates/add.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/email-templates/add.adp 18 Aug 2008 21:31:25 -0000 1.1 @@ -0,0 +1,31 @@ + + @title;noquote@ + @context;noquote@ +

@title@

+ +

Please note: Email templates are designed be edited by a content writer (e.g. a customer service rep), but a programmer will have to schedule the sending of this email and program in the variable substitution. +

+ +
+ +

For informational purposes

+ + + + +
Title
Variables Note on variables
When Sent
+
+

Actually used when sending email

+ + + + +
Subject Line
Message
Issue Type*@issue_type_widget_html;noquote@
+
+
+ +
+
+

+* Note: A customer service issue is created whenever an email is sent. The issue is automatically closed unless the customer replies to the issue, in which case it is reopened. +

Index: openacs-4/packages/ecommerce/www/admin/email-templates/add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/email-templates/add.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/ecommerce/www/admin/email-templates/add.tcl 9 Mar 2004 00:59:48 -0000 1.3 +++ openacs-4/packages/ecommerce/www/admin/email-templates/add.tcl 18 Aug 2008 21:31:25 -0000 1.4 @@ -1,5 +1,4 @@ # add.tcl - ad_page_contract { @author @creation-date @@ -10,48 +9,7 @@ ad_require_permission [ad_conn package_id] admin -append doc_body "[ad_admin_header "Add Email Template"] -

Add Email Template

-[ad_context_bar [list "../" "Ecommerce([ec_system_name])"] [list "index.tcl" "Email Templates"] "New Template"] -
-

-Please note: Email templates are designed be edited by a content writer (e.g. a customer service rep), but a programmer will have to schedule the sending of this email and program in the variable substitution. +set title "Add Email Template" +set context [list [list index "Email Templates"] $title] -

- -

For informational purposes

- -
- - - - -
Title
Variables Note on variables
When Sent
-
- -

Actually used when sending email

- -
- - - -" - - - -append doc_body " -
Subject Line
Message
Issue Type*[ec_issue_type_widget]
-
- -

-

- -
-
- -* Note: A customer service issue is created whenever an email is sent. The issue is automatically closed unless the customer replies to the issue, in which case it is reopened. - -[ad_admin_footer] -" - -doc_return 200 text/html $doc_body +set issue_type_widget_html [ec_issue_type_widget] Index: openacs-4/packages/ecommerce/www/admin/email-templates/edit.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/email-templates/edit.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/email-templates/edit.adp 18 Aug 2008 21:31:25 -0000 1.1 @@ -0,0 +1,30 @@ + + @title;noquote@ + @context;noquote@ +

@title@

+ +
+

For informational purposes

+ + + + + +
Title
Variables Note on variables
When Sent
+
+

Actually used when sending email

+ + + + + +
Template ID$email_template_id
Subject Line
Message
Issue Type*@issue_type_widget_html;noquote
+
+
+ +
+
+

+* Note: A customer service issue is created whenever an email is sent. The issue is automatically closed unless the customer replies to the issue, in which case it is reopened. +

+

Audit Trail

Index: openacs-4/packages/ecommerce/www/admin/email-templates/edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/email-templates/edit.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/ecommerce/www/admin/email-templates/edit.tcl 9 Mar 2004 00:59:48 -0000 1.3 +++ openacs-4/packages/ecommerce/www/admin/email-templates/edit.tcl 18 Aug 2008 21:31:25 -0000 1.4 @@ -12,49 +12,19 @@ ad_require_permission [ad_conn package_id] admin -append doc_body "[ad_admin_header "Edit Email Template"] -

Edit Email Template

-[ad_context_bar [list "../" "Ecommerce([ec_system_name])"] [list "index.tcl" "Email Templates"] "Edit Template"] -
-
-[export_form_vars email_template_id] -" +set title "Edit Email Template" +set context [list [list index "Email Templates"] $title] +set export_form_vars_html [export_form_vars email_template_id] if { ![db_0or1row unused "select * from ec_email_templates where email_template_id=:email_template_id"] } { ad_return_complaint 1 "Invalid email_template_id passed in" } db_release_unused_handles -append doc_body "

For informational purposes

-
- - - - -
Title
Variables Note on variables
When Sent
-
+set issue_type_widget_html [ec_issue_type_widget $issue_type_list] -

Actually used when sending email

- -
- - - - - -
Template ID$email_template_id
Subject Line
Message
Issue Type*[ec_issue_type_widget $issue_type_list]
-
-

-

- -
-
- -* Note: A customer service issue is created whenever an email is sent. The issue is automatically closed unless the customer replies to the issue, in which case it is reopened. -" - set table_names_and_id_column [list ec_email_templates ec_email_templates_audit email_template_id] # Set audit variables @@ -66,11 +36,5 @@ set audit_name "Email Template: $title" set audit_id $email_template_id -append doc_body "

-\[Audit Trail\] +append doc_body "[ec_url_concat [ec_url] /admin]/audit?[export_url_vars audit_name audit_id audit_id_column return_url audit_tables main_tables]" -[ad_admin_footer] -" - - -doc_return 200 text/html $doc_body Index: openacs-4/packages/ecommerce/www/admin/email-templates/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/email-templates/index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/email-templates/index.adp 18 Aug 2008 21:31:25 -0000 1.1 @@ -0,0 +1,14 @@ + + @title;noquote@ + @context;noquote@ +

@title@

+ + +
+

Current Email Templates:

+ Index: openacs-4/packages/ecommerce/www/admin/email-templates/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/email-templates/index.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/ecommerce/www/admin/email-templates/index.tcl 9 Mar 2004 00:59:48 -0000 1.3 +++ openacs-4/packages/ecommerce/www/admin/email-templates/index.tcl 18 Aug 2008 21:31:25 -0000 1.4 @@ -12,31 +12,16 @@ set table_names_and_id_column [list ec_email_templates ec_email_templates_audit email_template_id] -append doc_body "[ad_admin_header "Email Templates"] -

Email Templates

-[ad_context_bar [list "../" "Ecommerce([ec_system_name])"] "Email Templates"] -

-

-

-Current Email Templates: -

-[ad_admin_footer]" - -doc_return 200 text/html $doc_body Index: openacs-4/packages/ecommerce/www/admin/email-templates/variables.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/email-templates/variables.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/email-templates/variables.adp 18 Aug 2008 21:31:25 -0000 1.1 @@ -0,0 +1,35 @@ + + @title;noquote@ + @context;noquote@ +

@title@

+ +

We ask you to list the variables you're using so that programmers will know what things they should substitute for in the body of the email. Variable names should be descriptive so that it's obvious to the programmers what each one means. +

+An example: +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
TitleNew Order
Variablesconfirmed_date_here, address_here, order_summary_here, price_here, shipping_here, tax_here, total_here
When SentThis email will automatically be sent out after an order has been authorized
Subject LineYour Order
Message@example_email;noquote@
Issue Typenew order
Index: openacs-4/packages/ecommerce/www/admin/email-templates/variables.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/email-templates/variables.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/ecommerce/www/admin/email-templates/variables.tcl 9 Mar 2004 00:59:48 -0000 1.3 +++ openacs-4/packages/ecommerce/www/admin/email-templates/variables.tcl 18 Aug 2008 21:31:25 -0000 1.4 @@ -1,5 +1,4 @@ # variables.tcl - ad_page_contract { @author @creation-date @@ -10,42 +9,10 @@ ad_require_permission [ad_conn package_id] admin -append doc_body "[ad_admin_header "Note on Variables"] +set title "Note on Variables" +set context [list [list index "Email Templates"] $title] -

Note on Variables

- -[ad_context_bar [list "../" "Ecommerce([ec_system_name])"] [list "index.tcl" "Email Templates"] "Note on Variables"] - -
- -We ask you to list the variables you're using so that programmers will know what things they should substitute for in the body of the email. Variable names should be descriptive so that it's obvious to the programmers what each one means. - -

- -An example: - -

- - - - - - - - - - - - - - - - - - - - - - - - - - -
TitleNew Order
Variablesconfirmed_date_here, address_here, order_summary_here, price_here, shipping_here, tax_here, total_here
When SentThis email will automatically be sent out after an order has been authorized
Subject LineYour Order
Message[ec_display_as_html "Thank you for your order. We received your order on +set example_email [ec_display_as_html "Thank you for your order. We received your order on confirmed_date_here. To view the status of your order at any time, please log in to @@ -70,19 +37,4 @@ Sincerely, Customer Service info@whatever.com -http://www.whatever.com"]
Issue Typenew order
- -[ad_admin_footer] -" - - -doc_return 200 text/html $doc_body - - - +http://www.whatever.com"]