Subversion Repositories SmartDukaan

Rev

Rev 10582 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

$route = $this -> router -> fetch_module().'/';
$method = $this->router->fetch_method();
$data = $response['response'];
if(isset($data['pickup']) && !empty($data['pickup'])){
        $pickup = $data['pickup'];
        unset($data['pickup']);
}
if(isset($data['carts']) && !empty($data['carts'])){
        $carts = $data['carts'];
        unset($data['carts']);
}
if(isset($data['emi']) && !empty($data['emi'])){
        $emi = $data['emi'];
        unset($data['emi']);
}
if(isset($data) and !empty($data))
{
foreach($data as $headkey=>$value)
{
        if(isset($value['render']) and !empty($value['render']))
        {
                unset($value['render']);
                if(isset($value) and !empty($value)){
                        if($method == 'shipping'){
                                $this->load->view($route.$headkey,array($headkey=>$value,'pickup'=> $pickup,'carts'=> $carts));
                        }
                        elseif($method == 'payment'){
                                $this->load->view($route.$headkey,array($headkey=>$value,'emi'=> $emi));
                        }
                        else{
                                $this->load->view($route.$headkey,array($headkey=>$value));
                        }
                }
        else
                $this->load->view($route.$headkey,array($headkey=>array()));
        }
        else
                { 
                        if(isset($value) and !empty($value) and count($value)>1)
                                { 
                                        //echo 'data list here';
                                }
                }

        
}

}
?>
<!--<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>-->
<script src="<?=base_url().$this->config->item('current_client')?>/js/checkout.js?version=<?=$this->config->item('cdn_version');?>" type="text/javascript"></script>