claudiulodro
19047ffb00
Better way of doing it
2017-05-15 18:09:24 -07:00
claudiulodro
838b175f67
Use store language in customer emails
2017-05-15 14:34:37 -07:00
Mike Jolley
a4ad49a8e3
Only set reply-to if the email + name is set.
...
Closes #14151
2017-05-08 12:50:39 +01:00
Mike Jolley
05e6c506ce
Email dates
2017-03-10 16:29:15 +00:00
Claudio Sanches
486a81bf12
Fixed coding standards
2017-02-17 16:10:15 -02:00
Mike Jolley
bbf8e750ce
Tidy up includes
2017-02-16 11:46:01 +00:00
Mike Jolley
b58e26b0ab
Backwards compatibility for triggers
...
Closes #13141
2017-02-10 13:09:37 +00:00
Claudiu Lodromanean
ab8fb48bb4
Fix and standardize e-mail sending
2017-02-09 14:49:39 -08:00
Mike Jolley
ed51c8ac13
Pass order object to emails
2017-02-01 17:54:47 +01:00
Claudio Sanches
9c27661dea
Synchronized with master
2017-01-12 17:53:15 -02:00
Mike Jolley
76f8c3dddd
Escaping for scruitinizer
2017-01-06 12:45:28 +00:00
Jon Surrell
e4d5886427
Replace log `tag` with log `source`
2016-12-29 11:58:43 +01:00
Jon Surrell
691c35e97b
Update logger calls
2016-12-29 11:58:42 +01:00
Krzysztof Grabania
3a54b24fa1
Added email ID to locate core template for email
...
This PR adds email id to `woocommerce_locate_core_template` filter. It would be useful for custom emails created by plugins, which have got default email templates.
2016-12-28 20:38:51 +01:00
Claudio Sanches
208fa011b9
Fixed deprecated warnings
2016-11-08 19:00:57 -02:00
Claudio Sanches
2de494e105
Merge pull request #12219 from ramiy/i18n-translation-comments
...
i18n: add translators comments
2016-11-03 13:24:35 -02:00
Mike Jolley
32e814eef1
Use all paid statuses in $customer->get_total_spent()
2016-11-03 11:27:03 +00:00
Rami Yushuvaev
55f08d62ae
add translators comments
2016-10-29 23:03:28 +03:00
Rami Yushuvaev
93d55dade9
add translators comments
2016-10-29 20:32:38 +03:00
Rami Yushuvaev
0c1e531091
few more i18n updates ( #12185 )
...
* i18n: simpler translation strings
* i18n: simpler translation strings
* i18n: readble printf(), and moving the %s placeholder to `%s product`
* i18n: make string translatable and remove the HTML tags
* i18n: avoide using HTML tags in translatino strings
2016-10-26 11:31:32 -02:00
Rami Yushuvaev
140d0efb99
i18n: Avoid using HTML tags in translation strings ( #12166 )
...
* i18n: Remove some HTML tags from translation strings
* i18n: simpler translation string
* i18n: translations strings with surrounding `<strong>` HTML tags should be moved outside the translation string
* i18n: Avoide using `<code>' HTML tags in translation strings
* i18n: Split the notice to avoide using HTML tags in translation strings
2016-10-24 21:56:37 -02:00
Mike Jolley
ec65084451
[2.6] Send processing email on on-hold to processing transition.
...
Closes #12117
2016-10-19 12:55:22 +01:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Rami Yushuvaev
83e938af1e
i18n: Merge similar translation strings to reduce the total strings count #11905
2016-10-11 04:39:13 +03:00
Aristeides Stathopoulos
9668247b95
WordPress.PHP.YodaConditions.NotYoda
2016-09-09 03:14:28 +03:00
Aristeides Stathopoulos
2346c3b735
Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace
2016-09-02 06:15:49 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos
69e6b05205
typo fix
2016-08-27 17:10:12 +03:00
Aristeides Stathopoulos
7c589cf7e1
WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterCloseParenthesis
2016-08-27 07:53:52 +03:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Multidots
41d079f086
Fixes add reply-to to admin emails ref #11630
2016-08-23 13:09:27 +05:30
Multidots
c7fc7cce07
Merge branch 'master' of https://github.com/nishitlangaliya/woocommerce
2016-08-23 12:41:22 +05:30
nishit.langaliya
94ed2fd96d
Fixes: Add reply-to to admin emails ref #11630
2016-08-22 11:42:21 +05:30
Multidots
63c3a979f4
Fixes Add reply-to to admin emails
2016-08-15 16:31:12 +05:30
Mike Jolley
39eb584321
Merge branch 'master' into orders-crud-function-update
2016-08-08 17:24:40 +01:00
Mike Jolley
7bdda1f707
more dates
2016-08-08 16:34:01 +01:00
Mike Jolley
cfe28c9b25
Made WC_Logger pluggable via wc_get_logger function.
...
Closes #11474
2016-08-08 13:59:23 +01:00
Mike Jolley
f4727c0cae
billing_email
2016-08-05 16:11:23 +01:00
Claudio Sanches
7d9d091767
Fixed mixed tabs and spaces
2016-07-11 16:56:35 +02:00
Gregory Karpinsky
7814acb96e
Typo in WC_Email_Customer_New_Account
2016-07-05 18:48:40 -04:00
Claudio Sanches
8d23577683
Fixed the load of the WC_Email_Customer_On_Hold_Order class, closes #11348
2016-07-04 17:37:16 -03:00
Mike Jolley
f47e9f4af5
woocommerce_order_status_failed_to_on-hold_notification for on hold email
2016-06-09 12:20:57 +01:00
Mike Jolley
f8db1c403f
Type casting and docs
2016-06-07 11:22:36 +01:00
Mike Jolley
730019ef18
scrutinizer best practice
2016-06-06 19:39:23 +01:00
Mike Jolley
3fd15ad50f
Unused vars and code docs
2016-06-06 18:57:24 +01:00
Scrutinizer Auto-Fixer
7cef8ae4c9
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-06-06 16:50:18 +00:00
Claudio Sanches
47fd4af2a3
Fixed WC_Email_Customer_On_Hold_Order version
2016-06-05 17:25:18 -03:00
Fredrik Forsmo
81bc211c57
Add `public` keyword to public email methods
2016-04-26 18:26:58 +02:00
Diego Zanella
ba46a5275f
Backward compatibility with WC 2.5 and earlier
...
* Restored signature of WC_Settings_API::process_admin_options() method.
2016-04-20 08:48:29 +01:00
Mike Jolley
d3ac3f4073
Modals first pass
2016-03-24 17:26:40 +00:00
Shiva Poudel
295a900b03
Is an action hook for phpmailer_init
2016-02-25 16:59:15 +05:45
Justin Shreve
c2d29e4884
Add a back button on the email notification management screens so you can easily get back to the main listing of emails.
2016-02-18 08:46:06 -08:00
Justin Shreve
608f651133
Fix hierarchy on settings screens.
2016-02-18 08:39:02 -08:00
Mehul
9302f3ac6d
template_html & template_plain variables duplicate code in both if and else conditions when there is no change in template files for partial refund or full refund
2016-02-10 15:32:34 +05:30
Mike Jolley
971f6a3dee
Added email for on-hold orders.
...
Closes #9792
2016-02-08 13:20:19 +00:00
Mike Jolley
aa12bed150
Translate during format_string rather than all options
...
Fixes #10243
2016-02-05 12:44:43 +00:00
Mike Jolley
5bae221b33
Merge pull request #9973 from frozzare/docs/class-wc-email-new-order
...
Improve docblock comments in WC_Email_New_Order class
2016-01-06 12:25:44 +00:00
Mike Jolley
0b82d67d4c
Merge pull request #9974 from frozzare/docs/class-wc-email-failed-order
...
Improve docblock comments in WC_Email_Failed_Order class
2016-01-06 12:25:38 +00:00
Mike Jolley
dc67ec8b07
Merge pull request #9975 from frozzare/docs/class-wc-email-customer-reset-password
...
Improve docblock comments in WC_Email_Customer_Reset_Password class
2016-01-06 12:25:33 +00:00
Mike Jolley
a583b5aa27
Merge pull request #9976 from frozzare/docs/class-wc-email-customer-refunded-order
...
Improve docblock comments in WC_Email_Customer_Refunded_Order class
2016-01-06 12:25:23 +00:00
Mike Jolley
81cfc5030f
Merge pull request #9977 from frozzare/docs/class-wc-email-customer-processing-order
...
Improve docblock comments in WC_Email_Customer_Processing_Order class
2016-01-06 12:25:13 +00:00
Mike Jolley
867c807fc3
Merge pull request #9978 from frozzare/docs/class-wc-email-customer-invoice
...
Improve docblock comments in WC_Email_Customer_Invoice class
2016-01-06 12:25:07 +00:00
Mike Jolley
031700b649
Merge pull request #9979 from frozzare/docs/class-wc-email-cancelled-order
...
Improve docblock comments in WC_Email_Cancelled_Order class
2016-01-06 12:24:59 +00:00
Mike Jolley
0beb86c790
Merge pull request #9980 from frozzare/docs/class-wc-email-customer-completed-order
...
Improve docblock comments in WC_Email_Customer_Completed_Order class
2016-01-06 12:24:52 +00:00
Mike Jolley
42c2b1d7e9
Merge pull request #9981 from frozzare/docs/class-wc-email-customer-new-account
...
Improve docblock comments in WC_Email_Customer_New_Account
2016-01-06 12:24:41 +00:00
Mike Jolley
a23dd4ab0a
Merge pull request #9972 from frozzare/docs/class-wc-email
...
Improve docblock comments in WC_Email class
2016-01-06 12:24:27 +00:00
Fredrik Forsmo
e06d8a2a2f
Improve docblock comments in WC_Email class
...
* Added comments to `handle_multipart`, `format_string`, `get_subject`,
`get_heading`, `get_headers`, `get_attachments`, `get_content_type`,
`get_blogname` and `get_content`
2016-01-05 19:42:18 +01:00
Fredrik Forsmo
12c4e48256
Improve docblock comments in WC_Email_New_Order class
...
* Added comments to `get_content_plain` and `get_content_html`
* Added missing param tag to `trigger`
2016-01-05 19:38:19 +01:00
Fredrik Forsmo
6a73721611
Improve docblock comments in WC_Email_Failed_Order class
...
* Added comments to `get_content_html`
* Added missing param tag to `trigger`
2016-01-05 19:37:34 +01:00
Fredrik Forsmo
c60f327e5f
Improve docblock comments in WC_Email_Customer_Reset_Password class
...
* Added better comments to properties.
* Added comments to `get_content_plain` and `get_content_html`
* Added missing param tag to `trigger`
2016-01-05 19:36:44 +01:00
Fredrik Forsmo
5d22c324fa
Improve docblock comments in WC_Email_Customer_Refunded_Order class
...
* Added comments to `set_email_strings`, `trigger_full`,
`trigger_partial`, `get_subject`, `get_heading` and `get_content_html`
* Added missing param tag to `trigger`
2016-01-05 19:33:49 +01:00
Fredrik Forsmo
e4ec2171e2
Improve docblock comments in WC_Email_Customer_Processing_Order class
...
* Added comments to `get_content_plain` and `get_content_html`
* Added missing param tag to `trigger`
2016-01-05 19:29:45 +01:00
Fredrik Forsmo
19b049b28b
Improve docblock comments in WC_Email_Customer_Note class
...
* Added comments to properties that don’t have any.
* Added comments to `get_content_plain` and `get_content_html`
* Added missing param tag to `trigger`
2016-01-05 19:28:45 +01:00
Fredrik Forsmo
9f1376185f
Improve docblock comments in WC_Email_Customer_New_Account
...
* Added comments to properties that don’t have any.
* Added comments to `get_content_plain` and `get_content_html`
* Added missing param tags to `trigger`
2016-01-05 19:27:27 +01:00
Fredrik Forsmo
726fcbb932
Improve docblock comments in WC_Email_Customer_Invoice class
...
* Added comments to properties that don’t have any.
* Added comments to `get_subject`, `get_heading`, `get_content_html`
and `get_content_plain`
* Added missing param tag to `trigger`
2016-01-05 19:23:17 +01:00
Fredrik Forsmo
2ba75c59a1
Improve docblock comments in WC_Email_Cancelled_Order class
...
* Added comments `get_content_html`
* Added missing param tag to `trigger`
2016-01-05 19:16:21 +01:00
Fredrik Forsmo
db773414a8
Improve docblock comments in WC_Email_Customer_Completed_Order class
...
* Added comments to `get_subject`, `get_heading` and `get_content_html`
* Added missing param tag to `trigger`
2016-01-05 19:14:06 +01:00
Mike Jolley
6cb11d5cc0
Use wc_get_template_html
2015-12-04 13:39:57 +00:00
Mike Jolley
b5a2c2a9d5
Unify all order email tables to use a single template
...
Closes #9587
@claudiosmweb @jameskoster
2015-11-30 15:16:23 +00:00
Yoni Mazuz
9e5098627c
Fix woocommerce_email_from_* filtering
...
- apply filters before sanitizing
- send entire $this as argument so hooked functions can access any properties of the WC_Email (subclass) instance
2015-11-20 13:00:37 -05:00
Yoni Mazuz
afb19228a9
Add filters for From name/address to WC_Email ( #9653 )
...
- add woocommerce_email_from_name filter that accepts name, email ID,
and object
- add woocommerce_email_from_name filter that accepts name, email ID,
and object
- these allow return address info to be set conditionally, unlike
wp_mail_from and wp_mail_from_name, which don’t pass any context to
hooked functions
2015-11-19 14:37:50 -05:00
Mike Jolley
1b38f380af
Merge remote-tracking branch 'origin/master'
...
Conflicts:
includes/emails/class-wc-email.php
2015-11-03 16:09:01 +00:00
Mike Jolley
8457dbb57d
Display if emails are manually sent
2015-11-03 15:40:10 +00:00
Mike Jolley
d95f863d79
Show descriptions inline
2015-11-03 15:04:29 +00:00
Mike Jolley
52553968c5
Use desc_tip for emails
2015-11-03 14:59:48 +00:00
Mike Jolley
3c6a870335
Email class tidyup
2015-11-03 14:57:39 +00:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Mike Jolley
5f65494e27
Restructure emails admin to avoid listing emails along the top
...
Moves emails to a table on the settings screen.
Also tweaks some section text and moves descriptions to tooltips for a
less cluttered interface.
2015-11-02 16:27:00 +00:00
Mike Jolley
48b93b937f
Added admin order/payment failed notification
...
Closes #8617
2015-11-02 14:45:24 +00:00
Mike Jolley
9ac43ec4d4
Cleanup
2015-11-02 13:02:23 +00:00
Kathy Darling
f893d73af6
pass email object to email templates and template hooks
2015-10-31 23:04:59 -05:00
stuartobrien
237acd7e90
consistent code formatting
2015-08-15 01:28:48 +02:00
stuartobrien
3ce5374cd9
fixed - missing attribute $password_generated used in the object but not declared
2015-08-15 01:16:02 +02:00
stuartobrien
6a8742d4d6
change type to boolean
2015-08-15 01:03:18 +02:00
stuartobrien
5a616d86c3
fixed - missing attributes refund and partial_refund are used in the object but are not declared
2015-08-15 00:57:12 +02:00
Mike Jolley
f8b539eb5e
Improved refund email events and woocommerce_order_fully_refunded hook.
...
Closes #8793
2015-08-12 19:01:05 +01:00
Mike Jolley
817f8476ac
Refund subjects when order contains downloadable product.
2015-08-12 17:50:57 +01:00
Claudio Sanches
b091f12393
Fixed some js conding standards
2015-08-05 15:57:15 -03:00
Claudio Sanches
9e41552342
Removed all "@return void"
2015-07-16 16:55:48 -03:00
Mike Jolley
7d1a016502
Adjust sales report to deal with partial shipping refunds and full refunds
2015-07-01 12:11:21 +01:00
Mike Jolley
d0a41989c9
Merge pull request #8451 from slash1andy/patch-1
...
Changed "pending" to "processing"
2015-06-28 16:48:03 +02:00
Vignesh
1241dcee69
Removed Commented Code
2015-06-25 21:24:05 +05:30
Andrew Wikel
6b5cf56b66
Changed "pending" to "processing"
...
reflects more accurate order statuses.
2015-06-24 15:57:28 -05:00
Mike Jolley
8dbd30e76b
Merge branch 'add-email-notification-for-partial-refunds-issue-8278'
2015-06-22 15:01:17 +01:00
davidlenehan
d7538559a8
Pulling customs refund email fields from wp_options
...
Pulling customs refund email fields from wp_options correctly now and
overriding the basic lookup for subject and heading.
2015-06-22 14:18:44 +01:00
davidlenehan
a171407bcb
Adding form fields for partial refund emails
...
This is not a working solution yet, looking for feedback on ho west to
implement this
2015-06-22 13:36:47 +01:00
davidlenehan
47c18b1947
Fixing issue where email settings were blank
...
Fixing issue where email strings were blank for refunded orders in
wp-admin > WooCommerce > Settings > emails
2015-06-22 11:14:19 +01:00
Mike Jolley
e967c1e01c
Tweak filters - move to format_string
2015-06-22 10:14:21 +01:00
Nicola Mustone
c7e1540dea
added filters for emails placeholders
2015-06-19 17:01:37 +02:00
davidlenehan
4c2982affe
Removing an unused file
...
Deleting a file no longer needed for this.
2015-06-18 12:00:14 +01:00
davidlenehan
718d550252
Merging refund email template files
...
Changing previous commit to merge templates for partial and full
refunds to cut down on files.
2015-06-18 11:34:21 +01:00
davidlenehan
8b02b02145
Add email notification for partial refunds
...
fixes #8278
Emails are now sent to the customer when a partial refund is issued. I
referenced #7785 when doing this.
When a full refund happens the email the customer receives is clear
enough that they are getting a full refund. However I thought it would
be useful to add a new line in these new partial refund emails that
states exactly the value of the partial refund as it may not be that
clear.
2015-06-17 15:35:54 +01:00
Claudio Sanches
51c8bbf87c
wrong nonce verification
2015-06-01 13:33:51 +01:00
Ben Bidner
27f1c15900
email templates can only be moved / deleted / edited if the user has `edit_themes` capabilities
2015-06-01 13:26:02 +01:00
Claudio Sanches
65608d3fd0
Added nonces and check capability to copy or delete email templates, closes #5
2015-06-01 13:12:25 +01:00
Mike Jolley
bd7624e5b7
Check template code isset
2015-05-29 17:40:53 +01:00
Claudio Sanches
a76aa5218b
Improved the new order and cancelled order emails descriptions, closes #8195
2015-05-27 16:57:57 -03:00
Claudio Sanches
5c2b14d89f
Standardise case of some strings closes #8125
2015-05-27 12:53:04 -03:00
Mike Jolley
7254e45edc
Remove notice fade class Closes #8096
2015-05-05 13:28:08 +01:00
investonline_joost
eed9332adf
Bugfix: The old regex rule selects more then the unknown/unhandled entities. Plain-text email are missing content because the text is stripped out.
2015-04-23 15:55:29 +02:00
Mike Jolley
c6dae2b286
Merge pull request #7834 from SiR-DanieL/scrutinizer-issues
...
Small tweaks and style fixes
2015-03-30 10:33:27 +01:00
Nicola Mustone
dedd92d4e6
wrong comments
2015-03-27 17:11:25 +01:00
Nicola Mustone
1275346360
typo
2015-03-27 17:10:00 +01:00
Nicola Mustone
4867d635c0
fix save_template code
2015-03-27 16:59:25 +01:00
Nicola Mustone
0466fcb4e2
split process_admin_options for WC_Email
2015-03-27 16:51:30 +01:00
Nicola Mustone
d2af01df5b
scrutinizer suggested tweaks
2015-03-27 16:15:40 +01:00
Nicola Mustone
00d8b11a3f
version 2.4.0
2015-03-20 17:55:50 +01:00
Nicola Mustone
f82f3572c4
again coding standards
2015-03-20 16:37:57 +01:00
Nicola Mustone
38afee0d12
conding standards
2015-03-20 16:37:16 +01:00
Nicola Mustone
c593e4ca50
added customer order refunded email
2015-03-20 16:31:31 +01:00
Max Rice
7a4360eaf5
Catch Emogrifier Exceptions
...
Emogrifier throws various exceptions for invalid input, etc. that
currently are not caught anywhere, causing fatal errors or unexpected
behaviors in other plugins. This commit fixes that by catching all
exceptions and logging them.
2015-03-08 19:45:05 -04:00
Claudio Sanches
1a45a447b0
Fixed the true-null-false case
2015-02-18 15:34:03 -02:00
Claudio Sanches
28bf06b702
Improved the woocommerce_email_get_option filter, closes #7464
2015-02-18 00:28:26 -02:00
Mike Jolley
35a3de03d5
Move WC_Email docblock and add class exists check
...
Closes #7399
2015-02-13 16:54:15 +00:00
Claudio Sanches
94e1a4bf6a
Just check for DOMDocument
2015-02-13 12:54:10 -02:00
Claudio Sanches
e778d26764
Created a method to test if have an inline css parser
2015-02-13 12:22:53 -02:00
Claudio Sanches
5d80f3e5cd
Use plain text emails when dont have support for DOMDocument class
2015-02-13 12:16:58 -02:00
Claudio Sanches
6ca681ce86
Added new filters to help translation plugins, closes #7338
2015-02-10 10:51:44 -02:00
Michael Tieso
933fe5ff57
Customer New Account message clarification
...
Suggestion for clarification that this goes to the customer, not admin.
2015-02-02 15:41:12 -08:00
Claudio Sanches
afb19715d4
Prevented XSS in urls
2015-01-29 12:33:06 -02:00
Mike Jolley
c2c1e733ba
Typo #7216
2015-01-28 21:03:09 +00:00
Mike Jolley
f3cc45cfa9
Grammar corrections
...
Closes #7216
2015-01-28 17:15:48 +00:00
MindyPostoff
72118fb28e
Update class-wc-email-customer-completed-order.php
2015-01-13 13:44:35 -05:00
Claudio Sanches
9a6dc0bf41
Added select2 for all settings fields
2015-01-12 15:45:47 -02:00
Claudio Sanches
37ea5ee65a
Fixed email styles for multipart emails, closes #7033
2015-01-02 10:55:47 -02:00
Bryce
96ba418d5c
remove var keyword in WC_Email_Customer_Reset_Password
2014-12-16 18:40:51 +07:00
Bryce
6af72ecb3d
remove var keyword in some email classes
2014-12-16 18:40:21 +07:00