$value ){ foreach($value as $single){ $idsSelected[]=$single["META_WP_ID"]; if($single["permanent"]){ $permanentAcc[]=$single["META_WP_ID"]; } } } } /* $accessories_cookier=$_COOKIE['iper_accessories_cart']; if($accessories_cookier) { $accessories_cookier = json_decode(stripslashes($accessories_cookier)); if(!empty($accessories_cookier)) { $idsSelected = array_map(function ($a) { return $a->ID; }, $accessories_cookier); } } */ /* setCookie('iper_accessories_cart', '', time() + (3600), "/");*/ iper_hook_css(); get_header(); /*for($i=0; $i -1, 'orderby' => 'date', 'order' => 'ASC', 'post_type' => 'accessory' ); $posts_array = get_posts( $args );*/ include_once('nav_bar.php'); /*$wp_sel_plan = get_post($sel_plan); $wp_sel_plan_title = get_the_title($wp_sel_plan);*/ //chiamata database $accessory_group_list_call = $wpdb->prepare("CALL IPER_MA_ACCESSORY_GROUP_LIST(%d)", $rateplanID); $groups_accessories = callDBStored($accessory_group_list_call); /*if($wp_sel_plan_title == 'Annually'){ $time = '/yr'; $total_annual = $plan_price; } if($wp_sel_plan_title == 'Monthly'){ $total_annual = $plan_price*12; $time = '/mo'; } if($wp_sel_plan_title == 'Quarterly'){ $total_annual = $plan_price*4; $time = '/4 mo'; } if($wp_sel_plan_title == 'Semi-Annually'){ $total_annual = ($plan_price)*2; $time = '/6 mo'; }*/ ?>
3 Select Accessories
idACCESSORY_GROUP; $is_free = $group_accessories->IncludedWithOrder; $accessory_single_selection = $group_accessories->LimitRestriction; /*echo $is_free.$accessory_single_selection;*/ $permanent_='0'; if($is_free=='1' && $accessory_single_selection=='0'){ $permanent_='1'; } ?>

prepare("CALL IPER_MA_ACCESSORY_LIST(%d, %d)", $rateplanID, $group_ID); $accessories = callDBStored($accessory_list_call); ?> META_WP_ID; $accessory_wp_post = get_post($accessory_wp_id); if($is_free=='0' && $accessory->Price){$accessory_price = $accessory->Price;}else{$accessory_price = '';}//verifico se l'accessorio รจ incluso nel rateplan o no $feat_image = wp_get_attachment_url(get_post_thumbnail_id($accessory_wp_post->ID)); $accessory_wp_post->price = $accessory_price; ?>