Search if a product_id is into the active cart and returns true or false.

Syntax

$Dummy = CFO_CheckProductInCart(product_id);

product_id: It’s the id number of the product to search for. You can see that id in the URL of any product.
“Any”: Using the string “Any” as parameter will search for any product.

Example

...
// Check if the product is added to the cart
$Dummy = CFO_CheckProductInCart(16);

Example for Any product

...
// Check if any products are added to the cart
$Dummy = CFO_CheckProductInCart("Any");