<div id="main_borders">
  <div id="main_inner_borders">
    <h2><strong>
      <?=$title?>
      </strong></h2>
    <? if ($this-> session-> flashdata('message')): ?>
    <div class='warning'>
      <?=$this-> session-> flashdata('message');?>
    </div>
    <? endif; ?>
    <? if ($orderdata) { ?>
    <div>
      <h4>
        <?=$this->lang->line('verify_order_details')?>
      </h4>
<div id="cart_tbl">
      <table class="full" border="0">
        <tr>
          <th><?=$this->lang->line('cart_qty')?></th>
          <th><?=$this->lang->line('cart_desc')?></th>
          <th><?=$this->lang->line('cart_price')?></th>
          <th><?=$this->lang->line('cart_sub')?></th>
        </tr>
        <?		$order_details = $this->MFuncs->GetOrderDetails($orderdata['id']);
		if ($order_details) {
		$total = 0;
		$weight = 0;
		$bot_num = 0;
		$pack_total = 0;
		$ship_total = 0;
    	foreach($order_details as $result=>$order_det):
        $product_details = $this->MFuncs->getProductDetails($order_det['product_id']); 
        $product_category = $this->MFuncs->getProductCat($order_det['product_id']); ?>
        <tr>
          <td><?=$order_det['quantity']?></td>
          <td><?=$product_details['name']?></td>
          <td><?=$order_det['price']?></td>
          <td>&euro;
            <?=$order_det['price']*$order_det['quantity']?></td>
          <? $total = $total + $order_det['price']*$order_det['quantity']; ?>
          <? $weight = $weight + ($product_details['weight'] * $order_det['quantity']); ?>
          <? if ($product_category['cat_id']!='7') { ?>
          <? $bot_num = $bot_num + $order_det['quantity']; 
		  } ?>
       </tr>
        <? endforeach ?>
        <? $pay_on_arrival_cost=0; ?>
        <? $can_ship=true; ?>
        <tr>
          <td colspan="2"></td>
          <td><strong>
            <?=$this->lang->line('cart_total')?>
            </strong></td>
  <td>&euro;<?=number_format($total, 2, '.', '')?></td>
</tr>
<? if ($orderdata['offer_code']!=0) { ?>
 <tr>
 <td colspan='2'> </td>
 <td><strong><?=$this->lang->line('cart_discount')?></strong></td>
 <td>&euro; <?=number_format($total*$orderdata['offer_code'], 2, '.', '')?></td>
 </tr>
 <? $total = $total - ($total*$orderdata['offer_code']); ?>
 <tr>
 <td colspan='2'> </td>
 <td><strong><?=$this->lang->line('cart_total')?></strong></td>
 <td>&euro; <?=number_format($total, 2, '.', '')?></td>
 </tr>
 <? } ?>
        <? if ($orderdata['same_address']=='No') { ?>
 			<? $c_id = $orderdata['country_id']; ?>
        <? } elseif ($orderdata['same_address']=='Yes') { ?>
            <? $c_id = $userdata['country_id']; ?>
        <? } ?>
       <? if ($c_id!='1') { ?>
       <? if ($orderdata['ship_method']=='courier_economy') { ?>
       <? 	//$rounded_weight = round($weight/1000, 2);
	   		$rounded_weight = ceil($weight/1000);
			$insurance_cost = $rounded_weight*0.05;
			if ($insurance_cost>10) { $insurance_cost=10; }
			$country_zone = $this->MFuncs->getCountryZone($c_id);
			$value = $this->MFuncs->getTNT_Cost_economy($rounded_weight, $country_zone['tnt_zones']);
			$ship_total = ($value['price']*0.205) + $value['price'];
			//if (($country_zone['zones']=='F') || ($country_zone['zones']=='FCY') || ($country_zone['zones']=='M')) {
			$ship_total = ($ship_total*0.23) + $ship_total;
			//}
			$ship_total = $insurance_cost + $ship_total;
			$ship_total = number_format($ship_total, 2, '.', ''); ?>
        <? } elseif ($orderdata['ship_method']=='courier_express') { ?>
       <? 	//$rounded_weight = round($weight/1000, 2);
	   		$rounded_weight = ceil($weight/1000);
			$insurance_cost = $rounded_weight*0.05;
			if ($insurance_cost>10) { $insurance_cost=10; }
			$country_zone = $this->MFuncs->getCountryZone($c_id);
			if ($rounded_weight<=30) {
			$value = $this->MFuncs->getTNT_Cost_express($rounded_weight, $country_zone['tnt_zones_express']);
			$total_ship_cost = $value['price'];
			} else {
			$value = $this->MFuncs->getTNT_Cost_express(30, $country_zone['tnt_zones_express']);
			$extra_cost_pk = $this->MFuncs->getTNT_extra_Cost($country_zone['tnt_zones_express']);
			$extra_ship_cost = (($rounded_weight-30) * $extra_cost_pk['price']);
			$total_ship_cost = $extra_ship_cost + $value['price'];
			}
			$ship_total = ($total_ship_cost*0.205) + $total_ship_cost;
			//if (($country_zone['zones']=='F') || ($country_zone['zones']=='FCY') || ($country_zone['zones']=='M')) {
			$ship_total = ($ship_total*0.23) + $ship_total;
			//}
			$ship_total = $insurance_cost + $ship_total;
			$ship_total = number_format($ship_total, 2, '.', ''); ?>
        <? }?>
        <tr>
          <td colspan="2"></td>
          <td><strong>
            <?=$this->lang->line('ship_total')?>
            </strong></td>
          <td>&euro;
            <?=$ship_total?></td>
        </tr>
        <tr>
          <td colspan="2"></td>
          <td><strong>
            <?=$this->lang->line('gen_total')?>
            </strong></td>
          <td>&euro;
            <?=$gen_total = $ship_total + $total?></td>
        </tr>
        <? } else { ?>
		<? if (($orderdata['ship_method']=='courier') || ($orderdata['ship_method']=='elta') ){
		   $pack_total = (ceil($bot_num/2))*0.53;
           if ($orderdata['ship_dest']=='attica-center') {
			   if ($weight < 20000) {
			   //$ship_total = number_format(3.45 + $pack_total, 2, '.', ''); 
			   $ship_total = number_format(0, 2, '.', '');
			   } elseif ($weight < 50000) {
			   $ship_total = number_format(2.90, 2, '.', '');
			   } else {
			   $ship_total = number_format(4.96, 2, '.', '');
			   }
		   } elseif ($orderdata['ship_dest']=='attica-suberbs') {
			   if ($weight < 20000) {
			   //$ship_total = number_format(3.45 + $pack_total, 2, '.', ''); 
			   $ship_total = number_format(3.90, 2, '.', '');
			   } elseif ($weight < 50000) {
			   $ship_total = number_format(6.90, 2, '.', '');
			   } else {
			   $ship_total = number_format(9.90, 2, '.', '');
			   }
		   } elseif ($orderdata['ship_dest']=='attica-suberbs-out') {
			   if ($weight < 20000) {
			   //$ship_total = number_format(3.45 + $pack_total, 2, '.', ''); 
			   $ship_total = number_format(5.90, 2, '.', '');
			   } elseif ($weight < 50000) {
			   $ship_total = number_format(9.90, 2, '.', '');
			   } else {
			   $ship_total = number_format(13.90, 2, '.', '');
			   }
		   } elseif ($orderdata['ship_dest']=='attica-rest') {
			   if ($weight < 20000) {
			   //$ship_total = number_format(3.45 + $pack_total, 2, '.', ''); 
			   $ship_total = number_format(2.90, 2, '.', '');
			   } elseif ($weight < 50000) {
			   $ship_total = number_format(4.96, 2, '.', '');
			   } else {
			   $ship_total = number_format(6.90, 2, '.', '');
			   }
		   } elseif ($orderdata['ship_dest']=='attica-peir') {
			   if ($weight < 20000) {
			   //$ship_total = number_format(3.45 + $pack_total, 2, '.', ''); 
			   $ship_total = number_format(3.90, 2, '.', '');
			   } elseif ($weight < 50000) {
			   $ship_total = number_format(6.90, 2, '.', '');
			   } else {
			   $ship_total = number_format(9.90, 2, '.', '');
			   }
		   } elseif ($orderdata['ship_dest']=='attica-peir-out') {
			   if ($weight < 20000) {
			   //$ship_total = number_format(3.45 + $pack_total, 2, '.', ''); 
			   $ship_total = number_format(5.90, 2, '.', '');
			   } elseif ($weight < 50000) {
			   $ship_total = number_format(9.90, 2, '.', '');
			   } else {
			   $ship_total = number_format(13.90, 2, '.', '');
			   }
/////
//			   if ($weight == 0) { 
//			   $ship_total = number_format(0, 2, '.', '');
//			   } 
//			   elseif ($weight < 3000) {
//			   //$ship_total = number_format(3.45 + $pack_total, 2, '.', ''); 
//			   $ship_total = number_format(3.57, 2, '.', '');
//			   } else {
//			   //$ship_total = 3.45 + $pack_total;
//			   $ship_total = 3.57;
//			   $weight = $weight - 3000;
//			   $i = ceil($weight/1000);
//			   $ship_total = number_format($ship_total + ($i*1.00), 2, '.', '');
//			   }

		   } elseif ($orderdata['ship_dest']=='attica') { ?>
            <? $i = ceil($weight/1000); ?>
			<? if ($orderdata['ship_method']=='courier') { ?>
            <? if ($i>35) { ?>
            <? $can_ship=false; ?>
            <? } else { ?>
            <? $can_ship=true; ?>
            <? } ?>
            <? $value_ship = $this->MFuncs->getCourierCost($i, 'courier_attica_cost'); ?>
            <? if ($value_ship) { ?>
            <? $ship_total = number_format($value_ship['price'], 2, '.', ''); ?>
			<? } else { ?>
            <? $ship_total = number_format(0, 2, '.', ''); ?>
            <? } ?>
            <? } elseif ($orderdata['ship_method']=='elta') { ?>
            <? if ($i>20) { ?>
            <? $value_ship = $this->MFuncs->getCourierCost(20, 'elta_attica_cost'); ?>
			<? $remaining_weight = $i - 20; ?>
            <? if ($value_ship) { ?>
            <? $ship_total = number_format($value_ship['price'] + ($remaining_weight*0.60), 2, '.', ''); ?>
			<? } else { ?>
            <? $ship_total = number_format(0, 2, '.', ''); ?>
            <? } ?>
            <? } else { ?>
            <? $value_ship = $this->MFuncs->getCourierCost($i, 'elta_attica_cost'); ?>
            <? if ($value_ship) { ?>
            <? $ship_total = number_format($value_ship['price'], 2, '.', ''); ?>
			<? } else { ?>
            <? $ship_total = number_format(0, 2, '.', ''); ?>
            <? } ?>
            <? } ?>
            
            <? } ?>
	   
		  <? } elseif ($orderdata['ship_dest']=='greece') { ?>
            <? $i = ceil($weight/1000); ?>
			<? if ($orderdata['ship_method']=='courier') { ?>
            <? if ($i>35) { ?>
            <? $can_ship=false; ?>
            <? } else { ?>
            <? $can_ship=true; ?>
            <? } ?>
            <? $value_ship = $this->MFuncs->getCourierCost($i, 'courier_greece_cost'); ?>
            <? if ($value_ship) { ?>
            <? $ship_total = number_format($value_ship['price'], 2, '.', ''); ?>
			<? } else { ?>
            <? $ship_total = number_format(0, 2, '.', ''); ?>
            <? } ?>
            <? } elseif ($orderdata['ship_method']=='elta') { ?>
            <? if ($i>20) { ?>
            <? $value_ship = $this->MFuncs->getCourierCost(20, 'elta_greece_cost'); ?>
			<? $remaining_weight = $i - 20; ?>
            <? if ($value_ship) { ?>
            <? $ship_total = number_format($value_ship['price'] + ($remaining_weight*0.60), 2, '.', ''); ?>
			<? } else { ?>
            <? $ship_total = number_format(0, 2, '.', ''); ?>
            <? } ?>
            <? } else { ?>
            <? $value_ship = $this->MFuncs->getCourierCost($i, 'elta_greece_cost'); ?>
            <? if ($value_ship) { ?>
            <? $ship_total = number_format($value_ship['price'], 2, '.', ''); ?>
			<? } else { ?>
            <? $ship_total = number_format(0, 2, '.', ''); ?>
            <? } ?>
            <? } ?>
            
            <? } ?>
 		  <? } elseif ($orderdata['ship_dest']=='crete') { ?>
            <? $i = ceil($weight/1000); ?>
			<? if ($orderdata['ship_method']=='courier') { ?>
            <? if ($i>35) { ?>
            <? $can_ship=false; ?>
            <? } else { ?>
            <? $can_ship=true; ?>
            <? } ?>
            <? $value_ship = $this->MFuncs->getCourierCost($i, 'courier_crete_cost'); ?>
            <? if ($value_ship) { ?>
            <? $ship_total = number_format($value_ship['price'], 2, '.', ''); ?>
			<? } else { ?>
            <? $ship_total = number_format(0, 2, '.', ''); ?>
            <? } ?>
            <? } elseif ($orderdata['ship_method']=='elta') { ?>
            <? if ($i>20) { ?>
            <? $value_ship = $this->MFuncs->getCourierCost(20, 'elta_crete_cost'); ?>
			<? $remaining_weight = $i - 20; ?>
            <? if ($value_ship) { ?>
            <? $ship_total = number_format($value_ship['price'] + ($remaining_weight*0.60), 2, '.', ''); ?>
			<? } else { ?>
            <? $ship_total = number_format(0, 2, '.', ''); ?>
            <? } ?>
            <? } else { ?>
            <? $value_ship = $this->MFuncs->getCourierCost($i, 'elta_crete_cost'); ?>
            <? if ($value_ship) { ?>
            <? $ship_total = number_format($value_ship['price'], 2, '.', ''); ?>
			<? } else { ?>
            <? $ship_total = number_format(0, 2, '.', ''); ?>
            <? } ?>
            <? } ?>
            
            <? } ?>
         
          
          <? } ?>
         <? if ($can_ship==false) { ?>
        <tr>
          <td colspan="1"></td>
          <td colspan="3"><strong>
            <?=$this->lang->line('cannot_ship_txt')?>
            </strong></td>
        </tr>
        <?=$ship_total=0;?>
         <? } else { ?>
        <tr>
          <td colspan="2"></td>
          <td><strong>
            <?=$this->lang->line('ship_total')?>
            </strong></td>
          <td>&euro;
            <?=$ship_total?></td>
        </tr>
        <? } ?>
 <? if (($orderdata['ship_dest']=='attica') || ($orderdata['ship_dest']=='greece') || ($orderdata['ship_dest']=='crete')) { ?>
	 <? if ($orderdata['pay_method']=='Cash') { ?>
		 <? if ($orderdata['ship_method']=='elta') { ?>
        <tr>
          <td colspan="2"></td>
          <td><strong>
            <?=$this->lang->line('cash_on_delivery_total')?>
            </strong></td>
          <td>&euro;
            <?=$pay_on_arrival_cost = number_format(2.30, 2, '.', '');?></td>
        </tr>
         <? } elseif ($orderdata['ship_method']=='courier') { ?>
        <tr>
          <td colspan="2"></td>
          <td><strong>
            <?=$this->lang->line('cash_on_delivery_total')?>
            </strong></td>
          <td>&euro;
            <?=$pay_on_arrival_cost = number_format(5.17, 2, '.', '');?></td>
        </tr>
         <? } ?>
     <? } ?>       
 <? } ?>       
        <tr>
          <td colspan="2"></td>
          <td><strong>
            <?=$this->lang->line('gen_total')?>
            </strong></td>
          <td>&euro;
            <?=$gen_total = $ship_total + $total + $pay_on_arrival_cost?></td>
        </tr>
        <? } elseif ($orderdata['ship_method']=='day_delivery') {
        			   $ship_total = number_format(14.76, 2, '.', ''); ?>
        <tr>
          <td colspan="2"></td>
          <td><strong>
            <?=$this->lang->line('ship_total')?>
            </strong></td>
          <td>&euro;
            <?=$ship_total?></td>
        </tr>
        <tr>
          <td colspan="2"></td>
          <td><strong>
            <?=$this->lang->line('gen_total')?>
            </strong></td>
          <td>&euro;
            <?=$gen_total = $ship_total + $total?></td>
        </tr>
        <? } ?>
        <?	} ?>
        <?	} ?>
      </table>
<br />
<em><?=$this->lang->line('vat_included_cart')?></em>

</div> 
<? if (($orderdata['ship_method']=='courier') || ($orderdata['ship_method']=='day_delivery') || ($orderdata['ship_method']=='elta') || ($orderdata['ship_method']=='courier_economy') || ($orderdata['ship_method']=='courier_express')) { ?> 
<? if ($orderdata['ship_method']=='elta') { ?>
		<h4>
        <?=$this->lang->line('elta_delivery')?>
      </h4>
<? } ?>
<h4>
        <?=$this->lang->line('delivery_address')?>
      </h4>
      <? if ($orderdata['same_address']=='Yes') { ?>
		<? $country_zone = $this->MFuncs->getCountryZone($userdata['country_id']); ?>
      <p>
        <?=$userdata['address'].", ".$userdata['city'].", ".$userdata['postal'].", ".$country_zone['name']."<br>".$this->lang->line('floor').": ".$userdata['floor'].", ".$this->lang->line('name_bell').": ".$userdata['name_bell']."<br>".$this->lang->line('tel').": ".$userdata['tel'].", ".$this->lang->line('mob').": ".$userdata['mob'];?>
      </p>
      <? }else { ?>
		<? $country_zone = $this->MFuncs->getCountryZone($orderdata['country_id']); ?>
      <p>
        <?=$orderdata['address'].", ".$orderdata['city'].", ".$orderdata['postal'].", ".$country_zone['name']."<br>".$this->lang->line('floor').": ".$orderdata['floor'].", ".$this->lang->line('name_bell').": ".$orderdata['name_bell']."<br>".$this->lang->line('tel').": ".$userdata['tel'].", ".$this->lang->line('mob').": ".$userdata['mob'];?>
      </p>
      <? } ?>
      <br />
      <? } ?>
      <? $this->MFuncs->updateShippingCost($orderdata['id'], $userdata['id'], $ship_total); ?>
     <h4>
        <?=$this->lang->line('payment_method')?>
      </h4>
      <? if ($orderdata['pay_method']=='Cash') {
			echo $this->lang->line('cash_on_delivery');
		} elseif ($orderdata['pay_method']=='Bank') {
			echo $this->lang->line('bank_deposit').' '.$this->lang->line('bank_deposit2');
		} elseif ($orderdata['pay_method']=='Credit') {
			echo $this->lang->line('credit_card'); ?>
      <? $a = uniqid(rand(), true); 
			$this->MFuncs->setRefOrder($a, $orderdata['id']);
   		if (($orderdata['ship_method']=='courier') || ($orderdata['ship_method']=='day_delivery') || ($orderdata['ship_method']=='elta') || ($orderdata['ship_method']=='courier_economy') || ($orderdata['ship_method']=='courier_express')){
        $t_amount= $gen_total*100;
		} else {
        $t_amount = $total*100;
        } 
			$this->MFuncs->insertCCTransaction($a, $orderdata['id'], $t_amount, $userdata['id']);
			$this->session->set_userdata("order_ref",$a);
			?>
      <form method="POST" action="https://ep.eurocommerce.gr/proxypay/apacs">
        <input type="hidden" name="APACScommand" VALUE="NewPayment">
        <INPUT TYPE="hidden" NAME="merchantID" VALUE="90003432">
        <INPUT TYPE="hidden" NAME="amount" VALUE="<?=$t_amount?>">
        <INPUT TYPE="hidden" NAME="merchantRef" VALUE="<?=$a?>" >
        <INPUT TYPE="hidden" NAME="merchantDesc" VALUE="<?=$orderdata['id']?>" >
        <INPUT TYPE="hidden" NAME="currency" VALUE="0978">
        <? if ($this->session->userdata('lang_id')==1) { ?>
        <INPUT TYPE="hidden" NAME="lang" VALUE="GR">
        <? } else { ?>
        <INPUT TYPE="hidden" NAME="lang" VALUE="EN">
        <? } ?>
        <INPUT TYPE="hidden" NAME="var1">
        <INPUT TYPE="hidden" NAME="var2">
        <INPUT TYPE="hidden" NAME="var3">
        <INPUT TYPE="hidden" NAME="var4">
        <INPUT TYPE="hidden" NAME="var5">
        <INPUT TYPE="hidden" NAME="var6">
        <INPUT TYPE="hidden" NAME="var7">
        <INPUT TYPE="hidden" NAME="var8">
        <INPUT TYPE="hidden" NAME="var9">
        <INPUT TYPE="hidden" NAME="CustomerEmail" VALUE="<?=$userdata['email']?>">
        <INPUT TYPE="hidden" NAME="Offset">
        <INPUT TYPE="hidden" NAME="Period">
        <?	} elseif ($orderdata['pay_method']=='PayPal') {
			echo $this->lang->line('pay_pal');
 			$a = uniqid(rand(), true);			
			$this->MFuncs->setRefOrder($a, $orderdata['id']);
   		if (($orderdata['ship_method']=='courier') || ($orderdata['ship_method']=='day_delivery') || ($orderdata['ship_method']=='elta')){
        $t_amount= $gen_total;
		} else {
        $t_amount = $total;
        } 
			$this->MFuncs->insertCCTransaction($a, $orderdata['id'], $t_amount, $userdata['id']);
			$this->session->set_userdata("order_ref",$a);
			?>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="info@wines2u.gr">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="amount" value="<?=$t_amount?>">
<input type="hidden" name="item_name" value="Order ID=<?=$orderdata['id']?>">
<input type="hidden" name="item_number" value="<?=$a?>"> 
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="return" value="<?=base_url()?>europay/paypal_validation.php">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="cancel_return" value="<?=base_url()?>payment_declined">
<? } ?>
        <br />
        <br />
      <h4>
        <?=$this->lang->line('receipt_type')?>
      </h4>
      <? if ($orderdata['receipt_type']=='receipt') {
			echo $this->lang->line('type_receipt');
		} elseif ($orderdata['receipt_type']=='invoice') {
			echo $this->lang->line('type_invoice');
			$invoice_details = $this->MFuncs->getInvoiceDetails($orderdata['id']);
			if ($invoice_details) { ?>
            <Br />
            <p><?=$this->lang->line('cmp_name')?>: <?=$invoice_details['cmp_name']?><br />
            <?=$this->lang->line('cmp_occupation')?>: <?=$invoice_details['cmp_occupation']?><br />
            <?=$this->lang->line('cmp_afm')?>: <?=$invoice_details['cmp_afm']?><br />
            <?=$this->lang->line('cmp_address')?>: <?=$invoice_details['cmp_address']?><br />
            <?=$this->lang->line('cmp_city')?>: <?=$invoice_details['cmp_city']?><br />
            <?=$this->lang->line('cmp_doy')?>: <?=$invoice_details['cmp_doy']?></p>
            <? } ?>
		<? } ?>
        <br />
        <br />
        <div class="note">(*) <?=$this->lang->line('change_settings_2');?></div>
        <div class="buttons">
        <?=anchor("complete_order_2_2_new2", $this->lang->line('btn_back'),array('id'=>'back_btn','class'=>'positive'))?>
        <? if ($orderdata['pay_method']=='Credit') { ?>
        <button type="submit" class="positive">
        <?=$this->lang->line('cart_complete')?>
        </button>
      </form>
      <? } elseif ($orderdata['pay_method']=='PayPal') { ?>
<h3 style="color:#FF0000"><?=$this->lang->line('pay_pal_pay_text')?></h3>
        <button type="submit" class="positive">
<img src="<?=base_url()?>images/paypal.jpg" alt="paypal" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
        </button>
      <? } else { ?>
      <?=anchor("complete_order_4_new2", $this->lang->line('cart_complete'),array('id'=>'back_btn','class'=>'positive'))?>
      <? } ?>
    </div>
      <div style="clear:both">
        &nbsp;
      </div>
    </div>
    <?php /*?><p><?=anchor('complete_order_2', $this->lang->line('change_settings'));?>&nbsp;&nbsp;|&nbsp;&nbsp;<?=anchor('complete_order_4', $this->lang->line('cart_complete'));?></p>
<?php */?>
    <? } else { 
echo "There is a problem with your order...";
} ?>
  </div>
</div>
