Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • Docs Home

Packages

  • Abandoned-Cart-Lite-for-WooCommerce
    • Admin
      • Admin-Action
      • Admin-Notice
      • Component
      • Default-Template
      • List-Class
      • Tracking-Data
      • Welcome-Page
    • Common-Functions
    • Core
    • Cron
    • Encrypt-Decrypt-Data
    • Frontend
      • Capture-Guest-Cart
    • Tracking
    • Uninstaller
  • None

Classes

  • wcal_common

Class wcal_common

It will have all the common funtions for the plugin.

Package: Abandoned-Cart-Lite-for-WooCommerce\Common-Functions
Author: Tyche Softwares
Since: 2.5.2
Located at includes/wcal-common.php

Methods summary

public static array
# ts_add_plugin_tracking_data( array $data )

If admin allow to track the data the it will gather all information and return back.

If admin allow to track the data the it will gather all information and return back.

Parameters

$data

Returns

array
$data

Since

3.9

Hook

ts_tracker_data
public static array
# ts_get_data_for_opt_out( array $params )

Get data when Admin dont want to share information.

Get data when Admin dont want to share information.

Parameters

$params

Returns

array
$params

Since

3.9
public static string
# wcal_get_abandoned_order_count( string $get_section_result )

It will fetch the total count for the abandoned cart section.

It will fetch the total count for the abandoned cart section.

Parameters

$get_section_result
Name of the section for which we need result

Returns

string
| int $return_abandoned_count

Since

2.5.2

Globals

mixed $wpdb
public static string
# wcal_get_version( )

This function returns the Abandoned Cart Lite plugin version number.

This function returns the Abandoned Cart Lite plugin version number.

Returns

string
$plugin_version

Since

2.5.2
public static string
# wcal_get_plugin_url( )

This function returns the plugin url.

This function returns the plugin url.

Returns

string
plugin url

Since

2.5.2
public static boolean
# update_templates_table( )

This function will alter Email Templates Table to include emojis

This function will alter Email Templates Table to include emojis

Returns

boolean
true if success else false

Since

4.8
public static
# show_update_success( )

This function will show a dismissible success message after DB update is completed

This function will show a dismissible success message after DB update is completed

Since

4.8
public static
# show_update_failure( )

This function will show a dismissible success message after DB update is completed

This function will show a dismissible success message after DB update is completed

Since

4.8
public static array
# wcal_get_billing_details( integer $user_id )

Returns an array of customer billing information. Should be called only for registered users.

Returns an array of customer billing information. Should be called only for registered users.

Parameters

$user_id
  • User ID

Returns

array
$billing_details - Contains Billing Address Details

Since

4.9
public static array
# wcal_get_cart_details( stdClass $v )

Returns the Item Name, Qty and Total for any given product in the WC Cart

Returns the Item Name, Qty and Total for any given product in the WC Cart

Parameters

$v
  • Cart Information from WC()->cart;

Returns

array
$item_details - Item Data

Since

4.9
API documentation generated by ApiGen