Extend support for CoCart with these useful functions in your projects
cocart_maybe_show_results()
boolean Returns true or false if the session table exists.
includes/cocart-core-functions.php
cocart_count_carts_expiring()
int Number of carts expiring.
includes/cocart-core-functions.php
cocart_count_carts_active()
int Number of carts active.
includes/cocart-core-functions.php
cocart_count_carts_expired()
int Number of carts expired.
includes/cocart-core-functions.php
cocart_carts_source_web()
int Number of carts created via the web.
includes/cocart-core-functions.php
cocart_carts_source_headless()
int Number of carts created via CoCart API.
includes/cocart-core-functions.php
cocart_carts_source_other()
int Number of carts created via other or unknown.
includes/cocart-core-functions.php
cocart_get_min_max_price_meta_query()
Parameter | Type | Description |
---|---|---|
$args | array | Min price and max price arguments. |
array
includes/cocart-rest-functions.php