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.
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. |
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. |
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. |