Search if a product_id is into the active cart and quantity added.
It will return 0 if not added to the cart.
$Dummy = CFO_CountProductInCart(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.
... // Count if the product is added to the cart $Dummy = CFO_CountProductInCart(16);
Example for Any product
... // Count any products added to the cart $Dummy = CFO_CountProductInCart("Any");
More detailed example
Detecting products in the active cart