Code to check

function exfood_woo_cart_icon_html(){ global $cart_icon; if(!isset($cart_icon) || $cart_icon!=’on’){ $cart_icon = ‘on’; }else if($cart_icon ==’on’){ return; } if(is_admin() || exfood_get_option(‘exfood_booking’) ==’woo’ && !function_exists(‘wc_get_cart_url’)){ return;} $count = 0; if(!empty($_SESSION[‘ex_userfood’])){ foreach ($_SESSION[‘ex_userfood’] as $key => $value) { if( is_numeric($value[‘food_id’]) && get_post_type($value[‘food_id’])==’ex_food’ && get_post_status($value[‘food_id’])==’publish’){ $count ++; } } } ?>
×