Version Description
(07.01.2021) = * Fix - Default template is not being created for a fresh installation. * Fix - Stats on the plugin dashboard do not match the Abandoned Orders tab.
Download this release
Release Info
| Developer | tychesoftwares |
| Plugin | |
| Version | 5.8.4 |
| Comparing to | |
| See all releases | |
Code changes from version 5.8.3 to 5.8.4
class-wcal-update.php
CHANGED
|
@@ -27,7 +27,7 @@ if ( ! class_exists( 'Wcal_Update' ) ) {
|
|
| 27 |
*/
|
| 28 |
public static function wcal_schedule_update_action() {
|
| 29 |
// IMP: The default value for get option should be updated in each release to match the current version to ensure update code is not run for first time installs.
|
| 30 |
-
if ( get_option( 'wcal_previous_version', '5.8.
|
| 31 |
as_enqueue_async_action( 'wcal_update_db' );
|
| 32 |
}
|
| 33 |
}
|
|
@@ -90,7 +90,7 @@ if ( ! class_exists( 'Wcal_Update' ) ) {
|
|
| 90 |
$wcal_previous_version = get_option( 'wcal_previous_version' );
|
| 91 |
|
| 92 |
if ( wcal_common::wcal_get_version() !== $wcal_previous_version ) {
|
| 93 |
-
update_option( 'wcal_previous_version', '5.8.
|
| 94 |
}
|
| 95 |
} else { // multi site - child sites.
|
| 96 |
$wcal_guest_user_id_altered = get_blog_option( $blog_id, 'wcal_guest_user_id_altered' );
|
|
@@ -103,7 +103,7 @@ if ( ! class_exists( 'Wcal_Update' ) ) {
|
|
| 103 |
$wcal_previous_version = get_blog_option( $blog_id, 'wcal_previous_version' );
|
| 104 |
|
| 105 |
if ( wcal_common::wcal_get_version() !== $wcal_previous_version ) {
|
| 106 |
-
update_blog_option( $blog_id, 'wcal_previous_version', '5.8.
|
| 107 |
}
|
| 108 |
}
|
| 109 |
|
| 27 |
*/
|
| 28 |
public static function wcal_schedule_update_action() {
|
| 29 |
// IMP: The default value for get option should be updated in each release to match the current version to ensure update code is not run for first time installs.
|
| 30 |
+
if ( get_option( 'wcal_previous_version', '5.8.4' ) !== WCAL_PLUGIN_VERSION && function_exists( 'as_enqueue_async_action' ) && false === as_next_scheduled_action( 'wcal_update_db' ) ) {
|
| 31 |
as_enqueue_async_action( 'wcal_update_db' );
|
| 32 |
}
|
| 33 |
}
|
| 90 |
$wcal_previous_version = get_option( 'wcal_previous_version' );
|
| 91 |
|
| 92 |
if ( wcal_common::wcal_get_version() !== $wcal_previous_version ) {
|
| 93 |
+
update_option( 'wcal_previous_version', '5.8.4' );
|
| 94 |
}
|
| 95 |
} else { // multi site - child sites.
|
| 96 |
$wcal_guest_user_id_altered = get_blog_option( $blog_id, 'wcal_guest_user_id_altered' );
|
| 103 |
$wcal_previous_version = get_blog_option( $blog_id, 'wcal_previous_version' );
|
| 104 |
|
| 105 |
if ( wcal_common::wcal_get_version() !== $wcal_previous_version ) {
|
| 106 |
+
update_blog_option( $blog_id, 'wcal_previous_version', '5.8.4' );
|
| 107 |
}
|
| 108 |
}
|
| 109 |
|
includes/classes/class-wcal-dashboard-report.php
CHANGED
|
@@ -410,7 +410,7 @@ if ( ! class_exists( 'Wcal_Dashoard_Report' ) ) {
|
|
| 410 |
$start_time = self::$start_timestamp;
|
| 411 |
$end_time = self::$end_timestamp;
|
| 412 |
|
| 413 |
-
$count_abandoned = $wpdb->get_var( $wpdb->prepare( 'SELECT count(id) FROM `' . $wpdb->prefix . 'ac_abandoned_cart_history_lite` WHERE abandoned_cart_time >= %s AND abandoned_cart_time <= %s', $start_time, $end_time ) ); //phpcs:ignore
|
| 414 |
return $count_abandoned;
|
| 415 |
}
|
| 416 |
|
|
@@ -495,7 +495,7 @@ if ( ! class_exists( 'Wcal_Dashoard_Report' ) ) {
|
|
| 495 |
$blank_cart_info = '{"cart":[]}';
|
| 496 |
$blank_cart_info_guest = '[]';
|
| 497 |
|
| 498 |
-
$get_carts = $wpdb->get_results( $wpdb->prepare( "SELECT abandoned_cart_info, recovered_cart FROM `$wpdb->prefix" . "ac_abandoned_cart_history_lite` WHERE abandoned_cart_info NOT LIKE %s AND abandoned_cart_info NOT LIKE %s AND abandoned_cart_time >= %s AND abandoned_cart_time <= %s", $blank_cart_info, $blank_cart_info_guest, $start_time, $end_time ) ); //phpcs:ignore
|
| 499 |
|
| 500 |
$abandoned_amount = 0;
|
| 501 |
$abandoned_count = 0;
|
| 410 |
$start_time = self::$start_timestamp;
|
| 411 |
$end_time = self::$end_timestamp;
|
| 412 |
|
| 413 |
+
$count_abandoned = $wpdb->get_var( $wpdb->prepare( 'SELECT count(id) FROM `' . $wpdb->prefix . 'ac_abandoned_cart_history_lite` WHERE abandoned_cart_time >= %s AND abandoned_cart_time <= %s AND cart_ignored <> %s', $start_time, $end_time, '1' ) ); //phpcs:ignore
|
| 414 |
return $count_abandoned;
|
| 415 |
}
|
| 416 |
|
| 495 |
$blank_cart_info = '{"cart":[]}';
|
| 496 |
$blank_cart_info_guest = '[]';
|
| 497 |
|
| 498 |
+
$get_carts = $wpdb->get_results( $wpdb->prepare( "SELECT abandoned_cart_info, recovered_cart FROM `$wpdb->prefix" . "ac_abandoned_cart_history_lite` WHERE abandoned_cart_info NOT LIKE %s AND abandoned_cart_info NOT LIKE %s AND abandoned_cart_time >= %s AND abandoned_cart_time <= %s AND cart_ignored <> %s", $blank_cart_info, $blank_cart_info_guest, $start_time, $end_time, '1' ) ); //phpcs:ignore
|
| 499 |
|
| 500 |
$abandoned_amount = 0;
|
| 501 |
$abandoned_count = 0;
|
includes/classes/class-wcal-recover-orders-table.php
CHANGED
|
@@ -259,9 +259,9 @@ class Wcal_Recover_Orders_Table extends WP_List_Table {
|
|
| 259 |
|
| 260 |
if ( false !== $product_details && is_object( $product_details ) && count( get_object_vars( $product_details ) ) > 0 ) {
|
| 261 |
foreach ( $product_details as $k => $v ) {
|
| 262 |
-
if ( $v->line_subtotal_tax > 0 ) {
|
| 263 |
$line_total = $line_total + $v->line_total + $v->line_subtotal_tax;
|
| 264 |
-
}
|
| 265 |
$line_total = $line_total + $v->line_total;
|
| 266 |
}
|
| 267 |
}
|
| 259 |
|
| 260 |
if ( false !== $product_details && is_object( $product_details ) && count( get_object_vars( $product_details ) ) > 0 ) {
|
| 261 |
foreach ( $product_details as $k => $v ) {
|
| 262 |
+
if ( isset( $v->line_subtotal_tax ) && $v->line_subtotal_tax > 0 ) {
|
| 263 |
$line_total = $line_total + $v->line_total + $v->line_subtotal_tax;
|
| 264 |
+
} elseif ( isset( $v->line_total ) ) {
|
| 265 |
$line_total = $line_total + $v->line_total;
|
| 266 |
}
|
| 267 |
}
|
readme.txt
CHANGED
|
@@ -223,6 +223,10 @@ The admin can use the merge code `{{cart.unsubscribe}}' in the email templates.
|
|
| 223 |
|
| 224 |
== Changelog ==
|
| 225 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
= 5.8.3 (06.11.2020) =
|
| 227 |
* Fix - Added more changes related to sanitization of data & SQL queries to make the plugin WPCS compliant.
|
| 228 |
* Tweak - The plugin will no longer support running a cron job manually via cPanel. This has been done to ensure the security standards for WordPress are met.
|
| 223 |
|
| 224 |
== Changelog ==
|
| 225 |
|
| 226 |
+
= 5.8.4 (07.01.2021) =
|
| 227 |
+
* Fix - Default template is not being created for a fresh installation.
|
| 228 |
+
* Fix - Stats on the plugin dashboard do not match the Abandoned Orders tab.
|
| 229 |
+
|
| 230 |
= 5.8.3 (06.11.2020) =
|
| 231 |
* Fix - Added more changes related to sanitization of data & SQL queries to make the plugin WPCS compliant.
|
| 232 |
* Tweak - The plugin will no longer support running a cron job manually via cPanel. This has been done to ensure the security standards for WordPress are met.
|
woocommerce-ac.php
CHANGED
|
@@ -3,14 +3,14 @@
|
|
| 3 |
* Plugin Name: Abandoned Cart Lite for WooCommerce
|
| 4 |
* Plugin URI: http://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro
|
| 5 |
* Description: This plugin captures abandoned carts by logged-in users & emails them about it. <strong><a href="http://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro">Click here to get the PRO Version.</a></strong>
|
| 6 |
-
* Version: 5.8.
|
| 7 |
* Author: Tyche Softwares
|
| 8 |
* Author URI: http://www.tychesoftwares.com/
|
| 9 |
* Text Domain: woocommerce-abandoned-cart
|
| 10 |
* Domain Path: /i18n/languages/
|
| 11 |
* Requires PHP: 5.6
|
| 12 |
* WC requires at least: 3.0.0
|
| 13 |
-
* WC tested up to: 4.
|
| 14 |
*
|
| 15 |
* @package Abandoned-Cart-Lite-for-WooCommerce
|
| 16 |
*/
|
|
@@ -118,7 +118,7 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
|
|
| 118 |
}
|
| 119 |
|
| 120 |
if ( ! defined( 'WCAL_PLUGIN_VERSION' ) ) {
|
| 121 |
-
define( 'WCAL_PLUGIN_VERSION', '5.8.
|
| 122 |
}
|
| 123 |
$this->one_hour = 60 * 60;
|
| 124 |
$this->three_hours = 3 * $this->one_hour;
|
|
@@ -629,7 +629,7 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
|
|
| 629 |
*/
|
| 630 |
if ( 0 === $blog_id ) {
|
| 631 |
if ( ! get_option( 'wcal_new_default_templates' ) ) {
|
| 632 |
-
if ( 0 === $check_table_empty ) {
|
| 633 |
$default_template = new Wcal_Default_Template_Settings();
|
| 634 |
$default_template->wcal_create_default_templates( $db_prefix, $blog_id );
|
| 635 |
}
|
|
@@ -2425,6 +2425,7 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
|
|
| 2425 |
<li>
|
| 2426 |
<a href="admin.php?page=woocommerce_ac_page&action=emailsettings&wcal_section=wcap_sms_settings" class="<?php echo esc_attr( $wcap_sms_settings ); ?>"><?php esc_html_e( 'SMS', 'woocommerce-ac' ); ?> </a>
|
| 2427 |
</li>
|
|
|
|
| 2428 |
</ul>
|
| 2429 |
<br class="clear">
|
| 2430 |
<?php
|
|
@@ -2453,6 +2454,7 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
|
|
| 2453 |
} elseif ( 'wcap_sms_settings' === $section ) {
|
| 2454 |
WCAP_Pro_Settings::wcap_sms_settings();
|
| 2455 |
}
|
|
|
|
| 2456 |
?>
|
| 2457 |
</div>
|
| 2458 |
<?php
|
| 3 |
* Plugin Name: Abandoned Cart Lite for WooCommerce
|
| 4 |
* Plugin URI: http://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro
|
| 5 |
* Description: This plugin captures abandoned carts by logged-in users & emails them about it. <strong><a href="http://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro">Click here to get the PRO Version.</a></strong>
|
| 6 |
+
* Version: 5.8.4
|
| 7 |
* Author: Tyche Softwares
|
| 8 |
* Author URI: http://www.tychesoftwares.com/
|
| 9 |
* Text Domain: woocommerce-abandoned-cart
|
| 10 |
* Domain Path: /i18n/languages/
|
| 11 |
* Requires PHP: 5.6
|
| 12 |
* WC requires at least: 3.0.0
|
| 13 |
+
* WC tested up to: 4.8.0
|
| 14 |
*
|
| 15 |
* @package Abandoned-Cart-Lite-for-WooCommerce
|
| 16 |
*/
|
| 118 |
}
|
| 119 |
|
| 120 |
if ( ! defined( 'WCAL_PLUGIN_VERSION' ) ) {
|
| 121 |
+
define( 'WCAL_PLUGIN_VERSION', '5.8.4' );
|
| 122 |
}
|
| 123 |
$this->one_hour = 60 * 60;
|
| 124 |
$this->three_hours = 3 * $this->one_hour;
|
| 629 |
*/
|
| 630 |
if ( 0 === $blog_id ) {
|
| 631 |
if ( ! get_option( 'wcal_new_default_templates' ) ) {
|
| 632 |
+
if ( 0 === (int) $check_table_empty ) {
|
| 633 |
$default_template = new Wcal_Default_Template_Settings();
|
| 634 |
$default_template->wcal_create_default_templates( $db_prefix, $blog_id );
|
| 635 |
}
|
| 2425 |
<li>
|
| 2426 |
<a href="admin.php?page=woocommerce_ac_page&action=emailsettings&wcal_section=wcap_sms_settings" class="<?php echo esc_attr( $wcap_sms_settings ); ?>"><?php esc_html_e( 'SMS', 'woocommerce-ac' ); ?> </a>
|
| 2427 |
</li>
|
| 2428 |
+
<?php do_action( 'wcal_add_custom_settings_tab', $section ); ?>
|
| 2429 |
</ul>
|
| 2430 |
<br class="clear">
|
| 2431 |
<?php
|
| 2454 |
} elseif ( 'wcap_sms_settings' === $section ) {
|
| 2455 |
WCAP_Pro_Settings::wcap_sms_settings();
|
| 2456 |
}
|
| 2457 |
+
do_action( 'wcal_add_custom_settings_tab_content', $section );
|
| 2458 |
?>
|
| 2459 |
</div>
|
| 2460 |
<?php
|
