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_On_Placed_Order

Class WCAP_On_Placed_Order

It will delete the abandoned cart if order is placed before the cutoff time. It will also, create the post meta for the abandoned cart. It will create after the cutoff time. Also, when order status is changes it will check if abandoned cart needs to delete or keep it.

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

Methods summary

public static
# wcap_order_placed( integer $order_id )

It will delete the abandoned cart if order is placed before the cutoff time. It will also, create the post meta for the abandoned cart. It will create after the cutoff time. This post meta contain the abandoned cart id and if the email is sent to that cart then the email sent id.

It will delete the abandoned cart if order is placed before the cutoff time. It will also, create the post meta for the abandoned cart. It will create after the cutoff time. This post meta contain the abandoned cart id and if the email is sent to that cart then the email sent id.

Parameters

$order_id
string $order_id Order id

Since

5.0

Globals

mixed $wpdb

Hook

woocommerce_checkout_order_processed
public static string
# wcap_order_complete_action( string $woo_order_status, integer $order_id )

When an order status is changed we check the order status, if the status is pending or falied then we consider that cart as an abandoned. Apart from the pending and falied we delete the abandnoned cart.

When an order status is changed we check the order status, if the status is pending or falied then we consider that cart as an abandoned. Apart from the pending and falied we delete the abandnoned cart.

Parameters

$woo_order_status
New order status
$order_id
string $order_id Order id

Returns

string
$woo_order_status

Since

5.0

Globals

mixed $wpdb

Hook

woocommerce_payment_complete_order_status
public static string
# wcap_update_cart_status( string $created_via, WC_order $order )

Updates cart status to 'Abandoned - Order Unpaid' when the order is cancelled by WooCommerce once Hold Stock Limit is reached.

Updates cart status to 'Abandoned - Order Unpaid' when the order is cancelled by WooCommerce once Hold Stock Limit is reached.

Parameters

$created_via
  • From where the order has been created.
$order
  • Order Object

Returns

string
$created_via

Since

7.7

Hook

woocommerce_cancel_unpaid_order
API documentation generated by ApiGen