alert('No Items Found!');window.location='?page=ordernow';";
die;
}
$ptype=$_SESSION['pmode'];
if(strlen($ptype)==0){
echo "";
die;
}
$take_status=$ob->checktakeawaystatus();
if($take_status['sts']==false){
if(strpos($take_status['msg'],"other option")!==false && $_SESSION['otype']==0){
echo "";
die;
}
if(strpos($take_status['msg'],"other option")===false && $take_status['msg']!=""){
echo "";
die;
}
}
?>
getcouponbycode($_SESSION['coupon']);
else
$coupon=array();
$sandage=$ob->getsandage();
$delivery=$_SESSION['dcharge'];
$otype=$_SESSION['otype'];
$ptype=$_SESSION['pmode'];
$items=array();
if(!isset($_SESSION['user'])){
echo"";
die;
}
$i=0;
foreach($itemall as $item)
{
$items[$i]['itemid']=$item['id'];
$items[$i]['qty']=$item['qty'];
$sub=array();
$j=0;
$k=0;
foreach($item['sub'] as $subitem){
$sub[$j]['item']=$subitem['id'];
$sub[$j]['qty']=$subitem['qty'];
$sub[$j]['type']=$subitem['type'];
$sub[$j]['ext']=$subitem['ext'];
$j++;
}
$items[$i]['sub']=$sub;
$i++;
}
}
$total=Checkout::getTotal();
$dtotal=Checkout::getdiscountTotal();
$val=$ob->getonlinediscount();
if($dtotal<=$val['sgift'])
unset($_SESSION['sgift']);
else{
if(isset($_SESSION['sgift']))
$total+=number_format($_SESSION['sgift']['price']*($_SESSION['sgift']['qty']-1),2);
}
$val=$ob->getonlinediscount();
$sandage=$ob->getsandage();
$otype=$_SESSION['otype'];
$pmode=$_SESSION['pmode'];
$dtext="";
if($otype==0){
$disamount=$val['online_discount'];
$dtext="Online Delivery Discount";
if($dtotal<=$val['onlineamt'])
$disamount=0;
if($val['type1']=='%')
{
$dtext.=""."($disamount %)";
$disamount=$disamount*$dtotal/100;
}
else
$dtext.="(".$currency_symbols[$_SESSION['cur']].($_SESSION['curvalue']*$disamount).")";
if($val['dto']&&$val['dfrom']){
if($val['dfrom']>time()|| $val['dto']