Kadence WooCommerce Email Designer - Version 1.3.6

Version Description

  • Update: Translation issue with account email.
  • Fix: Header image styling bug.
  • Fix: Better placeholder fall back for names in account emails.
  • Update: Check for order object for email preview.
Download this release

Release Info

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

Code changes from version 1.3.5 to 1.3.6

includes/class-kadence-woomail-preview.php CHANGED
@@ -77,6 +77,7 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
77
  'failed_preorder_sca_authentication' => 'WC_Stripe_Email_Failed_Preorder_Authentication',
78
  'failed_renewal_authentication' => 'WC_Stripe_Email_Failed_Renewal_Authentication',
79
  'failed_authentication_requested' => 'WC_Stripe_Email_Failed_Authentication_Retry',
 
80
  // Subscriptio Email Types.
81
  // 'customer_subscription_new_order' => 'Subscriptio_Email_Customer_Subscription_New_Order',
82
  // 'customer_subscription_processing_order' => 'Subscriptio_Email_Customer_Subscription_Processing_Order',
@@ -236,6 +237,9 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
236
  $emails = $wc_emails->get_emails();
237
  $email_template = Kadence_Woomail_Customizer::opt( 'email_type' );
238
  $preview_id = Kadence_Woomail_Customizer::opt( 'preview_order_id' );
 
 
 
239
  $email_type = self::get_email_class_name( $email_template );
240
  if ( false === $email_type ) {
241
  return false;
@@ -325,9 +329,9 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
325
  case 'failed_preorder_sca_authentication':
326
  case 'failed_order':
327
  $email->object = $order;
328
- $email->find['order-date'] = '{order_date}';
329
- $email->find['order-number'] = '{order_number}';
330
  if ( is_object( $order ) ) {
 
 
331
  $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
332
  $email->replace['order-number'] = $email->object->get_order_number();
333
  // Other properties
@@ -337,9 +341,9 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
337
  case 'customer_refunded_order':
338
  $email->object = $order;
339
  $email->partial_refund = $partial_status;
340
- $email->find['order-date'] = '{order_date}';
341
- $email->find['order-number'] = '{order_number}';
342
  if ( is_object( $order ) ) {
 
 
343
  $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
344
  $email->replace['order-number'] = $email->object->get_order_number();
345
  // Other properties
@@ -357,12 +361,14 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
357
  case 'customer_note':
358
  $email->object = $order;
359
  $email->customer_note = __( 'Hello! This is an example note', 'kadence-woocommerce-email-designer' );
360
- $email->find['order-date'] = '{order_date}';
361
- $email->find['order-number'] = '{order_number}';
362
- $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
363
- $email->replace['order-number'] = $email->object->get_order_number();
364
- // Other properties
365
- $email->recipient = $email->object->get_billing_email();
 
 
366
  break;
367
  case 'customer_reset_password':
368
  $email->object = $user;
@@ -377,9 +383,9 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
377
  */
378
  case 'customer_delivered_order':
379
  $email->object = $order;
380
- $email->find['order-date'] = '{order_date}';
381
- $email->find['order-number'] = '{order_number}';
382
  if ( is_object( $order ) ) {
 
 
383
  $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
384
  $email->replace['order-number'] = $email->object->get_order_number();
385
  // Other properties
@@ -395,12 +401,14 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
395
  case 'customer_completed_renewal_order':
396
  case 'customer_renewal_invoice':
397
  $email->object = $order;
398
- $email->find['order-date'] = '{order_date}';
399
- $email->find['order-number'] = '{order_number}';
400
- $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
401
- $email->replace['order-number'] = $email->object->get_order_number();
402
- // Other properties
403
- $email->recipient = $email->object->get_billing_email();
 
 
404
  break;
405
  case 'customer_completed_switch_order':
406
  $email->object = $order;
@@ -907,7 +915,7 @@ if ( ! class_exists( 'Kadence_Woomail_Preview' ) ) {
907
  if ( ! isset( $setting['live_method'] ) || $setting['live_method'] === 'css' ) {
908
  if ( $responsive_check && 'content_width'== $setting_key ) {
909
  $property = 'max-width';
910
- if ( '#template_container' !== $selector ) {
911
  continue;
912
  }
913
  }
77
  'failed_preorder_sca_authentication' => 'WC_Stripe_Email_Failed_Preorder_Authentication',
78
  'failed_renewal_authentication' => 'WC_Stripe_Email_Failed_Renewal_Authentication',
79
  'failed_authentication_requested' => 'WC_Stripe_Email_Failed_Authentication_Retry',
80
+ 'cartflows_ca_email_templates' => 'KWED_Cartflows_CA_Email',
81
  // Subscriptio Email Types.
82
  // 'customer_subscription_new_order' => 'Subscriptio_Email_Customer_Subscription_New_Order',
83
  // 'customer_subscription_processing_order' => 'Subscriptio_Email_Customer_Subscription_Processing_Order',
237
  $emails = $wc_emails->get_emails();
238
  $email_template = Kadence_Woomail_Customizer::opt( 'email_type' );
239
  $preview_id = Kadence_Woomail_Customizer::opt( 'preview_order_id' );
240
+ if ( strlen( $email_template ) > 29 && 'cartflows_ca_email_templates_' === substr( $email_template, 29 ) ) {
241
+ $email_template = 'cartflows_ca_email_templates';
242
+ }
243
  $email_type = self::get_email_class_name( $email_template );
244
  if ( false === $email_type ) {
245
  return false;
329
  case 'failed_preorder_sca_authentication':
330
  case 'failed_order':
331
  $email->object = $order;
 
 
332
  if ( is_object( $order ) ) {
333
+ $email->find['order-date'] = '{order_date}';
334
+ $email->find['order-number'] = '{order_number}';
335
  $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
336
  $email->replace['order-number'] = $email->object->get_order_number();
337
  // Other properties
341
  case 'customer_refunded_order':
342
  $email->object = $order;
343
  $email->partial_refund = $partial_status;
 
 
344
  if ( is_object( $order ) ) {
345
+ $email->find['order-date'] = '{order_date}';
346
+ $email->find['order-number'] = '{order_number}';
347
  $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
348
  $email->replace['order-number'] = $email->object->get_order_number();
349
  // Other properties
361
  case 'customer_note':
362
  $email->object = $order;
363
  $email->customer_note = __( 'Hello! This is an example note', 'kadence-woocommerce-email-designer' );
364
+ if ( is_object( $order ) ) {
365
+ $email->find['order-date'] = '{order_date}';
366
+ $email->find['order-number'] = '{order_number}';
367
+ $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
368
+ $email->replace['order-number'] = $email->object->get_order_number();
369
+ // Other properties
370
+ $email->recipient = $email->object->get_billing_email();
371
+ }
372
  break;
373
  case 'customer_reset_password':
374
  $email->object = $user;
383
  */
384
  case 'customer_delivered_order':
385
  $email->object = $order;
 
 
386
  if ( is_object( $order ) ) {
387
+ $email->find['order-date'] = '{order_date}';
388
+ $email->find['order-number'] = '{order_number}';
389
  $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
390
  $email->replace['order-number'] = $email->object->get_order_number();
391
  // Other properties
401
  case 'customer_completed_renewal_order':
402
  case 'customer_renewal_invoice':
403
  $email->object = $order;
404
+ if ( is_object( $order ) ) {
405
+ $email->find['order-date'] = '{order_date}';
406
+ $email->find['order-number'] = '{order_number}';
407
+ $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
408
+ $email->replace['order-number'] = $email->object->get_order_number();
409
+ // Other properties
410
+ $email->recipient = $email->object->get_billing_email();
411
+ }
412
  break;
413
  case 'customer_completed_switch_order':
414
  $email->object = $order;
915
  if ( ! isset( $setting['live_method'] ) || $setting['live_method'] === 'css' ) {
916
  if ( $responsive_check && 'content_width'== $setting_key ) {
917
  $property = 'max-width';
918
+ if ( '#template_container' !== $selector && '#template_footer' !== $selector ) {
919
  continue;
920
  }
921
  }
includes/class-kadence-woomail-settings.php CHANGED
@@ -3129,7 +3129,17 @@ To reset your password, visit the following address:',
3129
  if ( class_exists( 'WC_Stripe' ) && class_exists( 'WC_Subscriptions' ) ) {
3130
  $types = array_merge( $types, self::$stripe_email_types_subscription_mapping );
3131
  }
3132
-
 
 
 
 
 
 
 
 
 
 
3133
  self::$email_types = apply_filters( 'kadence_woomail_email_types', $types );
3134
  }
3135
 
3129
  if ( class_exists( 'WC_Stripe' ) && class_exists( 'WC_Subscriptions' ) ) {
3130
  $types = array_merge( $types, self::$stripe_email_types_subscription_mapping );
3131
  }
3132
+ // if ( class_exists( 'Cartflows_Ca_Email_Templates' ) ) {
3133
+ // $email_tmpl = Cartflows_Ca_Email_Templates::get_instance();
3134
+ // $templates = $email_tmpl->fetch_all_active_templates();
3135
+ // if ( ! empty( $templates ) ) {
3136
+ // $emails = array();
3137
+ // foreach ( $templates as $key => $value ) {
3138
+ // $emails['cartflows_ca_email_templates_' . $value->id] = 'CA: ' . $value->template_name;
3139
+ // }
3140
+ // $types = array_merge( $types, $emails );
3141
+ // }
3142
+ // }
3143
  self::$email_types = apply_filters( 'kadence_woomail_email_types', $types );
3144
  }
3145
 
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.5
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.5.0
12
- * WC tested up to: 3.8.0
13
  *
14
  * @package Kadence Woocommerce Email Designer
15
  */
@@ -126,6 +126,8 @@ class Kadence_Woomail_Designer {
126
 
127
  add_filter( 'woocommerce_email_restore_locale', array( $this, 'restore_to_user_locale' ) );
128
 
 
 
129
  }
130
  /**
131
  * Filter callback to replace {year} in email footer
@@ -402,14 +404,20 @@ class Kadence_Woomail_Designer {
402
 
403
  $first_name = get_user_meta( $email->object->ID, 'billing_first_name', true );
404
  if ( empty( $first_name ) ) {
405
- // Fall back to user display name
406
- $first_name = $email->object->display_name;
 
 
 
407
  }
408
 
409
  $last_name = get_user_meta( $email->object->ID, 'billing_last_name', true );
410
  if ( empty( $last_name ) ) {
411
- // Fall back to user display name
412
- $last_name = $email->object->display_name;
 
 
 
413
  }
414
 
415
  $full_name = get_user_meta( $email->object->ID, 'formatted_billing_full_name', true );
@@ -446,14 +454,20 @@ class Kadence_Woomail_Designer {
446
  if ( is_a( $email->object, 'WP_User' ) ) {
447
  $first_name = get_user_meta( $email->object->ID, 'billing_first_name', true );
448
  if ( empty( $first_name ) ) {
449
- // Fall back to user display name.
450
- $first_name = $email->object->display_name;
 
 
 
451
  }
452
 
453
  $last_name = get_user_meta( $email->object->ID, 'billing_last_name', true );
454
  if ( empty( $last_name ) ) {
455
- // Fall back to user display name.
456
- $last_name = $email->object->display_name;
 
 
 
457
  }
458
 
459
  $full_name = get_user_meta( $email->object->ID, 'formatted_billing_full_name', true );
@@ -691,3 +705,4 @@ class Kadence_Woomail_Plugin_Check {
691
  function kadence_woomail_is_woo_active() {
692
  return Kadence_Woomail_Plugin_Check::active_check_woo();
693
  }
 
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.6
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.5.0
12
+ * WC tested up to: 3.8.1
13
  *
14
  * @package Kadence Woocommerce Email Designer
15
  */
126
 
127
  add_filter( 'woocommerce_email_restore_locale', array( $this, 'restore_to_user_locale' ) );
128
 
129
+ //require_once KT_WOOMAIL_PATH . 'includes/class-kwed-cartflows-ca-email.php'; // Add CartFlows.
130
+
131
  }
132
  /**
133
  * Filter callback to replace {year} in email footer
404
 
405
  $first_name = get_user_meta( $email->object->ID, 'billing_first_name', true );
406
  if ( empty( $first_name ) ) {
407
+ $first_name = get_user_meta( $email->object->ID, 'first_name', true );
408
+ if ( empty( $first_name ) ) {
409
+ // Fall back to user display name
410
+ $first_name = $email->object->display_name;
411
+ }
412
  }
413
 
414
  $last_name = get_user_meta( $email->object->ID, 'billing_last_name', true );
415
  if ( empty( $last_name ) ) {
416
+ $last_name = get_user_meta( $email->object->ID, 'last_name', true );
417
+ if ( empty( $last_name ) ) {
418
+ // Fall back to user display name
419
+ $last_name = $email->object->display_name;
420
+ }
421
  }
422
 
423
  $full_name = get_user_meta( $email->object->ID, 'formatted_billing_full_name', true );
454
  if ( is_a( $email->object, 'WP_User' ) ) {
455
  $first_name = get_user_meta( $email->object->ID, 'billing_first_name', true );
456
  if ( empty( $first_name ) ) {
457
+ $first_name = get_user_meta( $email->object->ID, 'first_name', true );
458
+ if ( empty( $first_name ) ) {
459
+ // Fall back to user display name.
460
+ $first_name = $email->object->display_name;
461
+ }
462
  }
463
 
464
  $last_name = get_user_meta( $email->object->ID, 'billing_last_name', true );
465
  if ( empty( $last_name ) ) {
466
+ $last_name = get_user_meta( $email->object->ID, 'last_name', true );
467
+ if ( empty( $last_name ) ) {
468
+ // Fall back to user display name.
469
+ $last_name = $email->object->display_name;
470
+ }
471
  }
472
 
473
  $full_name = get_user_meta( $email->object->ID, 'formatted_billing_full_name', true );
705
  function kadence_woomail_is_woo_active() {
706
  return Kadence_Woomail_Plugin_Check::active_check_woo();
707
  }
708
+
languages/kadence-woocommerce-email-designer.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Kadence Woocommerce Email Designer\n"
5
- "POT-Creation-Date: 2019-11-05 16:43-0700\n"
6
  "PO-Revision-Date: 2015-05-08 13:15-0700\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
@@ -216,42 +216,42 @@ msgstr ""
216
  msgid "Error importing settings! The template you selected is not valid."
217
  msgstr ""
218
 
219
- #: includes/class-kadence-woomail-preview.php:359
220
  msgid "Hello! This is an example note"
221
  msgstr ""
222
 
223
- #: includes/class-kadence-woomail-preview.php:663
224
  msgid ""
225
  "This email type can not be previewed please try a different order or email "
226
  "type."
227
  msgstr ""
228
 
229
- #: includes/class-kadence-woomail-preview.php:665
230
  msgid ""
231
  "This email type requires that an order containing a subscription be selected "
232
  "as the preview order."
233
  msgstr ""
234
 
235
- #: includes/class-kadence-woomail-preview.php:667
236
  msgid ""
237
  "To generate a preview of this email type you must choose an order containing "
238
  "a subscription which has also failed to auto renew as the preview order in "
239
  "the settings."
240
  msgstr ""
241
 
242
- #: includes/class-kadence-woomail-preview.php:669
243
  msgid ""
244
  "This email type requires that an order containing a vendor purchase be "
245
  "selected as the preview order."
246
  msgstr ""
247
 
248
- #: includes/class-kadence-woomail-preview.php:671
249
  msgid ""
250
  "This email type requires that an order containing a user who has an active "
251
  "membership be selected as the preview order."
252
  msgstr ""
253
 
254
- #: includes/class-kadence-woomail-preview.php:735
255
  msgid ""
256
  "An error occurred trying to load this email type. Make sure this email type "
257
  "is enabled or please try another type."
@@ -1194,6 +1194,7 @@ msgid "Thanks for using {site_address}!"
1194
  msgstr ""
1195
 
1196
  #: includes/class-kadence-woomail-settings.php:2816
 
1197
  msgid "Thanks for shopping with us."
1198
  msgstr ""
1199
 
@@ -1383,6 +1384,7 @@ msgid "Renew your {site_title} membership!"
1383
  msgstr ""
1384
 
1385
  #: includes/class-kadence-woomail-settings.php:2882
 
1386
  msgid "Thanks for shopping with us"
1387
  msgstr ""
1388
 
@@ -1505,34 +1507,34 @@ msgid ""
1505
  "Email Designer</a> plugin by <a href=\"%s\">Kadence Themes</a>."
1506
  msgstr ""
1507
 
1508
- #: kadence-woocommerce-email-designer.php:158
1509
  msgid ""
1510
  "Kadence Woocommerce Email Designer requires WooCommerce to be active to work"
1511
  msgstr ""
1512
 
1513
- #: kadence-woocommerce-email-designer.php:270
1514
  #: kadence-woocommerce-email-designer.php:272
 
1515
  msgid "Pay for this order"
1516
  msgstr ""
1517
 
1518
- #: kadence-woocommerce-email-designer.php:283
1519
  #: kadence-woocommerce-email-designer.php:285
1520
- #: kadence-woocommerce-email-designer.php:292
1521
  #: kadence-woocommerce-email-designer.php:294
 
1522
  msgid "Pay Now &raquo;"
1523
  msgstr ""
1524
 
1525
- #: kadence-woocommerce-email-designer.php:326
1526
- #: kadence-woocommerce-email-designer.php:332
1527
  msgid "Guest"
1528
  msgstr ""
1529
 
1530
- #: kadence-woocommerce-email-designer.php:492
1531
- #: kadence-woocommerce-email-designer.php:493
1532
  msgid "Email Customizer"
1533
  msgstr ""
1534
 
1535
- #: kadence-woocommerce-email-designer.php:507
1536
  msgid "Open Email Designer"
1537
  msgstr ""
1538
 
@@ -1638,6 +1640,12 @@ msgstr ""
1638
  msgid "Your password has been automatically generated: %s"
1639
  msgstr ""
1640
 
 
 
 
 
 
 
1641
  #: templates/woo/emails/customer-new-account.php:48
1642
  msgid "View Account"
1643
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Kadence Woocommerce Email Designer\n"
5
+ "POT-Creation-Date: 2019-12-05 10:51-0700\n"
6
  "PO-Revision-Date: 2015-05-08 13:15-0700\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
216
  msgid "Error importing settings! The template you selected is not valid."
217
  msgstr ""
218
 
219
+ #: includes/class-kadence-woomail-preview.php:363
220
  msgid "Hello! This is an example note"
221
  msgstr ""
222
 
223
+ #: includes/class-kadence-woomail-preview.php:671
224
  msgid ""
225
  "This email type can not be previewed please try a different order or email "
226
  "type."
227
  msgstr ""
228
 
229
+ #: includes/class-kadence-woomail-preview.php:673
230
  msgid ""
231
  "This email type requires that an order containing a subscription be selected "
232
  "as the preview order."
233
  msgstr ""
234
 
235
+ #: includes/class-kadence-woomail-preview.php:675
236
  msgid ""
237
  "To generate a preview of this email type you must choose an order containing "
238
  "a subscription which has also failed to auto renew as the preview order in "
239
  "the settings."
240
  msgstr ""
241
 
242
+ #: includes/class-kadence-woomail-preview.php:677
243
  msgid ""
244
  "This email type requires that an order containing a vendor purchase be "
245
  "selected as the preview order."
246
  msgstr ""
247
 
248
+ #: includes/class-kadence-woomail-preview.php:679
249
  msgid ""
250
  "This email type requires that an order containing a user who has an active "
251
  "membership be selected as the preview order."
252
  msgstr ""
253
 
254
+ #: includes/class-kadence-woomail-preview.php:743
255
  msgid ""
256
  "An error occurred trying to load this email type. Make sure this email type "
257
  "is enabled or please try another type."
1194
  msgstr ""
1195
 
1196
  #: includes/class-kadence-woomail-settings.php:2816
1197
+ #: includes/class-kwed-cartflows-ca-email.php:134
1198
  msgid "Thanks for shopping with us."
1199
  msgstr ""
1200
 
1384
  msgstr ""
1385
 
1386
  #: includes/class-kadence-woomail-settings.php:2882
1387
+ #: includes/class-kwed-cartflows-ca-email.php:86
1388
  msgid "Thanks for shopping with us"
1389
  msgstr ""
1390
 
1507
  "Email Designer</a> plugin by <a href=\"%s\">Kadence Themes</a>."
1508
  msgstr ""
1509
 
1510
+ #: kadence-woocommerce-email-designer.php:160
1511
  msgid ""
1512
  "Kadence Woocommerce Email Designer requires WooCommerce to be active to work"
1513
  msgstr ""
1514
 
 
1515
  #: kadence-woocommerce-email-designer.php:272
1516
+ #: kadence-woocommerce-email-designer.php:274
1517
  msgid "Pay for this order"
1518
  msgstr ""
1519
 
 
1520
  #: kadence-woocommerce-email-designer.php:285
1521
+ #: kadence-woocommerce-email-designer.php:287
1522
  #: kadence-woocommerce-email-designer.php:294
1523
+ #: kadence-woocommerce-email-designer.php:296
1524
  msgid "Pay Now &raquo;"
1525
  msgstr ""
1526
 
1527
+ #: kadence-woocommerce-email-designer.php:328
1528
+ #: kadence-woocommerce-email-designer.php:334
1529
  msgid "Guest"
1530
  msgstr ""
1531
 
1532
+ #: kadence-woocommerce-email-designer.php:506
1533
+ #: kadence-woocommerce-email-designer.php:507
1534
  msgid "Email Customizer"
1535
  msgstr ""
1536
 
1537
+ #: kadence-woocommerce-email-designer.php:521
1538
  msgid "Open Email Designer"
1539
  msgstr ""
1540
 
1640
  msgid "Your password has been automatically generated: %s"
1641
  msgstr ""
1642
 
1643
+ #: templates/woo/emails/customer-new-account.php:47
1644
+ msgid ""
1645
+ "You can access your account area to view your orders and change your "
1646
+ "password."
1647
+ msgstr ""
1648
+
1649
  #: templates/woo/emails/customer-new-account.php:48
1650
  msgid "View Account"
1651
  msgstr ""
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.0
8
- Stable tag: 1.3.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -60,6 +60,12 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
60
 
61
  == Changelog ==
62
 
 
 
 
 
 
 
63
  = 1.3.5 =
64
  * Update: Translation issue with subscriptions email.
65
  * Add: Preview Support for Stripe emails
5
  Requires PHP: 5.2.4
6
  Requires at least: 4.4
7
  Tested up to: 5.3.0
8
+ Stable tag: 1.3.6
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.6 =
64
+ * Update: Translation issue with account email.
65
+ * Fix: Header image styling bug.
66
+ * Fix: Better placeholder fall back for names in account emails.
67
+ * Update: Check for order object for email preview.
68
+
69
  = 1.3.5 =
70
  * Update: Translation issue with subscriptions email.
71
  * Add: Preview Support for Stripe emails
templates/woo/emails/customer-new-account.php CHANGED
@@ -44,7 +44,7 @@ do_action( 'kadence_woomail_designer_email_text', $email ); ?>
44
  endif;
45
  if ( true == $account_section ) {
46
  if ( true == $button_check ) {
47
- echo '<p>' . esc_html( 'You can access your account area to view your orders and change your password.', 'kadence-woocommerce-email-designer' ) . '</p>';
48
  echo '<p class="btn-container"><a href="' . esc_url( wc_get_page_permalink( 'myaccount' ) ) . '" class="btn">' . esc_html__( 'View Account', 'kadence-woocommerce-email-designer' ) . '</a></p>';
49
  } else {
50
  ?>
44
  endif;
45
  if ( true == $account_section ) {
46
  if ( true == $button_check ) {
47
+ echo '<p>' . esc_html__( 'You can access your account area to view your orders and change your password.', 'kadence-woocommerce-email-designer' ) . '</p>';
48
  echo '<p class="btn-container"><a href="' . esc_url( wc_get_page_permalink( 'myaccount' ) ) . '" class="btn">' . esc_html__( 'View Account', 'kadence-woocommerce-email-designer' ) . '</a></p>';
49
  } else {
50
  ?>
templates/woo/emails/email-styles.php CHANGED
@@ -95,6 +95,9 @@ min-width:60px;
95
  #template_header_image p {
96
  margin-bottom:0;
97
  }
 
 
 
98
  body {
99
  background-color: <?php echo esc_attr( $bg ); ?>;
100
  }
95
  #template_header_image p {
96
  margin-bottom:0;
97
  }
98
+ #template_header_image_container {
99
+ width: 100%;
100
+ }
101
  body {
102
  background-color: <?php echo esc_attr( $bg ); ?>;
103
  }