|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/rabbithabit.com/public_html/application/views/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width" /><!-- IMPORTANT -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Order Confirmation</title>
<style>
/* -------------------------------------
GLOBAL
------------------------------------- */
* {
margin:0;
padding:0;
}
* { font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; }
img {
max-width: 100%;
}
.collapse {
margin:0;
padding:0;
}
body {
-webkit-font-smoothing:antialiased;
-webkit-text-size-adjust:none;
width: 100%!important;
height: 100%;
}
/* -------------------------------------
ELEMENTS
------------------------------------- */
a { color: #2BA6CB;}
.btn {
text-decoration:none;
color:#FFF;
background-color:#666;
width:80%;
padding:15px 10%;
font-weight:bold;
text-align:center;
cursor:pointer;
display:inline-block;
}
p.callout {
padding:15px;
text-align:center;
background-color:#ECF8FF;
margin-bottom: 15px;
}
.callout a {
font-weight:bold;
color: #2BA6CB;
}
.column table { width:100%;}
.column {
width: 300px;
float:left;
}
.column tr td { padding: 15px; }
.column-wrap {
padding:0!important;
margin:0 auto;
max-width:600px!important;
}
.columns .column {
width: 280px;
min-width: 279px;
float:left;
}
table.columns, table.column, .columns .column tr, .columns .column td {
padding:0;
margin:0;
border:0;
border-collapse:collapse;
}
/* -------------------------------------
HEADER
------------------------------------- */
table.head-wrap { width: 100%;}
.header.container table td.logo { padding: 15px; }
.header.container table td.label { padding: 15px; padding-left:0px;}
/* -------------------------------------
BODY
------------------------------------- */
table.body-wrap { width: 100%;}
/* -------------------------------------
FOOTER
------------------------------------- */
table.footer-wrap { width: 100%; clear:both!important;
}
.footer-wrap .container td.content p { border-top: 1px solid rgb(215,215,215); padding-top:15px;}
.footer-wrap .container td.content p {
font-size:10px;
font-weight: bold;
}
/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
h1,h2,h3,h4,h5,h6 {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; line-height: 1.1; margin-bottom:15px; color:#000;
}
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-size: 60%; color: #6f6f6f; line-height: 0; text-transform: none; }
h1 { font-weight:200; font-size: 44px;}
h2 { font-weight:200; font-size: 37px;}
h3 { font-weight:500; font-size: 27px;}
h4 { font-weight:500; font-size: 23px;}
h5 { font-weight:900; font-size: 17px;}
h6 { font-weight:900; font-size: 14px; text-transform: uppercase; color:#444;}
.collapse { margin:0!important;}
p, ul {
margin-bottom: 10px;
font-weight: normal;
font-size:14px;
line-height:1.6;
}
p.lead { font-size:17px; }
p.last { margin-bottom:0px;}
ul li {
margin-left:5px;
list-style-position: inside;
}
hr {
border: 0;
height: 0;
border-top: 1px dotted rgba(0, 0, 0, 0.1);
border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}
.products {
width:100%;
height:40px;
margin:10px 0 10px 0;
}
.products img {
float:left;
height:40px;
width:auto;
margin-right:20px;
}
.products span {
font-size:17px;
}
/* ---------------------------------------------------
RESPONSIVENESS
Nuke it from orbit. It's the only way to be sure.
------------------------------------------------------ */
/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
.container {
display:block!important;
max-width:600px!important;
margin:0 auto!important; /* makes it centered */
clear:both!important;
}
/* This should also be a block element, so that it will fill 100% of the .container */
.content {
padding:15px;
max-width:600px;
margin:0 auto;
display:block;
}
/* Let's make sure tables in the content area are 100% wide */
.content table { width: 100%; }
/* Be sure to place a .clear element after each set of columns, just to be safe */
.clear { display: block; clear: both; }
/* -------------------------------------------
PHONE
For clients that support media queries.
Nothing fancy.
-------------------------------------------- */
@media only screen and (max-width: 600px) {
a[class="btn"] { display:block!important; margin-bottom:10px!important; background-image:none!important; margin-right:0!important;}
div[class="column"] { width: auto!important; float:none!important;}
table.social div[class="column"] {
width:auto!important;
}
}
table.productTable {
border-collapse: collapse;
}
table.productTable table, table.productTable th, table.productTable td {
border: 1px solid grey;
}
table.productTable th, table.productTable td {padding:10px;}
table.tbl2 thead tr th{
padding-bottom: 10px;
border-bottom: 1px solid black;
}
ol li {
margin-left: 19px;
}
</style>
</head>
<body bgcolor="#FFFFFF">
<!-- HEADER -->
<table class="head-wrap">
<tr>
<td></td>
<td class="header container">
<div class="content">
<table>
<tr>
<td align="right">
<!-- <h6 class="collapse">Konfirmasi Pesanan</h6> -->
</td>
</tr>
</table>
</div>
</td>
<td></td>
</tr>
</table><!-- /HEADER -->
<?php
$shipping_fee = null;
if($order->shipping_fee == 0) :
$shipping_fee = 'Free';
else :
if($order->indent_shipping_fee > 0) :
if($order->indent_shipping_fee == $order->shipping_fee) :
$shipping_fee = 'TBC';
else :
$shipping_fee = 'IDR ' . number_format($order->shipping_fee - $order->indent_shipping_fee);
endif;
else :
$shipping_fee = 'IDR ' . number_format($order->shipping_fee);
endif;
endif;
$finalshippingfee = 0;
$calculate_finalshippingfee = $order->shipping_fee - $order->free_shipping_fee;
if($calculate_finalshippingfee > 0){
$finalshippingfee = $calculate_finalshippingfee;
$shipping_fee = 'IDR' . number_format($finalshippingfee);
}
?>
<!-- BODY -->
<table class="body-wrap">
<tr>
<td></td>
<td class="container" bgcolor="#FFFFFF">
<div class="content">
<table>
<tr>
<td>
<img style="width: 200px;" src="<?= base_url() . 'uploads/LOGO_RABBITHABIT1.png'; ?>" />
<br/>
<br/>
<br/>
</td>
</tr>
<tr>
<td>
<!-- <h5> -->
Dear <?= ucwords($customer->name); ?>
<!-- </h5> -->
<br/>
<br/>
<h5 style="text-align: center;">
<strong>YOU ARE ALMOST THERE</strong>
</h5>
<br/>
<br/>
<br/>
Thank you for shopping at <?= ucwords($website_name); ?>.
<br />
<br />
<ol type="1">
<li>
Payment must be made within 24 hours so your order won't get cancelled.
</li>
<li>
Please make the payment to <br />
<?php if(isset($bank)): ?>
<?= $bank; ?>
<?php endif; ?>
</li>
<li>
Please put the order number below when you make the payment.
</li>
</ol>
<br/>
<!-- </h5> -->
<table class="tbl2" style="width: 100%; margin-top:10px;">
<thead>
<tr>
<th style="text-align: left;width: 27%;">
ORDER DETAILS
</th>
<th style="text-align: left;"></th>
<th style="text-align: left;width: 29%;">
PAYMENT INFORMATION
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<b>Order Number:</b>
<br />
<?= $order->id_orders; ?>
</td>
<td></td>
<td>
<b>Payment method:</b>
<br />
Bank Transfer
</td>
</tr>
<tr>
<td style="height: 15px;" colspan="3"></td>
</tr>
<tr>
<td>
<b>Customer:</b>
<br />
<?= ucwords($customer->name); ?>
</td>
<td></td>
<td>
<b>Status:</b>
<br />
Waiting for payment
</td>
</tr>
<tr>
<td style="height: 15px;" colspan="3"></td>
</tr>
<tr>
<td>
<b>Email:</b>
<br />
<?= $customer->email; ?>
</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<br />
<br />
<table class="tbl2" style="width: 100%;">
<thead>
<tr>
<th style="text-align: left;">
SHIPPING DETAILS
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<b>Shipping Address:</b>
<br />
<?= ucwords($order->recipient_name); ?><br>
<?= ucwords($order->address); ?>.
<br>
<?= ucwords($order->subdistrict); ?>.
<br>
<?= ucwords($order->district); ?>.
<br>
<?= ucwords($order->province); ?>.
<br>
<?= $order->country . ' ' . $order->postcode; ?>
<br />
</td>
</tr>
<tr>
<td style="height: 15px;">
</td>
</tr>
<tr>
<td>
<b>Shipping Method:</b>
<br />
<?= $shipping_fee; ?>
</td>
</tr>
</tbody>
</table>
<table class="tbl2" style="margin-top: 15px; width: 100%;">
<thead>
<tr>
<th style="text-align: left;" colspan="2">
ORDER SUMMARY
</th>
<th></th>
<th style="width: 20%;"></th>
</tr>
</thead>
<tbody>
<?php
$subtotal=0;
$cntr_no=0;
foreach ($order_details as $item) : ?>
<?php $cntr_no++; ?>
<tr>
<td style="width: 6%;">
<?= $cntr_no.'.'; ?>
</td>
<td style="width: 60%;">
<?= ucwords($item->item_name); ?><br>
<?php
//get SKU
$sku = $this->db->select('sku')->from('orders_detail')->where('id_orders_detail', $item->id_orders_detail)->get()->row()->sku;
?>
<?= ucwords($sku); ?><br>
<?php if($item->is_backorder == 'yes') : ?>
Indent. <?= $item->indent_message; ?>
<?php endif; ?>
</td>
<td></td>
<td style="">IDR <?= number_format($item->subtotal); ?></td>
</tr>
<?php
$subtotal = $subtotal + $item->subtotal;
endforeach; ?>
</tbody>
<tfoot>
<?php
$grand_total = ($subtotal - $order->redeemed_voucher_amount - $order->minus_reward_amount) + ($finalshippingfee) - $order->indent_remaining - $order->indent_shipping_fee;
?>
<tr>
<td style="padding-bottom: 10px; border-bottom: 1px solid black;" colspan="4"></td>
</tr>
<tr>
<td></td>
<td></td>
<td>
Sub Total
</td>
<td>
IDR <?= number_format($subtotal); ?>
</td>
</tr>
<tr>
<td></td>
<td></td>
<td>
Discount
</td>
<td>
<?php if ($order->redeemed_voucher_code != null): ?>
IDR <?= number_format($order->redeemed_voucher_amount); ?>
<?php else: ?>
IDR 0
<?php endif; ?>
</td>
</tr>
<tr>
<td></td>
<td></td>
<td>
Shipping
</td>
<td>
<?= $shipping_fee; ?>
</td>
</tr>
<tr>
<td></td>
<td></td>
<td>
Total
</td>
<td>
IDR <?= number_format($grand_total); ?>
</td>
</tr>
</tfoot>
</table>
<br>
</td>
</tr>
</table>
</div>
</td>
<td></td>
</tr>
</table>
<!-- /BODY -->
</body>
</html>