Class woocommerce_abandon_cart_lite
It will add the hooks, filters, menu and the variables and all the necessary actions for the plguins which will be used all over the plugin.
Methods summary
public
|
#
__construct( )
The constructor will add the hooks, filters and the variable which will be used all over the plugin. |
public static
array
|
#
wcal_deactivate_add_questions( array $wcal_add_questions )
It will add the Questions while admin deactivate the plugin. |
public static
|
#
wcal_order_placed( integer $order_id )
When customer clicks on the "Place Order" button on the checkout page, it will identify if we need to keep that cart or delete it. |
public
string
|
#
wcal_order_complete_action( string $order_status, integer $order_id )
It will check the WooCommerce order status. If the order status is pending or failed the we will keep that cart record as an abandoned cart. It will be executed after order placed. |
public
|
|
public
|
#
wcal_update_po_file( )
In this version we have allowed customer to transalte the plugin string using .po and .pot file. |
public
|
|
public
|
#
wcal_initialize_plugin_options( )
It will add the section, field, & registres the plugin fields using Settings API. |
public
|
#
ac_lite_general_options_callback( )
Settings API callback for section "ac_lite_general_settings_section". |
public
|
|
public
integer
|
|
public
|
#
ac_lite_email_admin_on_recovery( array $args )
Settings API callback for email admin on cart recovery field. |
public
|
#
wcal_track_guest_cart_from_cart_page_callback( array $args )
Settings API callback for capturing guest cart which do not reach the checkout page. |
public static
|
#
wcal_guest_cart_capture_msg_callback( array $args )
Call back function for guest user cart capture message |
public static
|
#
wcal_logged_cart_capture_msg_callback( array $args )
Call back function for registered user cart capture message |
public
|
|
public static
|
#
wcal_from_name_callback( array $args )
Settings API callback for from name used in Abandoned cart email. |
public static
|
#
wcal_from_email_callback( array $args )
Settings API callback for from email used in Abandoned cart email. |
public static
|
#
wcal_reply_email_callback( array $args )
Settings API callback for reply email used in Abandoned cart email. |
public
|
|
public static
|
#
wcal_email_admin_recovery_for_paypal( integer $order_id, string $old, string $new_status )
Send email to admin when cart is recovered only via PayPal. |
public
|
#
wcal_email_admin_recovery( integer $order_id )
Send email to admin when cart is recovered via any other payment gateway other than PayPal. |
public static
boolean
|
#
wcal_check_order_is_recovered( integer $wcal_order_id )
For sending Recovery Email to Admin, we will check that order is recovered or not. |
public
|
|
public
|
#
wcal_store_cart_timestamp( )
Capture the cart and insert the information of the cart into DataBase. |
public
string
|
#
wcal_email_unsubscribe( string $args )
It will unsubscribe the abandoned cart, so user will not recieve further abandoned cart emails. |
public
string
|
#
wcal_email_track_links( string $template )
It will track the URL of cart link from email, and it will populate the logged-in and guest users cart. |
public
|
#
wcal_load_guest_persistent_cart( )
When customer clicks on the abandoned cart link and that cart is for the the guest users the it will load the guest user's cart detail. |
public
boolean
|
#
wcal_compare_only_guest_carts( json_encode $new_cart, json_encode $last_abandoned_cart )
It will compare only guest users cart while capturing the cart. |
public
boolean
|
#
wcal_compare_carts( integer $user_id, json_encode $last_abandoned_cart )
It will compare only loggedin users cart while capturing the cart. |
public
|
#
wcal_action_after_delivery_session( array $order )
When user places the order and reach the order recieved page, then it will check if it is abandoned cart and subsequently recovered or not. |
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
|
#
wcal_app_output_buffer( )
When we have added the wp list table for the listing then while deleting the record with the bulk action it was showing the notice. To overcome the wp redirect warning we need to start the ob_start. |
public
|
#
wcal_menu_page( )
Abandon Cart Settings Page. It will show the tabs, notices for the plugin. It will also update the template records and display the template fields. It will also show the abandoned cart details page. It will also show the details of all the tabs. |
public
string
|
|
public
array
|
#
bubble_sort_function( array $unsort_array, string $order )
It will sort the record for the product reports tab. |
public
|
#
wcal_action_send_preview( )
It will be called when we send the test email from the email edit page. |
public static
|
#
wcal_toggle_template_status( )
It will update the template satus when we change the template active status from the email template list page. |
public
string
|
Properties summary
public
|
$one_hour
|
|
public
|
$three_hours
|
|
public
|
$six_hours
|
|
public
|
$twelve_hours
|
|
public
|
$one_day
|
|
public
|
$one_week
|
|
public
array
|
$duration_range_select
|
#
array()
|
public
array
|
$start_end_dates
|
#
array()
|