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/kanvakanva.com/public_html/application/views/email/ |
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" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Order Confirmation (Bank Transfer)</title> <style> /* ------------------------------------- GLOBAL ------------------------------------- */ * { margin: 0; padding: 0; font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; font-size: 100%; line-height: 1.6; } img { max-width: 100%; } body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100%!important; height: 100%; } /* ------------------------------------- ELEMENTS ------------------------------------- */ a { color: #348eda; } .btn-primary { text-decoration: none; color: #FFF; background-color: #348eda; border: solid #348eda; border-width: 10px 20px; line-height: 2; font-weight: bold; margin-right: 10px; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px; } .btn-secondary { text-decoration: none; color: #FFF; background-color: #aaa; border: solid #aaa; border-width: 10px 20px; line-height: 2; font-weight: bold; margin-right: 10px; text-align: center; cursor: pointer; display: inline-block; border-radius: 25px; } .last { margin-bottom: 0; } .first { margin-top: 0; } .padding { padding: 10px 0; } /* ------------------------------------- BODY ------------------------------------- */ table.body-wrap { width: 100%; padding: 20px; } table.body-wrap .container { border: 1px solid #f0f0f0; } /* ------------------------------------- FOOTER ------------------------------------- */ table.footer-wrap { width: 100%; clear: both!important; } .footer-wrap .container p { font-size: 12px; color: #666; } table.footer-wrap a { color: #999; } /* ------------------------------------- TYPOGRAPHY ------------------------------------- */ h1, h2, h3 { font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; line-height: 1.1; margin-bottom: 15px; color: #000; margin: 40px 0 10px; line-height: 1.2; font-weight: 200; } h1 { font-size: 36px; } h2 { font-size: 28px; } h3 { font-size: 22px; } p, ul, ol { margin-bottom: 10px; font-weight: normal; font-size: 14px; } ul li, ol li { margin-left: 5px; list-style-position: inside; } table.productTable { border-collapse: collapse; } table.productTable table, table.productTable th, table.productTable td { border: 1px solid black; } table.productTable th, table.productTable td {padding:10px;} /* --------------------------------------------------- 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: 100%!important; margin: 0 auto!important; /* makes it centered */ clear: both!important; } /* Set the padding on the td rather than the div for Outlook compatibility */ .body-wrap .container { padding: 20px; } /* This should also be a block element, so that it will fill 100% of the .container */ .content { max-width: 100%; margin: 0 auto; display: block; } /* Let's make sure tables in the content area are 100% wide */ .content table { width: 100%; } .tablecontent { border: 1px solid grey; } .tablecontent tr td { border: 1px solid grey; padding:5px; } .tablecontent tr th { border: 1px solid grey; padding:5px; } </style> </head> <body bgcolor="#f6f6f6"> <!-- body --> <table class="body-wrap"> <tr> <td></td> <td class="container" bgcolor="#FFFFFF"> <!-- content --> <div class="content"> <table> <tr> <td> <p><img src="<?= base_url() . 'uploads/' . $logo; ?>" alt="" /></p> <h3 style="text-align:center;">Order Confirmation</h3> <p>Thank you for your order.</p> <p>Here are your order details.</p> <p>Order No: <?= $order->id_orders; ?></p> <p>Order Date: <?= date('j F Y', strtotime($order->order_date)); ?> <table class="table"> <tr> <td style="vertical-align:top;"><strong>SHIPPING DETAILS</strong><br> <p><?= ucwords($order->recipient_name); ?><br> <?= ucwords($order->address); ?> <?= ucwords($order->district); ?> <?= ucwords($order->province); ?> <?= $order->country . ' ' . $order->postcode; ?><br> <?= 'Phone / Mobile: ' . $order->phone; ?><br> </p> </td> <td style="vertical-align:top;"> </td> </tr> <?php $product_grand_total = 0; $total_weight_gram = 0; $total_weight_gram = array(); $rnm_brand = ''; foreach ($order_details as $item): $item_id = (int) $item->item_id; $size = $item->size; //get size id $this->db->select('a.size_id')->from('stocks a') ->join('product_size b','a.size_id=b.id_product_size','left') ->where('a.product_id', $item_id) ->where('b.product_size', $size); $size_id = $this->db->get()->row()->size_id; //get product weight $this->db->select('weight')->from('stocks')->where('product_id', $item_id)->where('size_id', $size_id); $item_weight = $this->db->get()->row()->weight * $item->quantity; $district_brand = $item->id_district; $nm_brand = $item->brand; if($rnm_brand != $nm_brand && $nm_brand != '' && $nm_brand != null){ $rnm_brand = $nm_brand; } $ar_brand = str_replace(' ','_',$rnm_brand); if (array_key_exists($ar_brand, $total_weight_gram)) { $total_weight_gram[$ar_brand] += $item_weight; }else{ $total_weight_gram[$ar_brand] = $item_weight; } $product_grand_total += $item->subtotal; endforeach; $brand = ''; $id_district = ''; $no = 1; foreach ($order_details as $item) : ?> <?php if($brand != $item->brand && $no != 1) : $ar_brand = str_replace(' ','_',$brand); $total_weight_kg = ceil($total_weight_gram[$ar_brand] / 1000); ?> </table> </td> </tr> <tr> <!-- <td>SHIPPING CARRIER <?= ucfirst($carrier_name); ?></td> --> <td>SHIPPING FROM <?=strtoupper(strtolower($brand))?></td> <!-- SHIPPING FEE --> <?php //get city origin ID from configuration table $this->db->select('shop_district_id')->from('configuration')->where('id_configuration', 1); $shop_origin_city_id = (int) $this->db->get()->row()->shop_district_id; if($id_district != '' && $id_district != null){ $shop_origin_city_id = $id_district; } //get destination IDs $destination_city_id = (int) $order->id_district; $total_shipping_fee = 0; if($total_weight_kg > 0) { $rajaongkir_cost = get_rajaongkir_ongkos($shop_origin_city_id, $destination_city_id, 1000, $carrier); foreach($rajaongkir_cost['rajaongkir']['results'][0]['costs'] as $key => $result) { if($result['service'] == 'REG') { $total_shipping_fee = $result['cost'][0]['value']; $total_shipping_fee = $total_shipping_fee * $total_weight_kg; break; }elseif($result['service'] == 'CTC') { $total_shipping_fee = $result['cost'][0]['value']; $total_shipping_fee = $total_shipping_fee * $total_weight_kg; break; } else { $total_shipping_fee = NULL; //service is not available } } if($this->session->userdata('chosen_voucher_type') == 'free shipping') { $total_shipping_fee = 0; } //get free shipping min purchase amount from configuration table $this->db->select('free_shipping')->from('configuration')->where('id_configuration', 1); $free_shipping = $this->db->get()->row()->free_shipping; if ($free_shipping != NULL) { if ($product_grand_total >= $free_shipping) { $total_shipping_fee = 0; } } if ($total_shipping_fee == 0 && $free_shipping != NULL) : $tshipping = 0; echo '<td>IDR 0</td>'; elseif ($total_shipping_fee == 0 && $free_shipping == NULL) : $tshipping = 0; echo '<td>IDR 0</td>'; else : $shipping = $total_shipping_fee; echo '<td>IDR '.number_format($total_shipping_fee).'</td>'; endif; } else { $total_shipping_fee = 0; //get free shipping min purchase amount from configuration table $this->db->select('free_shipping')->from('configuration')->where('id_configuration', 1); $free_shipping = $this->db->get()->row()->free_shipping; if ($free_shipping != NULL) { if ($product_grand_total >= $free_shipping) { $total_shipping_fee = 0; } } if ($total_shipping_fee == 0 && $free_shipping != NULL) : $tshipping = 0; echo '<td>IDR 0</td>'; elseif ($total_shipping_fee == 0 && $free_shipping == NULL) : $tshipping = 0; echo '<td>IDR 0</td>'; else : $shipping = $total_shipping_fee; echo '<td>IDR '.number_format($total_shipping_fee).'</td>'; endif; } ?> </tr> <?php endif; ?> <?php if($brand != $item->brand) : ?> <tr> <td colspan="2"> <br><p><strong>PRODUCT DETAILS <?=strtoupper(strtolower($item->brand))?></strong></p> <table class="table tablecontent productTable" cellspacing="0" style="text-align:center;"> <tr> <th>Item Name</th> <th>Price</th> <th>Quantity</th> <th>Sub Total</th> </tr> <?php $brand = $item->brand; $id_district = $item->id_district; endif; ?> <tr> <td style="vertical-align:top;"> <?= ucwords($item->item_name); ?></td> <td style="vertical-align:top;">IDR <?= number_format($item->item_price); ?></td> <td style="vertical-align:top;"><?= $item->quantity; ?></td> <td style="vertical-align:top;">IDR <?= number_format($item->subtotal); ?></td> </tr> <?php if(count($order_details) == $no) : $ar_brand = str_replace(' ','_',$brand); $total_weight_kg = ceil($total_weight_gram[$ar_brand] / 1000); ?> </table> </td> </tr> <tr> <!-- <td>SHIPPING CARRIER <?= ucfirst($carrier_name); ?></td> --> <td>SHIPPING FROM <?=strtoupper(strtolower($brand))?></td> <!-- SHIPPING FEE --> <?php //get city origin ID from configuration table $this->db->select('shop_district_id')->from('configuration')->where('id_configuration', 1); $shop_origin_city_id = (int) $this->db->get()->row()->shop_district_id; if($item->id_district != '' && $item->id_district != null){ $shop_origin_city_id = $item->id_district; } //get destination IDs $destination_city_id = (int) $order->id_district; $total_shipping_fee = 0; if($total_weight_kg > 0) { $rajaongkir_cost = get_rajaongkir_ongkos($shop_origin_city_id, $destination_city_id, 1000, $carrier); foreach($rajaongkir_cost['rajaongkir']['results'][0]['costs'] as $key => $result) { if($result['service'] == 'REG') { $total_shipping_fee = $result['cost'][0]['value']; $total_shipping_fee = $total_shipping_fee * $total_weight_kg; break; }elseif($result['service'] == 'CTC') { $total_shipping_fee = $result['cost'][0]['value']; $total_shipping_fee = $total_shipping_fee * $total_weight_kg; break; } else { $total_shipping_fee = NULL; //service is not available } } if($this->session->userdata('chosen_voucher_type') == 'free shipping') { $total_shipping_fee = 0; } //get free shipping min purchase amount from configuration table $this->db->select('free_shipping')->from('configuration')->where('id_configuration', 1); $free_shipping = $this->db->get()->row()->free_shipping; if ($free_shipping != NULL) { if ($product_grand_total >= $free_shipping) { $total_shipping_fee = 0; } } if ($total_shipping_fee == 0 && $free_shipping != NULL) : $tshipping = 0; echo '<td>IDR 0</td>'; elseif ($total_shipping_fee == 0 && $free_shipping == NULL) : $tshipping = 0; echo '<td>IDR 0</td>'; else : $shipping = $total_shipping_fee; echo '<td>IDR '.number_format($total_shipping_fee).'</td>'; endif; } else { $total_shipping_fee = 0; //get free shipping min purchase amount from configuration table $this->db->select('free_shipping')->from('configuration')->where('id_configuration', 1); $free_shipping = $this->db->get()->row()->free_shipping; if ($free_shipping != NULL) { if ($product_grand_total >= $free_shipping) { $total_shipping_fee = 0; } } if ($total_shipping_fee == 0 && $free_shipping != NULL) : $tshipping = 0; echo '<td>IDR 0</td>'; elseif ($total_shipping_fee == 0 && $free_shipping == NULL) : $tshipping = 0; echo '<td>IDR 0</td>'; else : $shipping = $total_shipping_fee; echo '<td>IDR '.number_format($total_shipping_fee).'</td>'; endif; } ?> </tr> <?php endif; ?> <?php $no++; endforeach; ?> <tr> <td colspan="2"><br></td> </tr> <?php if (isset($chosen_voucher_code)) : ?> <tr> <td>VOUCHER: <?= $chosen_voucher_code; ?></td> <td> <?php if ($chosen_voucher_type == 'amount') : ?> IDR <?php endif; ?> <?= '-' . number_format($chosen_voucher_discount); ?> <?php if ($chosen_voucher_type == 'percentage') : ?> % <?php endif; ?> </td> </tr> <?php endif; ?> <?php if ($order->discount_redeem > 0) : ?> <tr> <td>DISCOUNT REDEEM POINT</td> <td> IDR <?= '-' . number_format($order->discount_redeem); ?> </td> </tr> <?php endif; ?> <tr> <td style="font-weight: bold;">TOTAL AMOUNT</td> <td style="font-weight: bold;">IDR <?= number_format($order->total_amount); ?></td> </tr> </table> </td> </tr> </table> <br/> <p><strong>BANK TRANSFER INFORMATION</strong></p> <p>Total amounts to be transferred are IDR <?= number_format($this->session->userdata('grand_total')); ?><br> <?= $bank->bank; ?><br> <p>Your Order ID is: <strong><?= $order->payment_confirmation_string; ?></strong> (For payment confirmation purpose).</p> <p>Please add note during transfer by stating Order No. and Your Name.</p> <br/> <p>Once You have made your payment, confirm your transfer by clicking <a href="<?= base_url('payment_confirmation/load_payment_page/' . $order->payment_confirmation_string); ?>">HERE</a>, or you can visit <a href="<?= base_url('payment_confirmation'); ?>">CONFIRM PAYMENT</a> page, and add your Order ID.</p> <p>We will process Your order once we can verify the payment.</p> <p>Note: Your order will be cancelled if we have do not received any payment within 2x24 hours.</p> <br/> <strong>THANK YOU FOR YOUR ORDER.</strong></p> <p>Regards,<br> Team Kanva</p> <br> <br> <p>At Kanva we're proud to be designed, produced and wrapped in our home studio in Jakarta, Indonesia.</p> </div> <!-- /content --> </td> <td></td> </tr> </table> <!-- /body --> <!-- footer --> <table class="footer-wrap"> <tr> <td></td> <td class="container"> <!-- content --> <div class="content"> <table> <tr> <td align="center"> <p>Log into your <a href="<?= base_url('account'); ?>">account</a> to view the status of this order.</p> <p>Copyright © <?= ucwords($emails->website_name); ?></p> </td> </tr> </table> </div> <!-- /content --> </td> <td></td> </tr> </table> <!-- /footer --> </body> </html>