You could get all the products_id values in an array with this:
Code:
// bof: check my category
$chk_parent = 3;
$check_parent_products = zen_get_categories_products_list($chk_parent);
echo '<pre>'; echo print_r($check_parent_products); echo '</pre>';
echo 'chk_parent: ' . $chk_parent . ' sizeof($check_parent_products): ' . sizeof($check_parent_products) . '<br>';
// eof: check my category
where you can set the category's parent_id to $chk_parent ...
Once you have that array of products_id values, you can check the products in the cart to see if they match any of those ...
Bookmarks