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/kamariallee.com/public_html/application/views/ |
Upload File : |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <div class="container"> <div id="checkoutStepsTop" class="row"> <div style="color:#F00; text-transform:uppercase; font-weight: bold;" ><?php echo $message?></div> <?php if ($cart = $this->cart->contents()): ?> <div class="col-sm-6" style="padding-top:10px; padding-bottom:10px;"> <h4 style="font-family:arial; border-bottom:1px solid #ddd; padding-bottom:10px;"><strong>1:</strong> BILLING & SHIPPING ADDRESS</h4> <div class="row"> <div class="col-sm-6"> <div style="border:1px solid #ddd; padding:10px;"> <h5><strong>Billing Address</strong></h5> <p><?= ucwords($shipping->recipient_name); ?></p> <p><?= ucwords($shipping->address); ?></p> <p><?= ucwords($shipping->subdistrict); ?> <?= ucwords($shipping->district); ?></p> <p><?= ucwords($shipping->province); ?> <?= $shipping->postcode; ?></p> <p><?= ucwords($shipping->country); ?> <p>Phone: <?= $shipping->phone; ?></p> <p> <?= form_open('account/shipping'); ?> <input type="hidden" name="shipping_summarypage"> <input type="submit" name="submit" value="CHANGE BILLING ADDRESS" style="background:<?= $primary_colortheme; ?>; color: white; height: 29px; margin-top: 25px; border:none; cursor: pointer; width:200px; padding:7px; font-size: 12px; border-radius:5px;"> <?= form_close(); ?> </p> </div> </div><!-- end col-sm-6--> <div class="col-sm-6"> <div style="border:1px solid #ddd; padding:10px;"> <h5><strong>Shipping Address</strong></h5> <!--use shipping address as shipping address--> <p>To: <?= ucwords($shipping->shipping_name); ?></p> <p><?= ucwords($shipping->shipping_address); ?></p> <p><?= ucwords($shipping->shipping_subdistrict); ?> <?= ucwords($shipping->shipping_district); ?></p> <p><?= ucwords($shipping->shipping_province); ?> <?= $shipping->shipping_postcode; ?></p> <p><?= ucwords($shipping->shipping_country); ?> <p>Phone: <?= $shipping->shipping_phone; ?></p> <?php //to store current shipping details in session $this->session->set_userdata('recipient_name', $shipping->shipping_name); $this->session->set_userdata('address', $shipping->shipping_address); $this->session->set_userdata('country', $shipping->shipping_country); $this->session->set_userdata('postcode', $shipping->shipping_postcode); $this->session->set_userdata('phone', $shipping->shipping_phone); $this->session->set_userdata('id_district', $shipping->shipping_id_district); $this->session->set_userdata('id_subdistrict', $shipping->shipping_id_subdistrict); $this->session->set_userdata('id_province', $shipping->shipping_id_province); $this->session->set_userdata('district', $shipping->shipping_district); $this->session->set_userdata('subdistrict', $shipping->shipping_subdistrict); $this->session->set_userdata('province', $shipping->shipping_province); ?> <?= form_open('account/shipping'); ?> <p> <input type="hidden" name="shipping_summarypage"> <input type="submit" name="submit" value="CHANGE SHIPPING ADDRESS" style="background:<?= $primary_colortheme; ?>; color: white; height: 29px; margin-top: 25px; border:none; cursor: pointer; width:200px; padding:7px; font-size: 12px; border-radius:5px;"></p> <p style="margin-top:10px;">You can use different Shipping Address (eg. For Gift)</p> <?= form_close(); ?> </p> </div> </div><!-- end col-sm-6--> </div><!-- end row --> </div><!-- end col-sm-6--> <div class="col-sm-6" style="padding-top:10px; padding-bottom:10px;"> <h4 style="font-family:arial; border-bottom:1px solid #ddd; padding-bottom:10px;"><strong>2:</strong> SHIPPING CARRIER</h4> <?php if($this->session->userdata('carrier_name') != 'Tiki International') : ?> <p>CLICK ON THE LOGO TO CHOOSE CARRIER</p><br> <?php endif; ?> <?php if($this->session->userdata('carrier_name') != 'Tiki International') : ?> <div class="row shippingLogo"> <?php if($active_carrier->jne_reg == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/jne_regular'); ?>"><img src="<?= base_url('assets/frontend/img/jneregular.jpg'); ?>"></a><br>JNE REG (2-4DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->jne_yes == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/jne_yes'); ?>"><img src="<?= base_url('assets/frontend/img/jneyes.jpg'); ?>"></a><br>JNE YES (1-2DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->jne_oke == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/jne_oke'); ?>"><img src="<?= base_url('assets/frontend/img/jneoke.jpg'); ?>"></a><br>JNE OKE (5-7DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->tiki_reg == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/tiki_reg'); ?>"><img src="<?= base_url('assets/frontend/img/tikiregular.jpg'); ?>"></a><br>TIKI REG (2-4DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->tiki_ons == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/tiki_ons'); ?>"><img src="<?= base_url('assets/frontend/img/tikions.jpg'); ?>"></a><br>TIKI ONS (1-2DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->tiki_eco == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/tiki_eco'); ?>"><img src="<?= base_url('assets/frontend/img/tikieco.jpg'); ?>"></a><br>TIKI ECO (5-7DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->pos_regular == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/pos_regular'); ?>"><img src="<?= base_url('assets/frontend/img/pos.jpg'); ?>"></a><br>POS KILAT (2-4DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->pos_express == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/pos_express'); ?>"><img src="<?= base_url('assets/frontend/img/pos.jpg'); ?>"></a><br>POS EXPRESS (1-3DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->rpx_regular == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/rpx_regular'); ?>"><img src="<?= base_url('assets/frontend/img/rpx.jpg'); ?>"></a><br>RPX REG (2-4DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->rpx_retail == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/rpx_retail'); ?>"><img src="<?= base_url('assets/frontend/img/rpx.jpg'); ?>"></a><br>RPX RETAIL (2-4DAYS)</p> </div> <?php endif; ?> <?php if($active_carrier->shop_delivery == 1) : ?> <div class="col-sm-4 col-xs-6"> <p><a href="<?= base_url('summary/index/shop_delivery'); ?>"><img src="<?= base_url('assets/frontend/img/shopdelivery.jpg'); ?>"></a><br>SHOP DELIVERY <?= $shopdelivery_duration; ?></p> </div> <?php endif; ?> </div><!-- end row --> <?php else: ?> <div class="row"> <div class="col-sm-4 col-xs-6"> <p><img src="<?= base_url('assets/frontend/img/tikiregular.jpg'); ?>"><br>TIKI INTERNATIONAL</p> </div> </div> <?php endif; ?> <!-- <p><strong>YOU CHOOSE <span style="color:<?= $primary_colortheme; ?>"><?= $this->session->userdata('carrier_name'); ?></span></strong></p> --> <p><strong>YOU CHOOSE <span style="color:#E14C4C;"><?= $this->session->userdata('carrier_name'); ?></span></strong></p> <?php if($total_shipping_fee === NULL) : ?> <p><strong style="color:red;"><?= $this->session->userdata('carrier_name'); ?> IS CURRENTLY NOT AVAILABLE. PLEASE CHOOSE OTHER CARRIER.</strong></p> <?php endif; ?> <?php if(isset($free_shipping_jakarta)) : ?> <p><strong>FREE SHIPPING JAKARTA AREA</strong></p> <?php endif; ?> </div><!-- end col-sm-6--> </div><!-- end row--> <div id="checkoutStepsBottom" class="row"> <div class="col-sm-6" style="padding-top:10px; padding-bottom:10px;"> <?php $attributes = array( 'id' => 'choose_payment' ); echo form_open('summary/choose_payment', $attributes); ?> <h4 style="font-family:arial; border-bottom:1px solid #ddd; padding-bottom:10px;"><strong>3:</strong> CHOOSE PAYMENT METHOD</h4> <?php if($payment_display->bank_transfer == 1) : ?> <p style="margin-bottom:10px;"> <?php $data = array( 'name' => 'payment_type', 'class' => 'payment_type', 'id' => 'payment_type_bank_transfer', 'value' => 'bank_transfer', 'style' => '' ); if ($this->session->userdata('chosen_payment_type') == 'bank_transfer') { $data['checked'] = TRUE; } else { $data['checked'] = FALSE; } echo form_radio($data); ?> <img style="position:relative; top:0px;" src="<?= base_url('assets/frontend/img/banktransfer.jpg'); ?>"> Manual Bank Transfer</p> <?php endif; ?> <?php if($payment_display->credit_card == 1) : ?> <p style="margin-bottom:10px;"> <?php $data = array( 'name' => 'payment_type', 'class' => 'payment_type', 'id' => 'payment_type_veritrans', 'value' => 'veritrans', 'style' => '' ); if ($this->session->userdata('chosen_payment_type') == 'veritrans') { $data['checked'] = TRUE; } else { $data['checked'] = FALSE; } echo form_radio($data); ?> <img style="position:relative; top:0px;" src="<?= base_url('assets/frontend/img/creditcard.jpg'); ?>"> Credit Card (Visa, Mastercard)</p> <?php if($this->session->userdata('veritrans_transaction_fee') != 0 || $this->session->userdata('veritrans_admin_fee') != 0) : ?> <p>Rp <?= number_format(($this->session->userdata('veritrans_transaction_fee')/100 * $grand_total) + $this->session->userdata('veritrans_admin_fee')); ?> credit card admin.</p> <?php endif; ?> <?php endif; ?> <?php if($payment_display->virtual_account == 1) : ?> <p style="margin-bottom:10px;"> <?php $data = array( 'name' => 'payment_type', 'class' => 'payment_type', 'id' => 'payment_type_virtualaccount', 'value' => 'virtualaccount', 'style' => '', ); if ($this->session->userdata('chosen_payment_type') == 'virtualaccount') { $data['checked'] = TRUE; } else { $data['checked'] = FALSE; } echo form_radio($data); ?> <img style="" src="<?= base_url('assets/frontend/img/virtualaccount.jpg'); ?>"> Virtual Account (ATM Bersama, Prima, Alto)</p> <?php if($this->session->userdata('virtualaccount_admin_fee') != 0) : ?> <p>Rp <?= number_format(($this->session->userdata('virtualaccount_admin_fee'))); ?> Virtual Account admin.</p> <?php endif; ?> <?php endif; ?> <?= form_close(); ?> </div><!-- end col-sm-6--> <div class="col-sm-6" style="padding-top:10px; padding-bottom:10px;"> <h4 style="font-family:arial; border-bottom:1px solid #ddd; padding-bottom:10px;"><strong>4:</strong> TERMS & CONDITIONS</h4> <p><strong>You must agree to Terms and Conditions</strong></p> <div style="height: 150px; overflow-y: scroll; border:1px solid #cccccc; padding:5px;"> <?= ucfirst($toc->toc); ?> </div> <br> <p><input type="checkbox" name="toc" id="toc_checkbox"/><strong> <span style="font-size:100%;">I AGREE TO TERMS & CONDITIONS</span></strong></p> <br> </div><!-- end col-sm-6--> </div><!-- end row --> <div class="row"> <div class="col-sm-12"> <h4><strong>YOUR ORDER SUMMARY</strong></h4> <div class="table-responsive"> <div class="myCart"> <table class="table" style="border-bottom:1px solid #999999; width: 100%; font-family: arial;"> <thead> <tr > <th style="width:13%">IMAGE</th> <th style="width:36%">PRODUCT NAME</th> <th style="width:15%; text-align: left;">UNIT PRICE</th> <th style="width:15%; text-align: left;">QUANTITY</th> <th style="width:15%; text-align: left;">SUB TOTAL</th> <th style="width:6%">DELETE</th> </tr> </thead> <tbody> <?php $product_grand_total = 0; foreach ($cart as $item): ?> <tr> <td> <?php //get product image $image_thumb = $this->product_m->get_image($item['id']); ?> <p style="padding-right: 10px;"><img src="<?= base_url('uploads/product/thumbnail') .'/'. $image_thumb->image1; ?>" alt="" title="" /></p> </td> <td><?php echo strtoupper($item['name']); ?></td> <td>IDR <?php echo number_format($item['price']); ?></td> <td style="padding-left: 28px;"><?php echo number_format($item['qty']); ?></td> <?php $product_grand_total = $product_grand_total + $item['subtotal']; ?> <td>IDR <?php echo number_format($item['subtotal']); ?></td> <td style="padding-left: 30px;"><a title="Delete Item" href="<?= base_url('summary/remove') . '/' . $item['rowid']; ?>">X</a></td> </tr> <?php endforeach; ?> </tbody> </table> </div><!-- end myCart --> </div><!-- end table-responsive --> <div style="text-align: left; float:left; padding-right:30px;"> <!-- get voucher --> <p>REDEEM VOUCHER</p> <p>Have voucher code? Enter it here</p> <?= form_open('summary/get_vouchers'); ?> <p><input style="font-size: 14px;" type="text" name="voucher_code" placeholder="Voucher Code" required> <input style="position:relative; top:-2px; background:<?= $primary_colortheme; ?>; color:white; border:none; padding:6px 12px;" type="submit" name="submit_voucher_code" value="REDEEM VOUCHER" class="btn"><br> <?= form_error('voucher_code'); ?> <?= form_close(); ?> </div> <?php if($point_rewards->active == 'yes') : ?> <div style="text-align: left; float:left;"> <p>REDEEM POINT REWARDS</p> <p>You have <?= number_format($current_point); ?> points. 1 point = discount of IDR <?= number_format($point_rewards->conversion); ?></p> <!-- get point rewards --> <?= form_open('summary/get_pointrewards'); ?> <p><input required style="font-size: 14px;" type="text" name="point_rewards" placeholder="Enter no. of points"> <input style="position:relative; top:-2px; background:<?= $primary_colortheme; ?>; color:white; border:none; padding:6px 12px;" type="submit" name="submit_point_rewards" value="REDEEM POINTS" class="btn"><br> <?= form_error('point_rewards'); ?> <?= form_close(); ?> </div> <?php endif; ?> <div style="text-align: left; float:right;"> <!-- Point rewards --> <?php if($point_rewards->active == 'yes') : ?> <p style="text-align: right;"><strong> Bonus Point Reward: + <?= number_format(floor($product_grand_total/$point_rewards->ratio)); ?> point </strong></p> <?php $this->session->set_userdata('add_point_reward', number_format(floor($product_grand_total /$point_rewards->ratio))); ?> <?php if ($this->session->userdata('chosen_point')) : ?> <p style="text-align: right;"><strong> Redeem Point Reward <?= $this->session->userdata('chosen_point'); ?> point. (-IDR <?= number_format($this->session->userdata('chosen_point_discount')); ?>) </strong></p> <?php $this->session->set_userdata('minus_point_reward', $this->session->userdata('chosen_point')); ?> <?php endif; ?> <?php endif; ?> <!-- Vouchers --> <p style="text-align: right;"><strong> <?php if($this->session->userdata('chosen_voucher_code')) : ?> <?= 'Promo Code ' . strtoupper($this->session->userdata('chosen_voucher_code')); ?> <?php $discount_voucher = $this->session->userdata('chosen_voucher_discount'); ?> <?php if ($this->session->userdata('chosen_voucher_type') == 'amount') : ?> <?= '(-IDR ' . number_format($discount_voucher); ?>)</strong></p> <?php elseif($this->session->userdata('chosen_voucher_type') == 'percentage') : ?> <?= number_format($discount_voucher); ?>% (-IDR <?= number_format($discount_voucher/100 * $product_grand_total); ?>)</strong></p> <?php else : ?> Free Shipping <?php endif; ?> <?php endif; ?> <!-- TAX --> <p style="text-align: right; border-top:1px solid #999999; font-weight: bold; "> <?php if($tax_active == 'yes') : ?> <?php $tax_amount = $product_grand_total * 10/100; ?> <span>Tax 10%: IDR <?php echo number_format($tax_amount); ?></span><br> <?php $this->session->set_userdata('tax', $tax_amount); ?> <?php endif; ?> </p> <!-- SHIPPING FEE --> <p style="text-align: right;"><strong> <?= $this->session->userdata('carrier_name'); ?> <?php if ($total_shipping_fee === 0) : ?> Free Shipping</strong></p> <?php elseif ($total_shipping_fee === NULL) : ?> Not Available</strong></p> <?php else : ?> IDR <?= number_format($total_shipping_fee); ?></strong></p> <?php endif; ?> <!-- CREDIT CARD --> <?php if ($this->session->userdata('chosen_payment_type') == 'veritrans') : ?> <?php if($this->session->userdata('veritrans_transaction_fee') != 0 || $this->session->userdata('veritrans_admin_fee') != 0) : ?> <p style="text-align: right;"><strong> <?php //create new session to store veritrans fee $this->session->set_userdata('veritrans_total_fee', ($grand_total * $this->session->userdata('veritrans_transaction_fee')/100) + $this->session->userdata('veritrans_admin_fee')); ?> Credit Card Fee IDR <?= number_format(($grand_total * $this->session->userdata('veritrans_transaction_fee')/100) + $this->session->userdata('veritrans_admin_fee')); ?></strong></p> <?php //set final grand total $grand_total = $grand_total + $this->session->userdata('veritrans_total_fee'); ?> <?php endif; ?> <?php endif; ?> <!-- VIRTUAL ACCOUNT --> <?php if ($this->session->userdata('chosen_payment_type') == 'virtualaccount') : ?> <?php if($this->session->userdata('virtualaccount_admin_fee') != 0) : ?> <p style="text-align: right;"><strong> <?php //create new session to store virtualaccount $this->session->set_userdata('virtualaccount_total_fee', $this->session->userdata('virtualaccount_admin_fee')); ?> VIRTUAL ACCOUNT FEE IDR <?= number_format($this->session->userdata('virtualaccount_admin_fee')); ?></strong></p> <?php //set final grand total $grand_total = $grand_total + $this->session->userdata('virtualaccount_total_fee'); ?> <?php endif; ?> <?php endif; ?> <p style="text-align: right; border-bottom:1px solid #999999; padding-bottom: 10px; margin-bottom: 10px; font-weight: bold; "><span style="font-size:120%;">GRAND TOTAL: IDR <?php echo number_format($grand_total); ?></span></p> <?php //to store total amount in session $this->session->set_userdata('grand_total', $grand_total); //to store subtotal for products only amount in session, will be used in payment controller for veritrans $this->session->set_userdata('product_grand_total', $product_grand_total); //to get grand total without shipping fee, inorder to check for voucher $this->session->set_userdata('grand_total_without_shipping', $grand_total - $total_shipping_fee); //store total shipping fee into session $this->session->set_userdata('total_shipping_fee', $total_shipping_fee); ?> </div> </div><!-- end col-sm-12 --> </div><!-- end row --> <div class="row"> <div class="col-sm-12" style="padding-top:10px; padding-bottom:10px; text-align:right;"> <?= form_open('payment/process_payment'); ?> <?php if ($total_shipping_fee === NULL) : ?> <!-- hide process payment button because shipping fee is not available --> <?php else : ?> <h4 style="font-family:arial; border-bottom:1px solid #ddd; padding-bottom:10px;"><strong>5:</strong> PROCESS PAYMENT</h4> <p><input type="submit" name="process_payment" value="PROCESS PAYMENT ›" style="background:grey; border: medium none; color: white; cursor: pointer; border-radius:5px; font-size: 14px; height: 49px; margin-top: 15px; padding: 12px; width: 200px;" id="process_payment"></p> <p style="font-size:13px;">You must check <i class="fa fa-check" aria-hidden="true"></i> I agree to Terms & Conditions (STEP 4)</p> <?php endif; ?> <?= form_close(); ?> <p style="margin-bottom:20px;"></p> </div><!-- end col-sm-12--> </div><!-- end row --> <?php else : ?> <div class="col-sm-12"> <p><a id="button_continue" style="float:left;" href="<?= base_url(); ?>"><i class="fa fa-angle-left fa-lg" aria-hidden="true"></i> CONTINUE SHOPPING</a><br></p> </div> <?php endif; ?> </div><!-- end container --> <div id="footer" > <script type="text/javascript"> $( document ).ready(function() { //disable button on initial page load $('#process_payment').prop('disabled', true); $('#process_payment').css('background-color', 'grey'); $('#process_payment').css('opacity', '0.5'); $('#toc_checkbox').click(function () { if($('#toc_checkbox').prop('checked') == true){ $('#process_payment').prop('disabled', false); $('#process_payment').css('background-color', 'grey'); $('#process_payment').css('opacity', '1'); } if($('#toc_checkbox').prop('checked') == false){ $('#process_payment').prop('disabled', true); $('#process_payment').css('background-color', 'grey'); $('#process_payment').css('opacity', '0.5'); } }); //select payment type and submit post $('input[name=payment_type]').change(function(){ $('form#choose_payment').submit(); }); }); </script>