]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
Upload FileeE
HOME
<?php session_start(); include_once('admin/include/shiprocket.php'); $sel_obj = new config(); $ship_obj= new shiprocket_config(); // $get_ship = $ship_obj->check_service(); // $get_ship = $ship_obj->check_service($pickup_postcode='', $delivery_postcode='', $weight='', $declared_value=''); // echo "<pre>"; print_r($get_ship); if (isset($_POST['pincode'])) { $days_array = array(); $pincode = $sel_obj->validation($_POST['pincode']); $where_pin = "`pincode`=" . "'$pincode'"; $all_count_pincode = $sel_obj->all_count_row('all_pincode', $where_pin); if ($all_count_pincode == 1) { $msg = '<p class="text-success font-weight-bold"> Item delivery available at '.$pincode.'</p>'; $get_ship = $ship_obj->check_service($_POST['pincode']); $estimated_delivery_days = $get_ship[0]->estimated_delivery_days; if ($estimated_delivery_days<4) { $count_days = 4; }else{ $count_days = $estimated_delivery_days; } // echo "<pre>"; print_r($get_ship); $todaydate = date("Y-m-d"); $deliver_at = strtotime($todaydate. "+".$count_days." day"); $delivery_by = date("d M, l", $deliver_at); $days_array = array( 'msg' => $msg, 'delivery_by' => $delivery_by, ); } else { $msg = '<p class="text-danger">We are not available at this ('.$pincode.') location.<br> Please try another Pincode.</p>'; $todaydate = date("Y-m-d"); $deliver_at = strtotime($todaydate. "+4 day"); $delivery_by = date("d M, l", $deliver_at); $days_array = array( 'msg' => $msg, 'delivery_by' => $delivery_by, ); } echo json_encode($days_array); } ?>