Abandoned Cart Lite for WooCommerce - Version 5.6.2

Version Description

(26.11.2019)

Download this release

Release Info

Developer tychesoftwares
Plugin Icon 128x128 Abandoned Cart Lite for WooCommerce
Version 5.6.2
Comparing to
See all releases

Code changes from version 5.6.1 to 5.6.2

assets/js/wcal_guest_capture.js CHANGED
@@ -27,6 +27,7 @@ jQuery( 'input#billing_email' ).on( 'change', function() {
27
  shipping_postcode : jQuery('#shipping_postcode').val(),
28
  shipping_country : jQuery('#shipping_country').val(),
29
  ship_to_billing : jQuery('#shiptobilling-checkbox').val(),
 
30
  action: 'save_data'
31
  };
32
  jQuery.post( wcal_guest_capture_params.ajax_url, data, function(response) {
27
  shipping_postcode : jQuery('#shipping_postcode').val(),
28
  shipping_country : jQuery('#shipping_country').val(),
29
  ship_to_billing : jQuery('#shiptobilling-checkbox').val(),
30
+ wcal_guest_capture_nonce: jQuery( '#wcal_guest_capture_nonce' ).val(),
31
  action: 'save_data'
32
  };
33
  jQuery.post( wcal_guest_capture_params.ajax_url, data, function(response) {
assets/js/wcal_guest_capture.min.js CHANGED
@@ -1 +1 @@
1
- var gdpr_consent=!0;jQuery("input#billing_email").on("change",function(){var a=!wcal_guest_capture_params._show_gdpr_message||wcal_guest_capture_params._show_gdpr_message;if(gdpr_consent&&a){var _={billing_first_name:jQuery("#billing_first_name").val(),billing_last_name:jQuery("#billing_last_name").val(),billing_company:jQuery("#billing_company").val(),billing_address_1:jQuery("#billing_address_1").val(),billing_address_2:jQuery("#billing_address_2").val(),billing_city:jQuery("#billing_city").val(),billing_state:jQuery("#billing_state").val(),billing_postcode:jQuery("#billing_postcode").val(),billing_country:jQuery("#billing_country").val(),billing_phone:jQuery("#billing_phone").val(),billing_email:jQuery("#billing_email").val(),order_notes:jQuery("#order_comments").val(),shipping_first_name:jQuery("#shipping_first_name").val(),shipping_last_name:jQuery("#shipping_last_name").val(),shipping_company:jQuery("#shipping_company").val(),shipping_address_1:jQuery("#shipping_address_1").val(),shipping_address_2:jQuery("#shipping_address_2").val(),shipping_city:jQuery("#shipping_city").val(),shipping_state:jQuery("#shipping_state").val(),shipping_postcode:jQuery("#shipping_postcode").val(),shipping_country:jQuery("#shipping_country").val(),ship_to_billing:jQuery("#shiptobilling-checkbox").val(),action:"save_data"};jQuery.post(wcal_guest_capture_params.ajax_url,_,function(a){})}}),jQuery(document).ready(function(){wcal_guest_capture_params._show_gdpr_message&&!jQuery("#wcal_gdpr_message_block").length&&gdpr_consent&&jQuery("#billing_email").after("<span id='wcal_gdpr_message_block'> <span style='font-size: small'> "+wcal_guest_capture_params._gdpr_message+" <a style='cursor: pointer' id='wcal_gdpr_no_thanks'> "+wcal_guest_capture_params._gdpr_nothanks_msg+" </a></span></span>"),jQuery("#wcal_gdpr_no_thanks").click(function(){wcal_guest_capture_params._show_gdpr_message=!1,gdpr_consent=!1;jQuery.post(wcal_guest_capture_params.ajax_url,{action:"wcal_gdpr_refused"},function(){jQuery("#wcal_gdpr_message_block").empty().append("<span style='font-size: small'>"+wcal_guest_capture_params._gdpr_after_no_thanks_msg+"</span>").delay(5e3).fadeOut()})})});
1
+ var gdpr_consent=!0;jQuery("input#billing_email").on("change",function(){var a=!wcal_guest_capture_params._show_gdpr_message||wcal_guest_capture_params._show_gdpr_message;if(gdpr_consent&&a){var _={billing_first_name:jQuery("#billing_first_name").val(),billing_last_name:jQuery("#billing_last_name").val(),billing_company:jQuery("#billing_company").val(),billing_address_1:jQuery("#billing_address_1").val(),billing_address_2:jQuery("#billing_address_2").val(),billing_city:jQuery("#billing_city").val(),billing_state:jQuery("#billing_state").val(),billing_postcode:jQuery("#billing_postcode").val(),billing_country:jQuery("#billing_country").val(),billing_phone:jQuery("#billing_phone").val(),billing_email:jQuery("#billing_email").val(),order_notes:jQuery("#order_comments").val(),shipping_first_name:jQuery("#shipping_first_name").val(),shipping_last_name:jQuery("#shipping_last_name").val(),shipping_company:jQuery("#shipping_company").val(),shipping_address_1:jQuery("#shipping_address_1").val(),shipping_address_2:jQuery("#shipping_address_2").val(),shipping_city:jQuery("#shipping_city").val(),shipping_state:jQuery("#shipping_state").val(),shipping_postcode:jQuery("#shipping_postcode").val(),shipping_country:jQuery("#shipping_country").val(),ship_to_billing:jQuery("#shiptobilling-checkbox").val(),wcal_guest_capture_nonce:jQuery("#wcal_guest_capture_nonce").val(),action:"save_data"};jQuery.post(wcal_guest_capture_params.ajax_url,_,function(a){})}}),jQuery(document).ready(function(){wcal_guest_capture_params._show_gdpr_message&&!jQuery("#wcal_gdpr_message_block").length&&gdpr_consent&&jQuery("#billing_email").after("<span id='wcal_gdpr_message_block'> <span style='font-size: small'> "+wcal_guest_capture_params._gdpr_message+" <a style='cursor: pointer' id='wcal_gdpr_no_thanks'> "+wcal_guest_capture_params._gdpr_nothanks_msg+" </a></span></span>"),jQuery("#wcal_gdpr_no_thanks").click(function(){wcal_guest_capture_params._show_gdpr_message=!1,gdpr_consent=!1;jQuery.post(wcal_guest_capture_params.ajax_url,{action:"wcal_gdpr_refused"},function(){jQuery("#wcal_gdpr_message_block").empty().append("<span style='font-size: small'>"+wcal_guest_capture_params._gdpr_after_no_thanks_msg+"</span>").delay(5e3).fadeOut()})})});
class-wcal-update.php CHANGED
@@ -79,7 +79,7 @@ if ( ! class_exists( 'Wcal_Update' ) ) {
79
  $wcal_previous_version = get_option( 'wcal_previous_version' );
80
 
81
  if ( wcal_common::wcal_get_version() !== $wcal_previous_version ) {
82
- update_option( 'wcal_previous_version', '5.6.1' );
83
  }
84
  } else { // multi site - child sites.
85
  $wcal_guest_user_id_altered = get_blog_option( $blog_id, 'wcal_guest_user_id_altered' );
@@ -92,7 +92,7 @@ if ( ! class_exists( 'Wcal_Update' ) ) {
92
  $wcal_previous_version = get_blog_option( $blog_id, 'wcal_previous_version' );
93
 
94
  if ( wcal_common::wcal_get_version() !== $wcal_previous_version ) {
95
- update_blog_option( $blog_id, 'wcal_previous_version', '5.6.1' );
96
  }
97
  }
98
 
79
  $wcal_previous_version = get_option( 'wcal_previous_version' );
80
 
81
  if ( wcal_common::wcal_get_version() !== $wcal_previous_version ) {
82
+ update_option( 'wcal_previous_version', '5.6.2' );
83
  }
84
  } else { // multi site - child sites.
85
  $wcal_guest_user_id_altered = get_blog_option( $blog_id, 'wcal_guest_user_id_altered' );
92
  $wcal_previous_version = get_blog_option( $blog_id, 'wcal_previous_version' );
93
 
94
  if ( wcal_common::wcal_get_version() !== $wcal_previous_version ) {
95
+ update_blog_option( $blog_id, 'wcal_previous_version', '5.6.2' );
96
  }
97
  }
98
 
includes/admin/class-wcal-abandoned-cart-details.php CHANGED
@@ -55,7 +55,7 @@ if ( ! class_exists( 'Wcal_Abandoned_Cart_Details' ) ) {
55
  if ( isset( $wcal_get_abandoned_cart_result[0]->user_id ) ) {
56
  $user_id = $wcal_get_abandoned_cart_result[0]->user_id;
57
  $user_type = $wcal_get_abandoned_cart_result[0]->user_type;
58
- if ( 0 === $wcal_get_abandoned_cart_result[0]->user_id > 0 && $wcal_get_abandoned_cart_result[0] < 63000000 ) {
59
  $user_role = wcal_common::wcal_get_user_role( $user_id );
60
  } else {
61
  $user_role = 'Guest';
@@ -116,8 +116,8 @@ if ( ! class_exists( 'Wcal_Abandoned_Cart_Details' ) ) {
116
  $user_shipping_city = '';
117
  $user_shipping_state = '';
118
  $user_shipping_country = '';
119
- $billing_field_display = 'none';
120
- $shipping_field_display = 'none';
121
 
122
  if ( 'GUEST' === $user_type && 0 !== $user_id ) {
123
  $results_guest = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM `' . $wpdb->prefix . 'ac_guest_abandoned_cart_history_lite` WHERE id = %d', $user_id ) ); //phpcs:ignore
@@ -269,11 +269,20 @@ if ( ! class_exists( 'Wcal_Abandoned_Cart_Details' ) ) {
269
  }
270
 
271
  $wcal_billing_address_text = __( 'Billing Address:', 'woocommerce-abandon-cart' );
272
- $wcal_create_billing_address = '<br>' . $user_billing_company . '</br>' .
273
- $user_billing_address_1 . '</br>' .
274
- $user_billing_address_2 . '</br>' .
275
- $user_billing_city . '</br>' .
276
- $user_billing_postcode;
 
 
 
 
 
 
 
 
 
277
 
278
  $wcal_shipping_address_text = __( 'Shipping Address:', 'woocommerce-abandon-cart' );
279
 
@@ -287,12 +296,19 @@ if ( ! class_exists( 'Wcal_Abandoned_Cart_Details' ) ) {
287
 
288
  $wcal_create_shipping_address = 'Shipping Address same as Billing Address';
289
  } else {
290
- $wcal_create_shipping_address = '<br>' . $user_shipping_company . '</br>' .
291
-
292
- $user_shipping_address_1 . '</br>' .
293
- $user_shipping_address_2 . '</br>' .
294
- $user_shipping_city . '</br>' .
295
- $user_shipping_postcode;
 
 
 
 
 
 
 
296
  }
297
 
298
  if ( '' !== $shipping_charges ) {
55
  if ( isset( $wcal_get_abandoned_cart_result[0]->user_id ) ) {
56
  $user_id = $wcal_get_abandoned_cart_result[0]->user_id;
57
  $user_type = $wcal_get_abandoned_cart_result[0]->user_type;
58
+ if ( $wcal_get_abandoned_cart_result[0]->user_id > 0 && $wcal_get_abandoned_cart_result[0]->user_id < 63000000 ) {
59
  $user_role = wcal_common::wcal_get_user_role( $user_id );
60
  } else {
61
  $user_role = 'Guest';
116
  $user_shipping_city = '';
117
  $user_shipping_state = '';
118
  $user_shipping_country = '';
119
+ $billing_field_display = 'block';
120
+ $shipping_field_display = 'block';
121
 
122
  if ( 'GUEST' === $user_type && 0 !== $user_id ) {
123
  $results_guest = $wpdb->get_results( $wpdb->prepare( 'SELECT * FROM `' . $wpdb->prefix . 'ac_guest_abandoned_cart_history_lite` WHERE id = %d', $user_id ) ); //phpcs:ignore
269
  }
270
 
271
  $wcal_billing_address_text = __( 'Billing Address:', 'woocommerce-abandon-cart' );
272
+
273
+ $wcal_create_billing_address = '' !== $user_billing_company ? '<br>' . $user_billing_company . '</br>' : '<br>';
274
+ if ( '' !== $user_billing_address_1 ) {
275
+ $wcal_create_billing_address .= $user_billing_address_1 . '</br>';
276
+ }
277
+ if ( '' !== $user_billing_address_2 ) {
278
+ $wcal_create_billing_address .= $user_billing_address_2 . '</br>';
279
+ }
280
+ if ( '' !== $user_billing_city ) {
281
+ $wcal_create_billing_address .= $user_billing_city . '</br>';
282
+ }
283
+ if ( '' !== $user_billing_postcode ) {
284
+ $wcal_create_billing_address .= $user_billing_postcode;
285
+ }
286
 
287
  $wcal_shipping_address_text = __( 'Shipping Address:', 'woocommerce-abandon-cart' );
288
 
296
 
297
  $wcal_create_shipping_address = 'Shipping Address same as Billing Address';
298
  } else {
299
+ $wcal_create_shipping_address = '' !== $user_shipping_company ? '<br>' . $user_shipping_company . '</br>' : '<br>';
300
+ if ( '' !== $user_shipping_address_1 ) {
301
+ $wcal_create_shipping_address .= $user_shipping_address_1 . '</br>';
302
+ }
303
+ if ( '' !== $user_shipping_address_2 ) {
304
+ $wcal_create_shipping_address .= $user_shipping_address_2 . '</br>';
305
+ }
306
+ if ( '' !== $user_shipping_city ) {
307
+ $wcal_create_shipping_address .= $user_shipping_city . '</br>';
308
+ }
309
+ if ( '' !== $user_shipping_postcode ) {
310
+ $wcal_create_shipping_address .= $user_shipping_postcode;
311
+ }
312
  }
313
 
314
  if ( '' !== $shipping_charges ) {
includes/component/faq-support/templates/faq-page/faq-page.php CHANGED
@@ -104,6 +104,10 @@
104
  <div class="panel">
105
  <p><?php echo $ts_faq[10]['answer'] ?></p>
106
  </div>
 
 
 
 
107
  </div>
108
 
109
  <div class="support-panel">
104
  <div class="panel">
105
  <p><?php echo $ts_faq[10]['answer'] ?></p>
106
  </div>
107
+ <button class="faq-ts-accordion"><span class="dashicons dashicons-editor-help"></span><strong><?php echo $ts_faq[11]['question'] ?></strong></button>
108
+ <div class="panel">
109
+ <p><?php echo $ts_faq[11]['answer'] ?></p>
110
+ </div>
111
  </div>
112
 
113
  <div class="support-panel">
includes/wcal_all_component.php CHANGED
@@ -197,6 +197,11 @@ if ( ! class_exists( 'Wcal_All_Component' ) ) {
197
  10 => array (
198
  'question' => 'There was a problem creating an email template on Multisite.',
199
  'answer' => 'On Multisite, if you have activated the plugin from Network site then please deactivate it and activate the Abandoned Cart Lite plugin from an Individual site. So, one default email template will be created on the activation of the plugin and you can create new email template.'
 
 
 
 
 
200
  )
201
  );
202
 
197
  10 => array (
198
  'question' => 'There was a problem creating an email template on Multisite.',
199
  'answer' => 'On Multisite, if you have activated the plugin from Network site then please deactivate it and activate the Abandoned Cart Lite plugin from an Individual site. So, one default email template will be created on the activation of the plugin and you can create new email template.'
200
+ ),
201
+ 11 => array(
202
+ 'question' => 'Abnormal amount of carts are being logged by the plugin.',
203
+ 'answer' => "This might be due to a bot executing 'Add to Cart' urls on the site. Adding a few lines in the robots.txt file can stop the bots from actually adding products to the cart.
204
+ Please follow the instructions mentioned <a href='https://www.tychesoftwares.com/docs/docs/abandoned-cart-for-woocommerce-lite/track-only-genuine-visitor-carts/' target='_blank'>here.</a>"
205
  )
206
  );
207
 
includes/wcal_class-guest.php CHANGED
@@ -50,37 +50,41 @@ if ( ! class_exists( 'woocommerce_guest_ac' ) ) {
50
  */
51
  function user_side_js() {
52
 
53
- wp_enqueue_script(
54
- 'wcal_guest_capture',
55
- plugins_url( '../assets/js/wcal_guest_capture.min.js', __FILE__ ),
56
- '',
57
- WCAL_PLUGIN_VERSION,
58
- true
59
- );
60
-
61
- $guest_msg = get_option( 'wcal_guest_cart_capture_msg' );
62
-
63
- $session_gdpr = wcal_common::wcal_get_cart_session( 'wcal_cart_tracking_refused' );
64
- $show_gdpr = isset( $session_gdpr ) && 'yes' === $session_gdpr ? false : true;
65
-
66
- $vars = array();
67
- if ( isset( $guest_msg ) && '' !== $guest_msg ) {
68
- $vars = array(
69
- '_show_gdpr_message' => $show_gdpr,
70
- '_gdpr_message' => htmlspecialchars( get_option( 'wcal_guest_cart_capture_msg' ), ENT_QUOTES ),
71
- '_gdpr_nothanks_msg' => htmlspecialchars( get_option( 'wcal_gdpr_allow_opt_out' ), ENT_QUOTES ),
72
- '_gdpr_after_no_thanks_msg' => htmlspecialchars( get_option( 'wcal_gdpr_opt_out_message' ), ENT_QUOTES ),
73
- 'enable_ca_tracking' => true,
74
  );
75
- }
76
 
77
- $vars['ajax_url'] = admin_url( 'admin-ajax.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
- wp_localize_script(
80
- 'wcal_guest_capture',
81
- 'wcal_guest_capture_params',
82
- $vars
83
- );
 
84
  }
85
 
86
  /**
@@ -93,6 +97,11 @@ if ( ! class_exists( 'woocommerce_guest_ac' ) ) {
93
  */
94
  function save_data() {
95
  if ( ! is_user_logged_in() ) {
 
 
 
 
 
96
  global $wpdb, $woocommerce;
97
  if ( isset( $_POST['billing_first_name'] ) && '' !== $_POST['billing_first_name'] ) {
98
  wcal_common::wcal_set_cart_session( 'billing_first_name', sanitize_text_field( wp_unslash( $_POST['billing_first_name'] ) ) );
50
  */
51
  function user_side_js() {
52
 
53
+ if( ! is_user_logged_in() ) {
54
+ wp_nonce_field( 'save_data', 'wcal_guest_capture_nonce' );
55
+
56
+ wp_enqueue_script(
57
+ 'wcal_guest_capture',
58
+ plugins_url( '../assets/js/wcal_guest_capture.min.js', __FILE__ ),
59
+ '',
60
+ WCAL_PLUGIN_VERSION,
61
+ true
 
 
 
 
 
 
 
 
 
 
 
 
62
  );
 
63
 
64
+ $guest_msg = get_option( 'wcal_guest_cart_capture_msg' );
65
+
66
+ $session_gdpr = wcal_common::wcal_get_cart_session( 'wcal_cart_tracking_refused' );
67
+ $show_gdpr = isset( $session_gdpr ) && 'yes' === $session_gdpr ? false : true;
68
+
69
+ $vars = array();
70
+ if ( isset( $guest_msg ) && '' !== $guest_msg ) {
71
+ $vars = array(
72
+ '_show_gdpr_message' => $show_gdpr,
73
+ '_gdpr_message' => htmlspecialchars( get_option( 'wcal_guest_cart_capture_msg' ), ENT_QUOTES ),
74
+ '_gdpr_nothanks_msg' => htmlspecialchars( get_option( 'wcal_gdpr_allow_opt_out' ), ENT_QUOTES ),
75
+ '_gdpr_after_no_thanks_msg' => htmlspecialchars( get_option( 'wcal_gdpr_opt_out_message' ), ENT_QUOTES ),
76
+ 'enable_ca_tracking' => true,
77
+ );
78
+ }
79
+
80
+ $vars['ajax_url'] = admin_url( 'admin-ajax.php' );
81
 
82
+ wp_localize_script(
83
+ 'wcal_guest_capture',
84
+ 'wcal_guest_capture_params',
85
+ $vars
86
+ );
87
+ }
88
  }
89
 
90
  /**
97
  */
98
  function save_data() {
99
  if ( ! is_user_logged_in() ) {
100
+
101
+ if( ! isset( $_POST[ 'wcal_guest_capture_nonce' ] ) || ! wp_verify_nonce( $_POST[ 'wcal_guest_capture_nonce'], 'save_data' ) ) {
102
+ die();
103
+ }
104
+
105
  global $wpdb, $woocommerce;
106
  if ( isset( $_POST['billing_first_name'] ) && '' !== $_POST['billing_first_name'] ) {
107
  wcal_common::wcal_set_cart_session( 'billing_first_name', sanitize_text_field( wp_unslash( $_POST['billing_first_name'] ) ) );
readme.txt CHANGED
@@ -4,8 +4,9 @@ Contributors: ashokrane, pinal.shah, bhavik.kiri, chetnapatel, tychesoftwares, d
4
  Tags: cart abandonment, abandon cart, cart recovery, increase woocommerce conversion rate, recover woocommerce cart, increase sales with woocommerce
5
  Author URI: https://www.tychesoftwares.com/
6
  Requires at least: 1.3
7
- Tested up to: 5.2.4
8
  Stable tag: trunk
 
9
  License: GPLv2 or late
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  Donate link: https://www.paypal.me/TycheSoftwares
@@ -101,6 +102,19 @@ Abandoned Cart Plugin relies on a function called WP-Cron, and this function onl
101
 
102
  5. **[Deposits For WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/deposits-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=AbandonedCartLite "Deposits For WooCommerce")**
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
  **Some of our other free plugins:**
106
 
@@ -206,6 +220,14 @@ The admin can use the merge code `{{cart.unsubscribe}}' in the email templates.
206
  6. Product Report Tab.
207
 
208
  == Changelog ==
 
 
 
 
 
 
 
 
209
 
210
  = 5.6.1 (25.10.2019) =
211
 
4
  Tags: cart abandonment, abandon cart, cart recovery, increase woocommerce conversion rate, recover woocommerce cart, increase sales with woocommerce
5
  Author URI: https://www.tychesoftwares.com/
6
  Requires at least: 1.3
7
+ Tested up to: 5.3
8
  Stable tag: trunk
9
+ Requires PHP: 5.6
10
  License: GPLv2 or late
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  Donate link: https://www.paypal.me/TycheSoftwares
102
 
103
  5. **[Deposits For WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/deposits-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=AbandonedCartLite "Deposits For WooCommerce")**
104
 
105
+ 6. **[Payment Gateway Based Fees and Discounts for WooCommerce - Pro](https://www.tychesoftwares.com/store/premium-plugins/payment-gateway-based-fees-and-discounts-for-woocommerce-plugin/?utm_source=wprepo&utm_medium=link&utm_campaign=AbandonedCartLite "Payment Gateway Based Fees and Discounts for WooCommerce - Pro")**
106
+
107
+ 7. **[Custom Order Status for WooCommerce - Pro](https://www.tychesoftwares.com/store/premium-plugins/custom-order-status-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=AbandonedCartLite "Custom Order Status for WooCommerce - Pro")**
108
+
109
+ 8. **[Custom Order Numbers for WooCommerce - Pro](https://www.tychesoftwares.com/store/premium-plugins/custom-order-numbers-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=AbandonedCartLite "Custom Order Numbers for WooCommerce - Pro")**
110
+
111
+ 9. **[Product Input Fields for WooCommerce - Pro](https://www.tychesoftwares.com/store/premium-plugins/product-input-fields-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=AbandonedCartLite "Product Input Fields for WooCommerce - Pro")**
112
+
113
+ 10. **[Call for Price for WooCommerce - Pro](https://www.tychesoftwares.com/store/premium-plugins/woocommerce-call-for-price-plugin/?utm_source=wprepo&utm_medium=link&utm_campaign=AbandonedCartLite "Call for Price for WooCommerce - Pro")**
114
+
115
+ 11. **[Price based on User Role for WooCommerce - Pro](https://www.tychesoftwares.com/store/premium-plugins/price-user-role-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=AbandonedCartLite "Price based on User Role for WooCommerce - Pro")**
116
+
117
+ 12. **[Currency per Product for WooCommerce - Pro](https://www.tychesoftwares.com/store/premium-plugins/currency-per-product-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=AbandonedCartLite "Currency per Product for WooCommerce - Pro")**
118
 
119
  **Some of our other free plugins:**
120
 
220
  6. Product Report Tab.
221
 
222
  == Changelog ==
223
+ = 5.6.2 (26.11.2019) =
224
+
225
+ * Tweak - Added nonce for guest user data capture.
226
+ * Tweak - Visitor carts will be tracked and logged if the 'Start tracking from Cart page' setting is on.
227
+ * Tweak - Updated FAQ to show how to avoid unwanted visitor carts.
228
+ * Fix - Missing zipcode for guest users in the Abandoned Order details view.
229
+ * Fix - The Recovered Order tab did not filter the data based on the selected date range.
230
+ * Fix - User role displayed as 'Guest' for registered users in the Abandoned Order details view.
231
 
232
  = 5.6.1 (25.10.2019) =
233
 
woocommerce-ac.php CHANGED
@@ -5,14 +5,14 @@
5
  * Description: This plugin captures abandoned carts by logged-in users & emails them about it.
6
  * <strong><a href="http://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro">Click here to get the
7
  * PRO Version.</a></strong>
8
- * Version: 5.6.1
9
  * Author: Tyche Softwares
10
  * Author URI: http://www.tychesoftwares.com/
11
  * Text Domain: woocommerce-abandoned-cart
12
  * Domain Path: /i18n/languages/
13
  * Requires PHP: 5.6
14
  * WC requires at least: 3.0.0
15
- * WC tested up to: 3.7.1
16
  *
17
  * @package Abandoned-Cart-Lite-for-WooCommerce
18
  */
@@ -119,7 +119,7 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
119
  }
120
 
121
  if ( ! defined( 'WCAL_PLUGIN_VERSION' ) ) {
122
- define( 'WCAL_PLUGIN_VERSION', '5.6.1' );
123
  }
124
  $this->one_hour = 60 * 60;
125
  $this->three_hours = 3 * $this->one_hour;
@@ -1040,8 +1040,7 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
1040
 
1041
  $track_guest_user_cart_from_cart = "";
1042
  if ( isset( $track_guest_cart_from_cart_page ) ) {
1043
- //$track_guest_user_cart_from_cart = $track_guest_cart_from_cart_page;
1044
- $track_guest_user_cart_from_cart = 'off';
1045
  }
1046
 
1047
  if ( isset( $cut_off_time ) ) {
@@ -1638,7 +1637,12 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
1638
  $active_stats = '';
1639
  $active_dash = '';
1640
 
1641
- $action = isset( $_GET[ 'action' ] ) ? $_GET[ 'action' ] : '';
 
 
 
 
 
1642
 
1643
  switch( $action ) {
1644
  case '':
@@ -1687,7 +1691,8 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
1687
  */
1688
  function wcal_enqueue_scripts_js( $hook ) {
1689
  global $pagenow, $woocommerce;
1690
- $page = isset( $_GET['page'] ) ? $_GET['page'] : '';
 
1691
 
1692
  if ( $page === '' || $page !== 'woocommerce_ac_page' ) {
1693
  return;
@@ -1753,23 +1758,25 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
1753
  wp_enqueue_script( 'wcal_activate_template', plugins_url() . '/woocommerce-abandoned-cart/assets/js/wcal_template_activate.js' );
1754
 
1755
  // needed only on the dashboard page
1756
- wp_register_script( 'jquery-ui-datepicker', plugins_url() . '/woocommerce/assets/js/admin/ui-datepicker.js' );
1757
- wp_enqueue_script( 'jquery-ui-datepicker' );
1758
-
1759
- wp_enqueue_script (
1760
- 'bootstrap_js',
1761
- plugins_url() . '/woocommerce-abandoned-cart/assets/js/admin/bootstrap.min.js',
1762
- '',
1763
- '',
1764
- false );
1765
-
1766
- wp_enqueue_script (
1767
- 'reports_js',
1768
- plugins_url() . '/woocommerce-abandoned-cart/assets/js/admin/wcal_adv_dashboard.min.js',
1769
- '',
1770
- '',
1771
- false
1772
- );
 
 
1773
  // needed only on the abandoned orders page
1774
  wp_enqueue_script( 'wcal_abandoned_cart_details', plugins_url() . '/woocommerce-abandoned-cart/assets/js/admin/wcal_abandoned_cart_detail_modal.min.js' );
1775
  }
@@ -1894,6 +1901,7 @@ if ( ! class_exists( 'woocommerce_abandon_cart_lite' ) ) {
1894
  $action = $_GET['action'];
1895
  } else {
1896
  $action = "";
 
1897
  }
1898
  if ( isset( $_GET['mode'] ) ) {
1899
  $mode = $_GET['mode'];
5
  * Description: This plugin captures abandoned carts by logged-in users & emails them about it.
6
  * <strong><a href="http://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro">Click here to get the
7
  * PRO Version.</a></strong>
8
+ * Version: 5.6.2
9
  * Author: Tyche Softwares
10
  * Author URI: http://www.tychesoftwares.com/
11
  * Text Domain: woocommerce-abandoned-cart
12
  * Domain Path: /i18n/languages/
13
  * Requires PHP: 5.6
14
  * WC requires at least: 3.0.0
15
+ * WC tested up to: 3.8.0
16
  *
17
  * @package Abandoned-Cart-Lite-for-WooCommerce
18
  */
119
  }
120
 
121
  if ( ! defined( 'WCAL_PLUGIN_VERSION' ) ) {
122
+ define( 'WCAL_PLUGIN_VERSION', '5.6.2' );
123
  }
124
  $this->one_hour = 60 * 60;
125
  $this->three_hours = 3 * $this->one_hour;
1040
 
1041
  $track_guest_user_cart_from_cart = "";
1042
  if ( isset( $track_guest_cart_from_cart_page ) ) {
1043
+ $track_guest_user_cart_from_cart = $track_guest_cart_from_cart_page;
 
1044
  }
1045
 
1046
  if ( isset( $cut_off_time ) ) {
1637
  $active_stats = '';
1638
  $active_dash = '';
1639
 
1640
+ if( isset( $_GET[ 'action' ] ) ) {
1641
+ $action = $_GET[ 'action' ];
1642
+ } else {
1643
+ $action = '';
1644
+ $action = apply_filters( 'wcal_default_tab', $action );
1645
+ }
1646
 
1647
  switch( $action ) {
1648
  case '':
1691
  */
1692
  function wcal_enqueue_scripts_js( $hook ) {
1693
  global $pagenow, $woocommerce;
1694
+ $page = isset( $_GET['page'] ) ? $_GET['page'] : '';
1695
+ $action = isset( $_GET['action'] ) ? $_GET['action'] : '';
1696
 
1697
  if ( $page === '' || $page !== 'woocommerce_ac_page' ) {
1698
  return;
1758
  wp_enqueue_script( 'wcal_activate_template', plugins_url() . '/woocommerce-abandoned-cart/assets/js/wcal_template_activate.js' );
1759
 
1760
  // needed only on the dashboard page
1761
+ if( 'woocommerce_ac_page' === $page && ( '' === $action || 'dashboard' === $action ) ) {
1762
+ wp_register_script( 'jquery-ui-datepicker', plugins_url() . '/woocommerce/assets/js/admin/ui-datepicker.js' );
1763
+ wp_enqueue_script( 'jquery-ui-datepicker' );
1764
+
1765
+ wp_enqueue_script (
1766
+ 'bootstrap_js',
1767
+ plugins_url() . '/woocommerce-abandoned-cart/assets/js/admin/bootstrap.min.js',
1768
+ '',
1769
+ '',
1770
+ false );
1771
+
1772
+ wp_enqueue_script (
1773
+ 'reports_js',
1774
+ plugins_url() . '/woocommerce-abandoned-cart/assets/js/admin/wcal_adv_dashboard.min.js',
1775
+ '',
1776
+ '',
1777
+ false
1778
+ );
1779
+ }
1780
  // needed only on the abandoned orders page
1781
  wp_enqueue_script( 'wcal_abandoned_cart_details', plugins_url() . '/woocommerce-abandoned-cart/assets/js/admin/wcal_abandoned_cart_detail_modal.min.js' );
1782
  }
1901
  $action = $_GET['action'];
1902
  } else {
1903
  $action = "";
1904
+ $action = apply_filters( 'wcal_default_tab', $action );
1905
  }
1906
  if ( isset( $_GET['mode'] ) ) {
1907
  $mode = $_GET['mode'];