| Line 107... |
Line 107... |
| 107 |
}
|
107 |
}
|
| 108 |
$addressId = $this->session->userdata('addressId');
|
108 |
$addressId = $this->session->userdata('addressId');
|
| 109 |
$_GET['addressid'] = $addressId;
|
109 |
$_GET['addressid'] = $addressId;
|
| 110 |
$this->lessphp->object()->ccompile('assets/css/shipping.less','assets/css/shipping.css');
|
110 |
$this->lessphp->object()->ccompile('assets/css/shipping.less','assets/css/shipping.css');
|
| 111 |
$data['stylesheet'] = 'shipping.css';
|
111 |
$data['stylesheet'] = 'shipping.css';
|
| - |
|
112 |
$data['title'] = 'Saholic';
|
| 112 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),'',$paymentconfig);
|
113 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),'',$paymentconfig);
|
| 113 |
if(isset($data['response']['response']['payment_process'])){
|
114 |
if(isset($data['response']['response']['payment_process'])){
|
| 114 |
$result = json_decode($data['response']['response']['payment_process'][0]);
|
115 |
$result = json_decode($data['response']['response']['payment_process'][0]);
|
| 115 |
$totalAmount = $result->results->totalAmount;
|
116 |
$totalAmount = $result->results->totalAmount;
|
| 116 |
if(isset($result->results->isTotalAmountZero)){
|
117 |
if(isset($result->results->isTotalAmountZero)){
|
| Line 470... |
Line 471... |
| 470 |
$_GET['isLoggedIn'] = 'false';
|
471 |
$_GET['isLoggedIn'] = 'false';
|
| 471 |
}
|
472 |
}
|
| 472 |
}
|
473 |
}
|
| 473 |
$this->lessphp->object()->ccompile('assets/css/shipping.less','assets/css/shipping.css');
|
474 |
$this->lessphp->object()->ccompile('assets/css/shipping.less','assets/css/shipping.css');
|
| 474 |
$data['stylesheet'] = 'shipping.css';
|
475 |
$data['stylesheet'] = 'shipping.css';
|
| - |
|
476 |
$data['title'] = 'Saholic';
|
| 475 |
$cache = getFileCache('pickup');
|
477 |
$cache = getFileCache('pickup');
|
| 476 |
if(isset($cache) && !empty($cache)){
|
478 |
if(isset($cache) && !empty($cache)){
|
| 477 |
unset($shippingconfig['response'][1]);
|
479 |
unset($shippingconfig['response'][1]);
|
| 478 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$shippingconfig);
|
480 |
$data['response']=$this->checkout_model->getCheckoutDetails($this->input->get(),$this->input->post(),$shippingconfig);
|
| 479 |
$data['response']['response']['pickup'] = $cache;
|
481 |
$data['response']['response']['pickup'] = $cache;
|