Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
12694 anikendra 1
<?php
2
 
3
$route = $this -> router -> fetch_module().'/';
4
$method = $this->router->fetch_method();
5
$data = $response['response'];
6
if(isset($data['pickup']) && !empty($data['pickup'])){
7
	$pickup = $data['pickup'];
8
	unset($data['pickup']);
9
}
10
if(isset($data['carts']) && !empty($data['carts'])){
11
	$carts = $data['carts'];
12
	unset($data['carts']);
13
}
14
if(isset($data['emi']) && !empty($data['emi'])){
15
	$emi = $data['emi'];
16
	unset($data['emi']);
17
}
18
if(isset($data) and !empty($data))
19
{
20
foreach($data as $headkey=>$value)
21
{
22
	if(isset($value['render']) and !empty($value['render']))
23
	{
24
		unset($value['render']);
25
		if(isset($value) and !empty($value)){
26
			if($method == 'shipping'){
27
				$this->load->view($route.$headkey,array($headkey=>$value,'pickup'=> $pickup,'carts'=> $carts));
28
			}
29
			elseif($method == 'payment'){
30
				$this->load->view($route.$headkey,array($headkey=>$value,'emi'=> $emi));
31
			}
32
			else{
33
				$this->load->view($route.$headkey,array($headkey=>$value));
34
			}
35
		}
36
	else
37
		$this->load->view($route.$headkey,array($headkey=>array()));
38
	}
39
	else
40
		{ 
41
			if(isset($value) and !empty($value) and count($value)>1)
42
				{ echo 'data list here';}
43
		}
44
 
45
 
46
}
47
 
48
}
49
?>
50
<!--<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>-->
51
<script src="<?=base_url().$this->config->item('current_client')?>/js/checkout.js?version=<?=$this->config->item('cdn_version');?>" type="text/javascript"></script>