Version Description
- Fix: Padding issue with order details.
- Fix: Subscription Cancelled email preview.
Download this release
Release Info
Developer | britner |
Plugin | Kadence WooCommerce Email Designer |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
includes/class-kadence-woomail-customizer.php
CHANGED
@@ -956,7 +956,7 @@ class Kadence_Woomail_Customizer {
|
|
956 |
return '.order-items-light table.td .td {
|
957 |
border: 0;
|
958 |
}
|
959 |
-
.order-items-light
|
960 |
border: 0;
|
961 |
}
|
962 |
.order-items-light tr th.td {
|
@@ -965,11 +965,11 @@ class Kadence_Woomail_Customizer {
|
|
965 |
.order-items-light tr .td {
|
966 |
text-align:center !important;
|
967 |
}
|
968 |
-
.order-items-light tr .td:first-child {
|
969 |
padding-left: 0 !important;
|
970 |
text-align:left !important;
|
971 |
}
|
972 |
-
.order-items-light tr .td:last-child {
|
973 |
padding-right: 0 !important;
|
974 |
text-align:right !important;
|
975 |
}
|
956 |
return '.order-items-light table.td .td {
|
957 |
border: 0;
|
958 |
}
|
959 |
+
.order-items-light table.td {
|
960 |
border: 0;
|
961 |
}
|
962 |
.order-items-light tr th.td {
|
965 |
.order-items-light tr .td {
|
966 |
text-align:center !important;
|
967 |
}
|
968 |
+
.order-items-light tr .td:first-child, .order-items-light .order-info-split-table td:first-child {
|
969 |
padding-left: 0 !important;
|
970 |
text-align:left !important;
|
971 |
}
|
972 |
+
.order-items-light tr .td:last-child, .order-items-light .order-info-split-table td:last-child{
|
973 |
padding-right: 0 !important;
|
974 |
text-align:right !important;
|
975 |
}
|
includes/class-kadence-woomail-preview.php
CHANGED
@@ -294,7 +294,26 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
|
|
294 |
$email->recipient = $email->object->get_billing_email();
|
295 |
break;
|
296 |
case 'cancelled_subscription':
|
297 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
break;
|
299 |
/**
|
300 |
* WooCommerce Wait-list Plugin (from WooCommerce).
|
@@ -330,8 +349,10 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
|
|
330 |
} else {
|
331 |
if ( false == $email->object ) {
|
332 |
$content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'This email type can not be previewed please try a differnet order or email type.', 'kadence-woocommerce-email-designer' ) . '</div>';
|
|
|
|
|
333 |
} else {
|
334 |
-
// Get email content and apply styles
|
335 |
$content = $email->get_content();
|
336 |
$content = $email->style_inline( $content );
|
337 |
$content = apply_filters( 'woocommerce_mail_content', $content );
|
294 |
$email->recipient = $email->object->get_billing_email();
|
295 |
break;
|
296 |
case 'cancelled_subscription':
|
297 |
+
$subscription = false;
|
298 |
+
if ( ! empty( $preview_id ) && 'mockup' != $preview_id ) {
|
299 |
+
if ( function_exists( 'wcs_get_subscriptions_for_order' ) ) {
|
300 |
+
$subscriptions_ids = wcs_get_subscriptions_for_order( $preview_id );
|
301 |
+
// We get the related subscription for this order.
|
302 |
+
if ( $subscriptions_ids ) {
|
303 |
+
foreach ( $subscriptions_ids as $subscription_id => $subscription_obj ) {
|
304 |
+
if ( $subscription_obj->order->id == $preview_id ) {
|
305 |
+
$subscription = $subscription_obj;
|
306 |
+
break; // Stop the loop).
|
307 |
+
}
|
308 |
+
}
|
309 |
+
}
|
310 |
+
}
|
311 |
+
}
|
312 |
+
if ( $subscription ) {
|
313 |
+
$email->object = $subscription;
|
314 |
+
} else {
|
315 |
+
$email->object = 'subscription';
|
316 |
+
}
|
317 |
break;
|
318 |
/**
|
319 |
* WooCommerce Wait-list Plugin (from WooCommerce).
|
349 |
} else {
|
350 |
if ( false == $email->object ) {
|
351 |
$content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'This email type can not be previewed please try a differnet order or email type.', 'kadence-woocommerce-email-designer' ) . '</div>';
|
352 |
+
} else if ( 'subscription' == $email->object ) {
|
353 |
+
$content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'This email type requires that an order containing a subscription be selected as the preview order.', 'kadence-woocommerce-email-designer' ) . '</div>';
|
354 |
} else {
|
355 |
+
// Get email content and apply styles.
|
356 |
$content = $email->get_content();
|
357 |
$content = $email->style_inline( $content );
|
358 |
$content = apply_filters( 'woocommerce_mail_content', $content );
|
kadence-woocommerce-email-designer.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
* Plugin Name: Kadence WooCommerce Email Designer
|
4 |
* Plugin URI: http://kadencethemes.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.1.
|
7 |
* Author: Kadence Themes
|
8 |
* Author URI: http://kadencethemes.com/
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: kadence-woocommerce-email-designer
|
11 |
* WC requires at least: 3.4.0
|
12 |
-
* WC tested up to: 3.5.
|
13 |
*
|
14 |
* @package Kadence Woocommerce Email Designer
|
15 |
*/
|
@@ -53,7 +53,7 @@ class Kadence_Woomail_Designer {
|
|
53 |
|
54 |
define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
|
55 |
define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) );
|
56 |
-
define( 'KT_WOOMAIL_VERSION', '1.1.
|
57 |
|
58 |
if ( ! kadence_woomail_is_woo_active() ) {
|
59 |
add_action( 'admin_notices', array( $this, 'admin_notice_need_woocommerce' ) );
|
3 |
* Plugin Name: Kadence WooCommerce Email Designer
|
4 |
* Plugin URI: http://kadencethemes.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.1.4
|
7 |
* Author: Kadence Themes
|
8 |
* Author URI: http://kadencethemes.com/
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: kadence-woocommerce-email-designer
|
11 |
* WC requires at least: 3.4.0
|
12 |
+
* WC tested up to: 3.5.4
|
13 |
*
|
14 |
* @package Kadence Woocommerce Email Designer
|
15 |
*/
|
53 |
|
54 |
define( 'KT_WOOMAIL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . DIRECTORY_SEPARATOR );
|
55 |
define( 'KT_WOOMAIL_URL', plugin_dir_url( __FILE__ ) );
|
56 |
+
define( 'KT_WOOMAIL_VERSION', '1.1.4' );
|
57 |
|
58 |
if ( ! kadence_woomail_is_woo_active() ) {
|
59 |
add_action( 'admin_notices', array( $this, 'admin_notice_need_woocommerce' ) );
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Tags: woocommerce, mail, email, email template, email templates, email design, p
|
|
4 |
Donate link: https://www.kadencethemes.com/about-us/
|
5 |
Requires PHP: 5.2.4
|
6 |
Requires at least: 4.4
|
7 |
-
Tested up to: 5.0.
|
8 |
-
Stable tag: 1.1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -15,6 +15,8 @@ Customize the default WooCommerce email templates design and text through the na
|
|
15 |
|
16 |
This plugin lets you easily customize the default transactional WooCommerce email templates. Edit the design using the native WordPress customizer for instant visual edits. Customize the text (including body text) or each email template in WooCommerce without editing code.
|
17 |
|
|
|
|
|
18 |
= Features Include =
|
19 |
|
20 |
* Live preview your WooCommerce emails.
|
@@ -28,6 +30,9 @@ This plugin lets you easily customize the default transactional WooCommerce emai
|
|
28 |
|
29 |
Make an impression with your customers and represent your brand well by customizing your WooCommerce emails design and content with Kadence WooCommerce Email Designer.
|
30 |
|
|
|
|
|
|
|
31 |
= Support =
|
32 |
|
33 |
We are happy to help as best we can with questions! Please use the support forums.
|
@@ -55,6 +60,10 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
|
|
55 |
|
56 |
== Changelog ==
|
57 |
|
|
|
|
|
|
|
|
|
58 |
= 1.1.3 =
|
59 |
* Fix: Issue with WP Multilang.
|
60 |
* Add: {year} for use in the footer.
|
4 |
Donate link: https://www.kadencethemes.com/about-us/
|
5 |
Requires PHP: 5.2.4
|
6 |
Requires at least: 4.4
|
7 |
+
Tested up to: 5.0.3
|
8 |
+
Stable tag: 1.1.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
15 |
|
16 |
This plugin lets you easily customize the default transactional WooCommerce email templates. Edit the design using the native WordPress customizer for instant visual edits. Customize the text (including body text) or each email template in WooCommerce without editing code.
|
17 |
|
18 |
+
https://www.youtube.com/watch?v=e3rouozVOCA
|
19 |
+
|
20 |
= Features Include =
|
21 |
|
22 |
* Live preview your WooCommerce emails.
|
30 |
|
31 |
Make an impression with your customers and represent your brand well by customizing your WooCommerce emails design and content with Kadence WooCommerce Email Designer.
|
32 |
|
33 |
+
= Full Video Walkthrough =
|
34 |
+
[Watch video walkthrough here](https://www.youtube.com/watch?v=eQmI3aSY4uI).
|
35 |
+
|
36 |
= Support =
|
37 |
|
38 |
We are happy to help as best we can with questions! Please use the support forums.
|
60 |
|
61 |
== Changelog ==
|
62 |
|
63 |
+
= 1.1.4 =
|
64 |
+
* Fix: Padding issue with order details.
|
65 |
+
* Fix: Subscription Cancelled email preview.
|
66 |
+
|
67 |
= 1.1.3 =
|
68 |
* Fix: Issue with WP Multilang.
|
69 |
* Add: {year} for use in the footer.
|
templates/woo/emails/email-order-details.php
CHANGED
@@ -40,7 +40,7 @@ if ( 'split' == $order_head_style ) {
|
|
40 |
echo __( 'Order Details', 'kadence-woocommerce-email-designer' );
|
41 |
?>
|
42 |
</h2>
|
43 |
-
<table cellspacing="0" cellpadding="0" width="100%" border="0">
|
44 |
<tr>
|
45 |
<td align="left" valign="middle">
|
46 |
<h3 style="text-align: left;">
|
40 |
echo __( 'Order Details', 'kadence-woocommerce-email-designer' );
|
41 |
?>
|
42 |
</h2>
|
43 |
+
<table class="order-info-split-table" cellspacing="0" cellpadding="0" width="100%" border="0">
|
44 |
<tr>
|
45 |
<td align="left" valign="middle">
|
46 |
<h3 style="text-align: left;">
|