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/laciasmara.com/public_html/shop/application/views/ |
Upload File : |
<div class="customer_info_box container"> <div class="row"> <div class="col-md-6 col-sm-12" style="border:1px solid black; margin-top: 30px; padding-bottom: 40px;"> <?php $first_discount = 0; $disc_first = 0.05; // Default diskon pembelian pertama adalah 5% // Jika ini adalah pembelian pertama if ($order_info->first == 1) { $referral = $order_info->referral; // Cek apakah ada referral if (!empty($referral)) { $affiliator = $this->db->select('kategori') ->from('affiliator_register') ->where('referral', $referral) ->get() ->row(); // Cek kategori affiliator jika ditemukan if ($affiliator) { switch ($affiliator->kategori) { case 'asmaradoor': $disc_first = 0.10; // Diskon 10% untuk asmaradoor break; case 'asmarasana': $disc_first = 0.05; // Diskon 5% untuk asmarasana break; } } } // Hitung diskon pertama berdasarkan total_amount $first_discount = $order_info->total_amount * $disc_first; } ?> <div class="row customer_info_box_head"> <div class="col-sm-12"> <br> <div class="padding:10px;"> <h3><?= ucwords(lang('order')); ?></h3> <hr style="border-top: 1px solid black; margin-top: 0.5rem"> </div> <br> <div class="summary_info_box_in" class="padding:10px; border:1px solid black; border-top:none;"> <span><?= ucwords(lang('confirmation_order')); ?>: <?= $order_id; ?> <?= ucwords(lang('email_to')); ?> <b><?= $email; ?></b>.</span><br><br> <span><?= ucwords(lang('sum')); ?> IDR <?= number_format($grand_total - $first_discount); ?></span><br><br> <span><?= ucwords(lang('amount')); ?>:</span><br> <?= $bank->bank; ?> <br> <span><?= ucwords(lang('within')); ?> <b><?= ucwords(lang('hours')); ?></b> <?= ucwords(lang('confirms')); ?>.</span> <br><br> </div> </div> </div> <?php echo form_open('account/payment_confirmation'); ?> <div class="row"> <div class="col-6"> <p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('order_no')); ?>: <?= $order_id; ?></p> <input type="hidden" name="order_id" value="<?= $order_info->id_orders; ?>"> <?php $order_date = strtotime($order_info->order_date); $new_date = date('j/m/Y', $order_date); ?> <p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('order_date')); ?>: <?= $new_date; ?></p> </div> <div class="col-6"> <p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('order_status')); ?>:</p> <?php if ($order_info->payment_status == 1) : ?> <p style=" margin: 0px;"><?= ucwords(lang('not_paid')); ?></p> <?php if ($order_info->payment_confirm == 0) : ?> <input type="submit" name="confirm_payment" value="<?= ucwords(lang('confirm_payment')); ?>" style="background:<?= $primary_colortheme; ?>; color:white; cursor: pointer; border:none; padding:2px; padding-left:5px; padding-right:5px;"> <?php else : ?> <input type="submit" name="confirm_payment" value="<?= strtoupper(lang('already_confirm')); ?>" style="background:<?= $primary_colortheme; ?>; color:white; cursor: pointer; border:none; padding:2px; padding-left:5px; padding-right:5px;"> <?php endif; ?> <?php elseif ($order_info->payment_status == 3) : ?> <p style="margin: 0px;"><?= ucwords(lang('paid')); ?></p> <?php elseif ($order_info->payment_status == 6) : ?> <p style="margin: 0px;"><?= ucwords(lang('partial_paid')); ?></p> <?php elseif ($order_info->payment_status == 4) : ?> <p style="margin: 0px;"><?= ucwords(lang('delivered')); ?></p> <?php elseif ($order_info->payment_status == 2) : ?> <p style="margin: 0px;"><?= ucwords(lang('cancel')); ?></p> <?php endif; ?> </div> </div> <div class="row"> <div class="col-sm-12"> <p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('recipient')); ?>:</p> <p style="margin: 0px;"> <?php if ($order_info->recipient_name != null) : ?> <?= ucwords($order_info->recipient_name); ?><br> <?php endif; ?> <?= ucwords($order_info->address); ?><br><?= ucwords($order_info->subdistrict); ?>. <?= ucwords($order_info->district); ?>. <?= ucwords($order_info->province); ?>. <?= ucwords($order_info->postcode); ?> </p> </div> </div> <br> <p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('products')); ?>:</p> <hr style="border-top: 1px solid black; margin-top: 0.5rem"> <?php $order_info_id = $order_info->id_orders; $this->db->select('*'); $this->db->from('orders_detail'); $this->db->where('orders_id', $order_info_id); $query = $this->db->get(); $orders_detail = $query->result(); ?> <?php foreach ($orders_detail as $order_detail) : ?> <div class="row" style="margin-bottom: 5px;"> <div class="col-4"> <?php $this->load->helper('product'); $thumbnail = get_product_thumbnail($order_detail->product_id); ?> <img src="<?= $thumbnail['image1']; ?>" alt="" /> </div> <div class="col-4"> <p style="margin: 0px;"><?= $order_detail->item_name; ?> <br> <?php //get SKU $sku = $this->db->select('sku')->from('product_details')->where('id', $order_detail->item_id)->get()->row()->sku; ?> <?= $sku; ?><br> <?php if ($order_detail->is_backorder == 'yes') : ?> Indent<br><?= $order_detail->indent_message; ?> <?php endif; ?> </p> </div> <div class="col-4"> <p style="margin-bottom: 10px;"> <?= ucwords(lang('quantity')); ?>: <?= $order_detail->quantity; ?> pcs<br> @IDR <?= number_format($order_detail->item_price); ?> </p> </div> </div> <?php endforeach; ?> <?php if (isset($tax)) : ?> <p><?= ucwords(lang('tax')); ?> 10%: IDR <?= number_format($tax); ?></p> <?php endif; ?> <p style="text-align: right; border-top: 1px solid black; padding-top: 5px;"><?= ucwords(lang('shipping_fee')); ?> : <?php if ($order_info->shipping_fee == 0) : ?> <?= ucwords(lang('free_shipping')); ?> <?php else : ?> <?php if ($order_info->indent_shipping_fee > 0) : ?> <?php if ($order_info->indent_shipping_fee == $order_info->shipping_fee) : ?> TBC <?php else : ?> IDR <?= number_format($order_info->shipping_fee - $order_info->indent_shipping_fee); ?> <?php endif; ?> <?php else : ?> IDR <?= number_format($order_info->shipping_fee); ?> <?php endif; ?> <?php endif; ?> </p> <?php if ($order_info->insurance_status == 'Yes') : ?> <p style="text-align: right"><?= ucwords(lang('shipping_insurance')); ?>: IDR <?= number_format($order_info->insurance_cost); ?> </p> <?php endif; ?> <?php if ($order_info->free_shipping_fee > 0) : ?> <p style="text-align: right"><?= ucwords(lang('shipping_fee_discount')); ?> : IDR <?= number_format($order_info->free_shipping_fee); ?> </p> <?php endif; ?> <?php if ($order_info->minus_reward != 0) : ?> <?php // echo "<pre>"; // var_dump($order_info); exit(); ?> <p style="text-align: right"><?= ucwords(lang('redeem_point')); ?>: <?= $order_info->minus_reward; ?> <?= ucwords(lang('points')); ?><br> IDR -<?= number_format($order_info->minus_reward_amount); ?> </p> <?php endif; ?> <?php if ($order_info->redeemed_voucher_code != null) : ?> <p style="text-align: right"><?= ucwords(lang('voucher_discount')); ?>: <?= $order_info->redeemed_voucher_code; ?> <?php if ($order_info->redeemed_voucher_type == 'amount') : ?> <br> IDR -<?= number_format($order_info->redeemed_voucher_amount); ?> <?php endif; ?> <?php if ($order_info->redeemed_voucher_type == 'percentage') : ?> <br> <?= number_format($order_info->redeemed_voucher_value); ?>%. IDR -<?= number_format($order_info->redeemed_voucher_amount); ?> <?php endif; ?> </p> <?php endif; ?> <?php if ($order_info->first == 1) : ?> <p style="text-align: right"><?= ucwords(lang('first_purchase')); ?> : IDR -<?= number_format(($order_info->total_amount) * $disc_first); ?> </p> <?php endif; ?> <?php $final_grand_total = $grand_total - $first_discount ?> <p style="border-top: 1px solid black;margin: 0px; padding-top: 5px;font-weight: bold;text-align: right;"> TOTAL: IDR <?= number_format($final_grand_total); ?> </p> <br> <span><?= ucwords(lang('thank_for_order')); ?>.</span><br><br> <a class="btn btn-primary btn-buy" href="<?= base_url(); ?>" style="float: none;background-color: #000 color:white;"><?= ucwords(lang('continue_shopping')); ?></a> <?php echo form_close(); ?> </div> </div> </div>