Skip to content

Commit

Permalink
Remove emojis from email subject and add site title. (#724)
Browse files Browse the repository at this point in the history
* Remove emojis from email subject and add site title.

* add changelog entry
  • Loading branch information
mattallan authored Nov 13, 2024
1 parent 6783f11 commit 0cdd81e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

= 7.7.1 - 2024-xx-xx =
* Fix - Only show the individual subscription information in customer notification emails, not all subscriptions purchased in the initial order.
* Fix - Resolved issues with Customer Notification emails not being sent due to unsupported emoji used in the default email subject.

= 7.7.0 - 2024-11-13 =
* Add - New Customer Notification feature: sends reminder emails for upcoming subscription renewals, trials ending, and subscription expirations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ public function __construct() {
$this->heading = __( 'Automatic renewal notice', 'woocommerce-subscriptions' );

$this->subject = sprintf(
// translators: %1$s: number of days until renewal, %2$s: customer's first name.
_x( 'Your subscription automatically renews in %1$s, %2$s ♻️', 'default email subject for subscription\'s automatic renewal notice', 'woocommerce-subscriptions' ),
// translators: $1: {site_title}, $2: {customers_first_name}, $3: {time_until_renewal}, variables that will be substituted when email is sent out
_x( '[%1$s] %2$s, your subscription automatically renews in %3$s!', 'default email subject for subscription\'s automatic renewal notice', 'woocommerce-subscriptions' ),
'{site_title}',
'{customers_first_name}',
'{time_until_renewal}',
'{customers_first_name}'
);

$this->template_html = 'emails/customer-notification-auto-renewal.php';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function __construct() {
$this->description = __( 'Free trial expiry notification emails are sent when customer\'s free trial for an automatically renewd subscription is about to expire.', 'woocommerce-subscriptions' );

$this->heading = __( 'Free trial expiration: automatic payment notice', 'woocommerce-subscriptions' );
// translators: placeholder is {customers_first_name}, a variable that will be substituted when email is sent out
$this->subject = sprintf( _x( 'Your paid subscription starts soon, %s 🗓️', 'default email subject for free trial expiry notification emails sent to the customer', 'woocommerce-subscriptions' ), '{customers_first_name}' );
// translators: $1: {site_title}, $2: {customers_first_name}, variables that will be substituted when email is sent out
$this->subject = sprintf( _x( '[%1$s] %2$s, your paid subscription starts soon!', 'default email subject for free trial expiry notification emails sent to the customer', 'woocommerce-subscriptions' ), '{site_title}', '{customers_first_name}' );

$this->template_html = 'emails/customer-notification-auto-trial-ending.php';
$this->template_plain = 'emails/plain/customer-notification-auto-trial-ending.php';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function __construct() {
$this->description = __( 'Customer Notification: Manual renewal notice are sent when customer\'s subscription needs to be manually renewed.', 'woocommerce-subscriptions' );

$this->heading = __( 'Manual renewal notice', 'woocommerce-subscriptions' );
// translators: placeholder is {customers_first_name}, a variable that will be substituted when email is sent out
$this->subject = sprintf( _x( '%s, your subscription is ready to be renewed 👍', 'default email subject for notification for a manually renewed subscription sent to the customer', 'woocommerce-subscriptions' ), '{customers_first_name}' );
// translators: $1: {site_title}, $2: {customers_first_name}, variables that will be substituted when email is sent out
$this->subject = sprintf( _x( '[%1$s] %2$s, your subscription is ready to be renewed!', 'default email subject for notification for a manually renewed subscription sent to the customer', 'woocommerce-subscriptions' ), '{site_title}', '{customers_first_name}' );

$this->template_html = 'emails/customer-notification-manual-renewal.php';
$this->template_plain = 'emails/plain/customer-notification-manual-renewal.php';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public function __construct() {
$this->description = __( 'Free trial expiry notification emails are sent when customer\'s free trial for a manually renewed subscription is about to expire.', 'woocommerce-subscriptions' );

$this->heading = __( 'Free trial expiration: manual payment required', 'woocommerce-subscriptions' );
// translators: placeholder is {customers_first_name}, a variable that will be substituted when email is sent out
$this->subject = sprintf( _x( 'Your free trial is almost up, %s ⏳', 'default email subject for an email notification for a manually renewed subscription with free trial expiry emails sent to the customer', 'woocommerce-subscriptions' ), '{customers_first_name}' );
// translators: $1: {site_title}, $2: {customers_first_name}, variables that will be substituted when email is sent out.
$this->subject = sprintf( _x( '[%1$s] %2$s, your free trial is almost up!', 'default email subject for an email notification for a manually renewed subscription with free trial expiry emails sent to the customer', 'woocommerce-subscriptions' ), '{site_title}', '{customers_first_name}' );

$this->template_html = 'emails/customer-notification-manual-trial-ending.php';
$this->template_plain = 'emails/plain/customer-notification-manual-trial-ending.php';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function __construct() {
$this->description = __( 'Subscription expiration notification emails are sent when customer\'s subscription is about to expire.', 'woocommerce-subscriptions' );

$this->heading = __( 'Subscription expiration notice', 'woocommerce-subscriptions' );
// translators: placeholder is {customers_first_name}, a variable that will be substituted when email is sent out
$this->subject = sprintf( _x( 'Your subscription is about to expire, %s ⏱️', 'default email subject for subscription expiry notification email sent to the customer', 'woocommerce-subscriptions' ), '{customers_first_name}' );
// translators: $1: {site_title}, $2: {customers_first_name}, variables that will be substituted when email is sent out
$this->subject = sprintf( _x( '[%1$s] %2$s, your subscription is about to expire!', 'default email subject for subscription expiry notification email sent to the customer', 'woocommerce-subscriptions' ), '{site_title}', '{customers_first_name}' );

$this->template_html = 'emails/customer-notification-expiring-subscription.php';
$this->template_plain = 'emails/plain/customer-notification-expiring-subscription.php';
Expand Down

0 comments on commit 0cdd81e

Please sign in to comment.