I need to walk through all the products in the cart to see if defined products exist. Function below works just fine with IDīs, no matter if products come with attributes or without them. It just returns products clear ID from the cart without :43fds45.... ending.
function get_products_id() {
if (!is_array ($products_id_array)) $products_id_array = array();
$products = $_SESSION['cart']->get_products();
for ($i=0; $i<sizeof($products); $i++) {
$products_id_array[] = zen_get_prid($products[$i]['id']);
}
return $products_id_array;
}
BUT!!! How do I get options_value_idīs with products IDīs if them exist in the cart?? So I need to have output with products_id and products_options_value_id (or at least products final_price) just something with to recognize products attributes.
I hope there is an easy answer for this...or actually any kind of answer!![]()
-Jarsa-.


,
