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

Packages

  • Abandoned-Cart-Pro-for-WooCommerce
    • Admin
      • Action
      • Activate-plugin
      • Component
      • I18N
      • Import-Pro
      • License
      • Menu
      • Notices
      • Popup-Modal
        • Cart-Detail
      • Recover
      • Report
      • Setting
      • Settings
      • SMS
      • Tab
      • Template
    • Ajax-Functions
    • Classes
    • Common-Functions
    • Database-Layer
    • Encrypt-Decrypt-Data
    • Frontend
      • Cart-Capture
      • Cart-Populate
      • Coupon
      • Place-Order
    • Setting
    • Update
  • None

Classes

  • Wcap_Populate_Cart_Of_User

Class Wcap_Populate_Cart_Of_User

It will decrypt url and redirect the customer to cart or checkpout page. Also it will also handle the email open and unsubscribe data. Also, if the url contain the email address then it will store email in the session

Package: Abandoned-Cart-Pro-for-WooCommerce\Frontend\Cart-Populate
Author: Tyche Softwares
Located at includes/frontend/wcap_populate_cart_of_user.php

Methods summary

public static string
# wcap_email_track_links( string $template )

It will decrypt url and redirect the customer to cart or checkpout page.

It will decrypt url and redirect the customer to cart or checkpout page.

Parameters

$template
The path of the template to include.

Returns

string
$template The path of the template to include.

Since

5.0

Globals

mixed $wpdb
mixed $woocommerce

Hook

template_include
public static
# wcap_load_guest_persistent_cart( )

It will populate the guest users cart in the WooComerce session.

It will populate the guest users cart in the WooComerce session.

Since

5.0

Globals

mixed $wpdb
mixed $woocommerce
public static string
# wcap_email_track_open_and_unsubscribe( string $args )

It will handle the email open and unsubscribe the user from the cart.

It will handle the email open and unsubscribe the user from the cart.

Parameters

$args
$template The path of the template to include.

Returns

string
$template The path of the template to include.

Since

5.0

Globals

mixed $wpdb
mixed $woocommerce

Hook

template_include
public static string
# wcap_if_email_address_exists( string $template )

If the url contain the email address then it will store email in the session.

If the url contain the email address then it will store email in the session.

Parameters

$template
The path of the template to include.

Returns

string
$template The path of the template to include.

Since

5.0

Globals

mixed $wpdb
mixed $woocommerce

Hook

template_include
public static string
# wcap_shortcode_redirects( string $template )

Redirects to the long url when the site is accessed using short links

Redirects to the long url when the site is accessed using short links

Parameters

$template
  • Template to use

Returns

string
$template - Template to use

Since

7.9

Hook

template_include
public static string
# wcap_sms_redirects( string $template )

Loads user cart and logs in the user (for registered users) after completing all the checks. This function is used for links accessed via SMS

Loads user cart and logs in the user (for registered users) after completing all the checks. This function is used for links accessed via SMS

Parameters

$template
  • Template to use

Returns

string
$template - Template to use

Since

7.9

Todo

  • Can be used for future cart recovery mediums as well

Hook

template_include
public static string
# wcap_decode_validate_link( string $validate_link )

Decodes the validated link sent in recovery mediums

Decodes the validated link sent in recovery mediums

Parameters

$validate_link
  • Link to decode

Returns

string
$link_decode - Decoded link

Since

7.9
public static string
# wcap_decode_coupon_code( string $encrypt_coupon )

Decodes encrypted coupon codes sent

Decodes encrypted coupon codes sent

Parameters

$encrypt_coupon
  • Encrypted Coupon code

Returns

string
$decode_coupon_code - Decoded Coupon Code

Since

7.9
public static integer
# get_ac_id( integer $url_id, string $table_name )

Returns abandoned cart ID. The cart ID is retrieved from the table name passed.

Returns abandoned cart ID. The cart ID is retrieved from the table name passed.

Parameters

$url_id
  • ID of the record for which cart needs to be fetched
$table_name
  • Table from which data should be accessed.

Returns

integer
$cart_id - Abandoned Cart ID

Since

7.9
public static
# redirect_to_shop( )

Redirects to the Shop page. Currently used when links sent in emails/SMS.

Redirects to the Shop page. Currently used when links sent in emails/SMS.

Since

7.9
public static
# setup_user_language( integer $user_id )

Sets up cart language in session. Called when WPML is active.

Sets up cart language in session. Called when WPML is active.

Parameters

$user_id
  • User ID

Since

7.9
public static
# login_registered_user( integer $user_id )

Logs in the user.

Logs in the user.

Parameters

$user_id
  • User ID

Since

7.9
API documentation generated by ApiGen