[insert_php]
$res = do_shortcode(‘{"status":"Error","message":"Requested parameters are not correct."}‘);
$result = json_decode($res,true);
$out=”;
if(isset($result[‘status’]) && $result[‘status’]==’Success’)
{
$sel=”;
$opt=0;
$price=0;
$out.=’
‘; if(isset($result[‘data’][‘decennial’])) { $decennial_price = number_format($result[‘data’][‘decennial’]/120,2); $decennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $decennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘decennial_order_link’]; $opt=1; } $out.=’10 years at ‘.$decennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quinquennial’])) { $quinquennial_price = number_format($result[‘data’][‘quinquennial’]/60,2); $quinquennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quinquennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quinquennial_order_link’]; $opt=1; } $out.=’5 years at ‘.$quinquennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quadrennial’])) { $quadrennial_price = number_format($result[‘data’][‘quadrennial’]/48,2); $quadrennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quadrennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quadrennial_order_link’]; $opt=1; } $out.=’4 years at ‘.$quadrennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘triennially’])) { $triennially_price = number_format($result[‘data’][‘triennially’]/36,2); $triennially_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $triennially_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘triennially_order_link’]; $opt=1; } $out.=’3 years at ‘.$triennially_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘biennially’])) { $biennially_price = number_format($result[‘data’][‘biennially’]/24,2); $biennially_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $biennially_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘biennially_order_link’]; $opt=1; } $out.=’2 years at ‘.$biennially_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘annually’])) { $annually_price = number_format($result[‘data’][‘annually’]/12,2); $annually_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $annually_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘annually_order_link’]; $opt=1; } $out.=’1 year at ‘.$annually_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘semiannually’])) { $semiannually_price = number_format($result[‘data’][‘semiannually’]/6,2); $semiannually_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $semiannually_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘semiannually_order_link’]; $opt=1; } $out.=’6 months at ‘.$semiannually_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quarterly’])) { $quarterly_price = number_format($result[‘data’][‘quarterly’]/3,2); $quarterly_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quarterly_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quarterly_order_link’]; $opt=1; } $out.=’3 months at ‘.$quarterly_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘price’])) { $monthly_price = number_format($result[‘data’][‘price’],2); $monthly_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $monthly_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘monthly_order_link’]; $opt=1; } $out.=’1 month at ‘.$monthly_price.’/month ‘; if($opt==1) { $sel=”; } } $out.=’ ‘;
//$price = do_shortcode(‘[‘currencyDetails’])).'”]’);
}
[/insert_php]
[insert_php] unset($res); unset($result); unset($orderlink); unset($price); $res = do_shortcode(‘{"status":"Error","message":"Requested parameters are not correct."}‘); $result = json_decode($res,true); $out=”; if(isset($result[‘status’]) && $result[‘status’]==’Success’) { $sel=”; $opt=0; $price=0; $out.=’‘; if(isset($result[‘data’][‘decennial’])) { $decennial_price = number_format($result[‘data’][‘decennial’]/120,2); $decennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $decennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘decennial_order_link’]; $opt=1; } $out.=’10 years at ‘.$decennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quinquennial’])) { $quinquennial_price = number_format($result[‘data’][‘quinquennial’]/60,2); $quinquennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quinquennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quinquennial_order_link’]; $opt=1; } $out.=’5 years at ‘.$quinquennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quadrennial’])) { $quadrennial_price = number_format($result[‘data’][‘quadrennial’]/48,2); $quadrennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quadrennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quadrennial_order_link’]; $opt=1; } $out.=’4 years at ‘.$quadrennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘triennially’])) { $triennially_price = number_format($result[‘data’][‘triennially’]/36,2); $triennially_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $triennially_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘triennially_order_link’]; $opt=1; } $out.=’3 years at ‘.$triennially_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘biennially’])) { $biennially_price = number_format($result[‘data’][‘biennially’]/24,2); $biennially_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $biennially_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘biennially_order_link’]; $opt=1; } $out.=’2 years at ‘.$biennially_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘annually’])) { $annually_price = number_format($result[‘data’][‘annually’]/12,2); $annually_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $annually_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘annually_order_link’]; $opt=1; } $out.=’1 year at ‘.$annually_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘semiannually’])) { $semiannually_price = number_format($result[‘data’][‘semiannually’]/6,2); $semiannually_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $semiannually_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘semiannually_order_link’]; $opt=1; } $out.=’6 months at ‘.$semiannually_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quarterly’])) { $quarterly_price = number_format($result[‘data’][‘quarterly’]/3,2); $quarterly_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quarterly_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quarterly_order_link’]; $opt=1; } $out.=’3 months at ‘.$quarterly_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘price’])) { $monthly_price = number_format($result[‘data’][‘price’],2); $monthly_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $monthly_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘monthly_order_link’]; $opt=1; } $out.=’1 month at ‘.$monthly_price.’/month ‘; if($opt==1) { $sel=”; } } $out.=’ ‘; //$price = do_shortcode(‘[‘currencyDetails’])).'”]’); } [/insert_php]
[insert_php] $res = do_shortcode(‘{"status":"Error","message":"Requested parameters are not correct."}‘); $result = json_decode($res,true); $out=”; if(isset($result[‘status’]) && $result[‘status’]==’Success’) { $sel=”; $opt=0; $price=0; $out.=’‘; if(isset($result[‘data’][‘decennial’])) { $decennial_price = number_format($result[‘data’][‘decennial’]/120,2); $decennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $decennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘decennial_order_link’]; $opt=1; } $out.=’10 years at ‘.$decennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quinquennial’])) { $quinquennial_price = number_format($result[‘data’][‘quinquennial’]/60,2); $quinquennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quinquennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quinquennial_order_link’]; $opt=1; } $out.=’5 years at ‘.$quinquennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quadrennial’])) { $quadrennial_price = number_format($result[‘data’][‘quadrennial’]/48,2); $quadrennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quadrennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quadrennial_order_link’]; $opt=1; } $out.=’4 years at ‘.$quadrennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘triennially’])) { $triennially_price = number_format($result[‘data’][‘triennially’]/36,2); $triennially_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $triennially_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘triennially_order_link’]; $opt=1; } $out.=’3 years at ‘.$triennially_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘biennially’])) { $biennially_price = number_format($result[‘data’][‘biennially’]/24,2); $biennially_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $biennially_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘biennially_order_link’]; $opt=1; } $out.=’2 years at ‘.$biennially_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘annually’])) { $annually_price = number_format($result[‘data’][‘annually’]/12,2); $annually_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $annually_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘annually_order_link’]; $opt=1; } $out.=’1 year at ‘.$annually_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘semiannually’])) { $semiannually_price = number_format($result[‘data’][‘semiannually’]/6,2); $semiannually_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $semiannually_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘semiannually_order_link’]; $opt=1; } $out.=’6 months at ‘.$semiannually_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quarterly’])) { $quarterly_price = number_format($result[‘data’][‘quarterly’]/3,2); $quarterly_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quarterly_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quarterly_order_link’]; $opt=1; } $out.=’3 months at ‘.$quarterly_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘price’])) { $monthly_price = number_format($result[‘data’][‘price’],2); $monthly_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $monthly_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘monthly_order_link’]; $opt=1; } $out.=’1 month at ‘.$monthly_price.’/month ‘; if($opt==1) { $sel=”; } } $out.=’ ‘; //$price = do_shortcode(‘[‘currencyDetails’])).'”]’); } [/insert_php]
[insert_php] unset($res); unset($result); unset($orderlink); unset($price); $res = do_shortcode(‘{"status":"Error","message":"Requested parameters are not correct."}‘); $result = json_decode($res,true); $out=”; if(isset($result[‘status’]) && $result[‘status’]==’Success’) { $sel=”; $opt=0; $price=0; $out.=’‘; if(isset($result[‘data’][‘decennial’])) { $decennial_price = number_format($result[‘data’][‘decennial’]/120,2); $decennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $decennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘decennial_order_link’]; $opt=1; } $out.=’10 years at ‘.$decennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quinquennial’])) { $quinquennial_price = number_format($result[‘data’][‘quinquennial’]/60,2); $quinquennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quinquennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quinquennial_order_link’]; $opt=1; } $out.=’5 years at ‘.$quinquennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quadrennial’])) { $quadrennial_price = number_format($result[‘data’][‘quadrennial’]/48,2); $quadrennial_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quadrennial_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quadrennial_order_link’]; $opt=1; } $out.=’4 years at ‘.$quadrennial_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘triennially’])) { $triennially_price = number_format($result[‘data’][‘triennially’]/36,2); $triennially_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $triennially_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘triennially_order_link’]; $opt=1; } $out.=’3 years at ‘.$triennially_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘biennially’])) { $biennially_price = number_format($result[‘data’][‘biennially’]/24,2); $biennially_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $biennially_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘biennially_order_link’]; $opt=1; } $out.=’2 years at ‘.$biennially_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘annually’])) { $annually_price = number_format($result[‘data’][‘annually’]/12,2); $annually_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $annually_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘annually_order_link’]; $opt=1; } $out.=’1 year at ‘.$annually_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘semiannually’])) { $semiannually_price = number_format($result[‘data’][‘semiannually’]/6,2); $semiannually_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $semiannually_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘semiannually_order_link’]; $opt=1; } $out.=’6 months at ‘.$semiannually_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘quarterly’])) { $quarterly_price = number_format($result[‘data’][‘quarterly’]/3,2); $quarterly_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $quarterly_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘quarterly_order_link’]; $opt=1; } $out.=’3 months at ‘.$quarterly_price.’/month ‘; if($opt==1) { $sel=”; } } if(isset($result[‘data’][‘price’])) { $monthly_price = number_format($result[‘data’][‘price’],2); $monthly_price = do_shortcode(‘[‘currencyDetails’])).'”]’); if($sel==” && $opt==0) { $price = $monthly_price; $sel=’selected=”selected”‘; $orderlink = $result[‘data’][‘monthly_order_link’]; $opt=1; } $out.=’1 month at ‘.$monthly_price.’/month ‘; if($opt==1) { $sel=”; } } $out.=’ ‘; //$price = do_shortcode(‘[‘currencyDetails’])).'”]’); } [/insert_php]