Kadence WooCommerce Email Designer - Version 1.3.12

Version Description

  • Fix: Classes to order totals table so it's possible to style specifically.
  • Fix: Additional Information in customer retry payment email.
Download this release

Release Info

Developer britner
Plugin Icon 128x128 Kadence WooCommerce Email Designer
Version 1.3.12
Comparing to
See all releases

Code changes from version 1.3.11 to 1.3.12

includes/class-kadence-woomail-settings.php CHANGED
@@ -697,7 +697,7 @@ if ( ! class_exists( 'Kadence_Woomail_Settings' ) ) {
697
  'section' => 'mtype',
698
  'control_type' => 'kwdinfoblock',
699
  'priority' => 50,
700
- 'description' => '<code>{site_title}, {order_date}, {order_number}, {customer_first_name}, {customer_last_name}, {customer_full_name}, {customer_username}</code>',
701
  ),
702
  );
703
  $extra_email_text = array();
697
  'section' => 'mtype',
698
  'control_type' => 'kwdinfoblock',
699
  'priority' => 50,
700
+ 'description' => '<code>{site_title}, {order_date}, {order_number}, {customer_first_name}, {customer_last_name}, {customer_full_name}, {customer_username}, {customer_email}</code>',
701
  ),
702
  );
703
  $extra_email_text = array();
kadence-woocommerce-email-designer.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Kadence WooCommerce Email Designer
4
  * Plugin URI: http://kadencewp.com/products/woocommerce-email-designer/
5
  * Description: Customize the default woocommerce email templates design and text through the native WordPress customizer. Preview emails and send test emails.
6
- * Version: 1.3.11
7
  * Author: Kadence WP
8
  * Author URI: http://kadencewp.com/
9
  * License: GPLv2 or later
10
  * Text Domain: kadence-woocommerce-email-designer
11
  * WC requires at least: 3.6.0
12
- * WC tested up to: 3.8.1
13
  *
14
  * @package Kadence Woocommerce Email Designer
15
  */
@@ -59,7 +59,7 @@ class Kadence_Woomail_Designer {
59
 
60
  define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
61
  define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) );
62
- define( 'KT_WOOMAIL_VERSION', '1.3.11' );
63
 
64
  if ( ! kadence_woomail_is_woo_active() ) {
65
  add_action( 'admin_notices', array( $this, 'admin_notice_need_woocommerce' ) );
@@ -153,6 +153,7 @@ class Kadence_Woomail_Designer {
153
  if ( true != $responsive_check ) {
154
  $content = '<style type="text/css">.gm-remove-late{ display:none;}</style>' . $content;
155
  }
 
156
  return $content;
157
  }
158
  /**
3
  * Plugin Name: Kadence WooCommerce Email Designer
4
  * Plugin URI: http://kadencewp.com/products/woocommerce-email-designer/
5
  * Description: Customize the default woocommerce email templates design and text through the native WordPress customizer. Preview emails and send test emails.
6
+ * Version: 1.3.12
7
  * Author: Kadence WP
8
  * Author URI: http://kadencewp.com/
9
  * License: GPLv2 or later
10
  * Text Domain: kadence-woocommerce-email-designer
11
  * WC requires at least: 3.6.0
12
+ * WC tested up to: 3.9.1
13
  *
14
  * @package Kadence Woocommerce Email Designer
15
  */
59
 
60
  define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
61
  define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) );
62
+ define( 'KT_WOOMAIL_VERSION', '1.3.12' );
63
 
64
  if ( ! kadence_woomail_is_woo_active() ) {
65
  add_action( 'admin_notices', array( $this, 'admin_notice_need_woocommerce' ) );
153
  if ( true != $responsive_check ) {
154
  $content = '<style type="text/css">.gm-remove-late{ display:none;}</style>' . $content;
155
  }
156
+ remove_filter( 'woocommerce_mail_content', array( $this, 'add_gmail_hack' ), 50 );
157
  return $content;
158
  }
159
  /**
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.kadencewp.com/about-us/
5
  Requires PHP: 5.2.4
6
  Requires at least: 4.4
7
  Tested up to: 5.3.2
8
- Stable tag: 1.3.11
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -60,6 +60,9 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
60
 
61
  == Changelog ==
62
 
 
 
 
63
 
64
  = 1.3.11 =
65
  * Update: Add Classes to order totals table so it's possible to style specifically.
5
  Requires PHP: 5.2.4
6
  Requires at least: 4.4
7
  Tested up to: 5.3.2
8
+ Stable tag: 1.3.12
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.3.12 =
64
+ * Fix: Classes to order totals table so it's possible to style specifically.
65
+ * Fix: Additional Information in customer retry payment email.
66
 
67
  = 1.3.11 =
68
  * Update: Add Classes to order totals table so it's possible to style specifically.
templates/woo/emails/cancelled-subscription.php CHANGED
@@ -29,7 +29,7 @@ do_action( 'kadence_woomail_designer_email_details', $subscription, $sent_to_adm
29
 
30
  if ( true == $responsive_check ) {
31
  ?>
32
- <div style="margin-bottom: 40px;">
33
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
34
  <tbody>
35
  <tr>
@@ -67,7 +67,7 @@ if ( true == $responsive_check ) {
67
  <?php
68
  } else {
69
  ?>
70
- <div style="margin-bottom: 40px;">
71
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
72
  <thead>
73
  <tr>
29
 
30
  if ( true == $responsive_check ) {
31
  ?>
32
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
33
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
34
  <tbody>
35
  <tr>
67
  <?php
68
  } else {
69
  ?>
70
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
71
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
72
  <thead>
73
  <tr>
templates/woo/emails/customer-payment-retry.php CHANGED
@@ -58,4 +58,11 @@ if ( true == $override_content ) {
58
 
59
  do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email );
60
 
 
 
 
 
 
 
 
61
  do_action( 'woocommerce_email_footer', $email );
58
 
59
  do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email );
60
 
61
+ /**
62
+ * Show user-defined additonal content - this is set in each email's settings.
63
+ */
64
+ if ( isset( $additional_content ) && ! empty( $additional_content ) ) {
65
+ echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
66
+ }
67
+
68
  do_action( 'woocommerce_email_footer', $email );
templates/woo/emails/email-customer-details.php CHANGED
@@ -30,7 +30,7 @@ if ( ! defined( 'ABSPATH' ) ) {
30
 
31
  ?>
32
  <?php if ( ! empty( $fields ) ) : ?>
33
- <div style="margin-bottom: 40px;">
34
  <h2><?php _e( 'Customer details', 'kadence-woocommerce-email-designer' ); ?></h2>
35
  <ul>
36
  <?php foreach ( $fields as $field ) : ?>
30
 
31
  ?>
32
  <?php if ( ! empty( $fields ) ) : ?>
33
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
34
  <h2><?php _e( 'Customer details', 'kadence-woocommerce-email-designer' ); ?></h2>
35
  <ul>
36
  <?php foreach ( $fields as $field ) : ?>
templates/woo/emails/email-downloads.php CHANGED
@@ -38,7 +38,7 @@ if ( true == $responsive_check ) {
38
  <div style="clear:both; height:1px;"></div>
39
  <h2 class="woocommerce-order-downloads__title"><?php esc_html_e( 'Downloads', 'kadence-woocommerce-email-designer' ); ?></h2>
40
 
41
- <table class="td" cellspacing="0" cellpadding="6" style="width: 100%; margin-bottom: 40px;" border="1">
42
  <thead>
43
  <tr>
44
  <?php foreach ( $columns as $column_id => $column_name ) : ?>
38
  <div style="clear:both; height:1px;"></div>
39
  <h2 class="woocommerce-order-downloads__title"><?php esc_html_e( 'Downloads', 'kadence-woocommerce-email-designer' ); ?></h2>
40
 
41
+ <table class="email-spacing-wrap td" cellspacing="0" cellpadding="6" style="width: 100%; margin-bottom: 40px;" border="1">
42
  <thead>
43
  <tr>
44
  <?php foreach ( $columns as $column_id => $column_name ) : ?>
templates/woo/emails/email-order-details.php CHANGED
@@ -42,7 +42,7 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
42
  }
43
  if ( true == $responsive_check ) {
44
  ?>
45
- <div style="margin-bottom: 40px;">
46
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
47
  <thead>
48
  <tr>
@@ -67,8 +67,8 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
67
  $i++;
68
  ?>
69
  <tr>
70
- <th class="td tlabel-<?php echo esc_attr( $total['label'] ); ?>" scope="row" colspan="1" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['label'] ); ?></th>
71
- <td class="td tvalue-<?php echo esc_attr( $total['label'] ); ?>" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['value'] ); ?></td>
72
  </tr>
73
  <?php
74
  }
@@ -89,7 +89,7 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
89
  <?php
90
  } else {
91
  ?>
92
- <div style="margin-bottom: 40px;">
93
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
94
  <thead>
95
  <tr>
@@ -115,8 +115,8 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
115
  $i++;
116
  ?>
117
  <tr>
118
- <th class="td tlabel-<?php echo esc_attr( $total['label'] ); ?>" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['label'] ); ?></th>
119
- <td class="td tvalue-<?php echo esc_attr( $total['label'] ); ?>" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['value'] ); ?></td>
120
  </tr>
121
  <?php
122
  }
@@ -201,7 +201,7 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
201
  <?php
202
  if ( true == $responsive_check ) {
203
  ?>
204
- <div style="margin-bottom: 40px;">
205
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
206
  <thead>
207
  <tr>
@@ -235,8 +235,8 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
235
  $i++;
236
  ?>
237
  <tr>
238
- <th class="td tlabel-<?php echo esc_attr( $total['label'] ); ?>" scope="row" colspan="1" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['label'] ); ?></th>
239
- <td class="td tvalue-<?php echo esc_attr( $total['label'] ); ?>" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['value'] ); ?></td>
240
  </tr>
241
  <?php
242
  }
@@ -256,7 +256,7 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
256
  <?php
257
  if ( $order->get_customer_note() ) {
258
  ?>
259
- <div style="margin-bottom: 40px;">
260
  <h2>
261
  <?php echo esc_html__( 'Order Note', 'kadence-woocommerce-email-designer' ); ?>
262
  </h2>
@@ -266,7 +266,7 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
266
  }
267
  ?>
268
  <?php } else { ?>
269
- <div style="margin-bottom: 40px;">
270
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
271
  <thead>
272
  <tr>
@@ -301,8 +301,8 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
301
  $i++;
302
  ?>
303
  <tr>
304
- <th class="td tlabel-<?php echo esc_attr( $total['label'] ); ?>" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['label'] ); ?></th>
305
- <td class="td tvalue-<?php echo esc_attr( $total['label'] ); ?>" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['value'] ); ?></td>
306
  </tr>
307
  <?php
308
  }
@@ -330,7 +330,7 @@ if ( isset( $order_type ) && 'subscription' === $order_type && class_exists( 'WC
330
  <?php
331
  if ( true == $note_check && $order->get_customer_note() ) {
332
  ?>
333
- <div style="margin-bottom: 40px;">
334
  <h2>
335
  <?php echo esc_html__( 'Order Note', 'kadence-woocommerce-email-designer' ); ?>
336
  </h2>
42
  }
43
  if ( true == $responsive_check ) {
44
  ?>
45
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
46
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
47
  <thead>
48
  <tr>
67
  $i++;
68
  ?>
69
  <tr>
70
+ <th class="td tlabel-<?php echo esc_attr( preg_replace( '/[^a-z]/', '', strtolower( $total['label'] ) ) ); ?>" scope="row" colspan="1" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['label'] ); ?></th>
71
+ <td class="td tvalue-<?php echo esc_attr( preg_replace( '/[^a-z]/', '', strtolower( $total['label'] ) ) ); ?>" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['value'] ); ?></td>
72
  </tr>
73
  <?php
74
  }
89
  <?php
90
  } else {
91
  ?>
92
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
93
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
94
  <thead>
95
  <tr>
115
  $i++;
116
  ?>
117
  <tr>
118
+ <th class="td tlabel-<?php echo esc_attr( preg_replace( '/[^a-z]/', '', strtolower( $total['label'] ) ) ); ?>" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['label'] ); ?></th>
119
+ <td class="td tvalue-<?php echo esc_attr( preg_replace( '/[^a-z]/', '', strtolower( $total['label'] ) ) ); ?>" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['value'] ); ?></td>
120
  </tr>
121
  <?php
122
  }
201
  <?php
202
  if ( true == $responsive_check ) {
203
  ?>
204
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
205
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
206
  <thead>
207
  <tr>
235
  $i++;
236
  ?>
237
  <tr>
238
+ <th class="td tlabel-<?php echo esc_attr( preg_replace( '/[^a-z]/', '', strtolower( $total['label'] ) ) ); ?>" scope="row" colspan="1" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['label'] ); ?></th>
239
+ <td class="td tvalue-<?php echo esc_attr( preg_replace( '/[^a-z]/', '', strtolower( $total['label'] ) ) ); ?>" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['value'] ); ?></td>
240
  </tr>
241
  <?php
242
  }
256
  <?php
257
  if ( $order->get_customer_note() ) {
258
  ?>
259
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
260
  <h2>
261
  <?php echo esc_html__( 'Order Note', 'kadence-woocommerce-email-designer' ); ?>
262
  </h2>
266
  }
267
  ?>
268
  <?php } else { ?>
269
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
270
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
271
  <thead>
272
  <tr>
301
  $i++;
302
  ?>
303
  <tr>
304
+ <th class="td tlabel-<?php echo esc_attr( preg_replace( '/[^a-z]/', '', strtolower( $total['label'] ) ) ); ?>" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['label'] ); ?></th>
305
+ <td class="td tvalue-<?php echo esc_attr( preg_replace( '/[^a-z]/', '', strtolower( $total['label'] ) ) ); ?>" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( $total['value'] ); ?></td>
306
  </tr>
307
  <?php
308
  }
330
  <?php
331
  if ( true == $note_check && $order->get_customer_note() ) {
332
  ?>
333
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
334
  <h2>
335
  <?php echo esc_html__( 'Order Note', 'kadence-woocommerce-email-designer' ); ?>
336
  </h2>
templates/woo/emails/subscription-info.php CHANGED
@@ -54,7 +54,7 @@ if ( ! empty( $subscriptions ) ) :
54
  <?php } else { ?>
55
  <div style="clear:both; height:1px;"></div>
56
  <h2><?php esc_html_e( 'Subscription Information:', 'kadence-woocommerce-email-designer' ); ?></h2>
57
- <div style="margin-bottom: 40px;">
58
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
59
  <thead>
60
  <tr>
54
  <?php } else { ?>
55
  <div style="clear:both; height:1px;"></div>
56
  <h2><?php esc_html_e( 'Subscription Information:', 'kadence-woocommerce-email-designer' ); ?></h2>
57
+ <div class="email-spacing-wrap" style="margin-bottom: 40px;">
58
  <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;" border="1">
59
  <thead>
60
  <tr>