| Line 28... |
Line 28... |
| 28 |
$dataGiven = json_decode($this->request->data['cart_details']);
|
28 |
$dataGiven = json_decode($this->request->data['cart_details']);
|
| 29 |
if ($this->request->is('post')) {
|
29 |
if ($this->request->is('post')) {
|
| 30 |
$data = $this->request->data;
|
30 |
$data = $this->request->data;
|
| 31 |
}
|
31 |
}
|
| 32 |
$totalPayable = intval($dataGiven->totalCartValue) + intval($dataGiven->shippingCharges);
|
32 |
$totalPayable = intval($dataGiven->totalCartValue) + intval($dataGiven->shippingCharges);
|
| - |
|
33 |
$this->Session->write('totalPayable', $totalPayable);
|
| 33 |
$this->layout = 'innerpages';
|
34 |
$this->layout = 'innerpages';
|
| 34 |
$suserId = base64_decode($_COOKIE['s_id']);
|
35 |
$suserId = base64_decode($_COOKIE['s_id']);
|
| 35 |
$url = Configure::read('saholicapihost').'address?isLoggedIn=true&privateDealUser=true&userId='.$suserId;
|
36 |
$url = Configure::read('saholicapihost').'address?isLoggedIn=true&privateDealUser=true&userId='.$suserId;
|
| 36 |
$response = $this->make_request($url,null);
|
37 |
$response = $this->make_request($url,null);
|
| 37 |
//debug($response);
|
38 |
//debug($response);
|