cocart_maybe_show_results()

Checks if the session table exists before returning results. Helps prevents any fatal errors or crashes should debug mode be enabled. Returns: boolean Returns true or false if the session table exists.

cocart_count_carts_expiring()

Counts how many carts are going to expire within the next 6 hours. Returns: int Number of carts expiring.

cocart_count_carts_active()

Counts how many carts are active. Returns: int Number of carts active.

cocart_count_carts_expired()

Counts how many carts have expired. Returns: int Number of carts expired.

cocart_carts_source_web()

Counts how many carts were created via the web. Returns: int Number of carts created via the web.

cocart_carts_source_headless()

Counts how many carts were created via CoCart API. Returns: int Number of carts created via CoCart API.

cocart_carts_source_other()

Counts how many carts were the source is other or unknown. Returns: int Number of carts created via other or unknown.

cocart_get_min_max_price_meta_query()

Get min/max price meta query args.
ParameterTypeDescription
$argsarrayMin price and max price arguments.
Returns: array