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/mesinpolesshinemate.com/application/views/ |
Upload File : |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <div class="container"> <div style="color:#F00; text-transform:uppercase; font-weight: bold;" ><?php echo $message?></div> <?php if($this->session->flashdata('summary_message')) : ?> <div style="background:green; color:white; padding:5px; margin-top:10px; text-align:left;"><?= $this->session->flashdata('summary_message'); ?></div> <?php endif; ?> <?php if ($cart = $this->cart->contents()): ?> <div class="row"> <div class="col-sm-12"> <h4 style="font-family:arial; font-weight:normal; width:100%; background:grey; color:white; padding:5px;">ORDER SUMMARY</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 class="row"> <div class="col-sm-4"> <!-- get voucher --> <p>VOUCHER</p> <p>Enter voucher code</p> <?= form_open('summary/get_vouchers'); ?> <div class="row"> <div class="col-sm-6"> <p><input class="form-control" style="font-size: 14px;" type="text" name="voucher_code" placeholder="Voucher Code" required> <?= form_error('voucher_code'); ?> </div> <div class="col-sm-6"> <input style="background:<?= $primary_colortheme; ?>; color:white; border:none;" type="submit" name="submit_voucher_code" value="REDEEM VOUCHER" class="form-control btn"> </div> </div> <?= form_close(); ?> </div> <div class="col-sm-4"> <?php if($point_rewards->active == 'yes') : ?> <p>POINT REWARDS</p> <p>You have <?= number_format($current_point); ?> points. 1 point can redeem IDR <?= number_format($point_rewards->conversion); ?></p> <!-- get point rewards --> <?= form_open('summary/get_pointrewards'); ?> <div class="row"> <div class="col-sm-6"> <input class="form-control" required style="font-size: 14px;" type="text" name="point_rewards" placeholder="Enter no. of points"> <?= form_error('point_rewards'); ?> </div> <div class="col-sm-6"> <input style="background:<?= $primary_colortheme; ?>; color:white; border:none;" type="submit" name="submit_point_rewards" value="REDEEM POINTS" class="form-control btn"> </div> </div> <?= form_close(); ?> <?php endif; ?> </div> <div class="col-sm-4"> <!-- 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') : ?> <?php if($this->session->userdata('total_categoryproduct_promo')) : ?> <?= number_format($discount_voucher); ?>% (-IDR <?= $this->session->userdata('total_categoryproduct_promo'); ?>) <?php elseif($this->session->userdata('total_brandproduct_promo')) : ?> <?= number_format($discount_voucher); ?>% (-IDR <?= $this->session->userdata('total_brandproduct_promo'); ?>) <?php else : ?> <?= number_format($discount_voucher); ?>% (-IDR <?= number_format($discount_voucher/100 * $product_grand_total); ?>)</strong></p> <?php endif; ?> <?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><!-- end col-sm-4--> </div><!-- end row --> </div><!-- end col-sm-12 --> <div class="col-sm-12" style="padding-top:10px; padding-bottom:10px;"> <h4 style="font-family:arial; width:100%; background:grey; color:white; padding:5px;"><strong>STEP 1:</strong> BILLING & SHIPPING ADDRESS</h4> <div class="row"> <div class="col-sm-4"> <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; ?> <?= ucwords($shipping->country); ?></p> <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: 15px; border:none; cursor: pointer; width:200px; padding:7px; font-size: 12px; border-radius:5px;"> <?= form_close(); ?> </p> </div> </div><!-- end col-sm-4--> <div class="col-sm-4"> <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; ?> <?= ucwords($shipping->shipping_country); ?></p> <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: 15px; 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 or Dropship)</p> <?= form_close(); ?> </p> </div> </div><!-- end col-sm-4--> <?php //get dropship status $this->db->select('dropship, dropship_shop_name, dropship_shop_address, dropship_shop_phone, dropship_shop_email, dropship_shop_logo')->from('customers')->where('id_customers', (int) $this->session->userdata('customer')['customer_id']); $dropship = $this->db->get()->row(); $dropship_status = $dropship->dropship; ?> <?php if($dropship_status == 'yes') : ?> <div class="col-sm-4"> <div style="border:1px solid #ddd; padding:10px;"> <h5><strong>Dropship</strong></h5> <p>Send as Dropship ?</p> <?php $attributes = array( 'id' => 'choose_dropship_status' ); echo form_open('summary/choose_dropship_status', $attributes); ?> <p> <?php $data = array( 'name' => 'send_as_dropship', 'value' => 'yes' ); if ($this->session->userdata('choose_dropship_status') == 'yes') { $data['checked'] = TRUE; } else { $data['checked'] = FALSE; } echo form_radio($data); ?> Yes. Delivery slip to customer will use your shop name, logo, and address.</p> <p> <?php $data = array( 'name' => 'send_as_dropship', 'value' => 'no' ); if ($this->session->userdata('choose_dropship_status') == 'no') { $data['checked'] = TRUE; } else { $data['checked'] = FALSE; } echo form_radio($data); ?> No. Delivery slip to customer will use our shop name.</p> <?= form_close(); ?> <br> <p>YOUR SHOP PROFILE</p> <p><img style="width:100px; height:auto; float:left; margin-right:20px; margin-bottom:20px;" src="<?= base_url() . 'uploads/dropship/' . $dropship->dropship_shop_logo; ?>"></p> <p><?= strtoupper($dropship->dropship_shop_name); ?><br> <?= ucwords($dropship->dropship_shop_address); ?><br> Tel: <?= ucwords($dropship->dropship_shop_phone); ?><br> Email: <?= ucwords($dropship->dropship_shop_email); ?></p> <?= form_open('account/profile'); ?> <p> <input type="hidden" name="dropship_summarypage"> <input type="submit" name="submit" value="EDIT YOUR DROPSHIP PROFILE" style="background:<?= $primary_colortheme; ?>; color: white; height: 29px; margin-top: 15px; border:none; cursor: pointer; width:200px; padding:7px; font-size: 12px; border-radius:5px;"></p> <p style="margin-top:10px;">You can change your shop name, logo, address etc</p> <?= form_close(); ?> </p> </div> </div><!-- end col-sm-4--> <?php endif; ?> </div><!-- end row --> </div><!-- end col-sm-12--> <div class="col-sm-12" style="padding-top:10px; padding-bottom:10px;"> <h4 style="font-family:arial; border-bottom:1px solid #ddd; padding-bottom:10px; width:100%; background:grey; color:white; background:grey; color:white; padding:5px;"><strong>STEP 2:</strong> CHOOSE 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->shop_delivery == 1) : ?> <?php //get shop district id $this->db->select('shop_district_id')->from('configuration')->where('id_configuration', 1); $shop_district_id = $this->db->get()->row()->shop_district_id; ?> <?php if($shop_district_id == 151 || $shop_district_id == 152 || $shop_district_id == 153 || $shop_district_id == 154 || $shop_district_id == 155) : ?> <?php //shop is in jakarta area if($shipping->shipping_id_district == 151 || $shipping->shipping_id_district == 152 || $shipping->shipping_id_district == 153 || $shipping->shipping_id_district == 154 || $shipping->shipping_id_district == 155) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/shop_delivery'); ?>"><img src="<?= base_url('assets/frontend/img/shopdelivery.jpg'); ?>"></a><br>SHOP DELIVERY<br>Rp <?= number_format($shop_delivery_fee); ?><br><?= $shopdelivery_duration; ?><br> can use COD for payment </p> </div> <?php endif; ?> <?php else : ?> <?php //shop is not in jabodetabek if($shop_district_id == $shipping->shipping_id_district) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/shop_delivery'); ?>"><img src="<?= base_url('assets/frontend/img/shopdelivery.jpg'); ?>"></a><br>SHOP DELIVERY <?= $shopdelivery_duration; ?><br> can use COD for payment Rp <?= number_format($shop_delivery_fee); ?></p> </div> <?php endif; ?> <?php endif; ?> <?php if($active_carrier->gosend == 1) : ?> <?php //get shop district id $this->db->select('shop_district_id')->from('configuration')->where('id_configuration', 1); $shop_district_id = $this->db->get()->row()->shop_district_id; ?> <?php if($shop_district_id == 151 || $shop_district_id == 152 || $shop_district_id == 153 || $shop_district_id == 154 || $shop_district_id == 155) : ?> <?php //shop is in jakarta area if($shipping->shipping_id_district == 151 || $shipping->shipping_id_district == 152 || $shipping->shipping_id_district == 153 || $shipping->shipping_id_district == 154 || $shipping->shipping_id_district == 155) : ?> <div class="col-sm-2 col-xs-6"> <p><a id="goSend" href="#myModalGosend" data-toggle="modal"><img src="<?= base_url('assets/frontend/img/gosend.jpg'); ?>"></a><br>GO-SEND INSTANT COURIER<br>Rp <?= number_format($active_carrier->gosend_fee); ?>/km<br>Minimum Fee Rp<?= number_format($active_carrier->gosend_minimum_fee); ?></p> </div> <?php endif; ?> <?php else: ?> <?php //shop is not in jakarta //gosend per may 2017 operate in 15 cities, JABODETABEK • BANDUNG • YOGYAKARTA • SEMARANG • SURABAYA • DENPASAR • MEDAN • PALEMBANG • BALIKPAPAN • MAKASSAR • MALANG • SAMARINDA • SOLO • MANADO • BATAM if($shipping->shipping_id_district == 78 || $shipping->shipping_id_district == 79 || $shipping->shipping_id_district == 115 || $shipping->shipping_id_district == 455 || $shipping->shipping_id_district == 456 || $shipping->shipping_id_district == 457 || $shipping->shipping_id_district == 54 || $shipping->shipping_id_district == 55 || $shipping->shipping_id_district == 23 || $shipping->shipping_id_district == 501 || $shipping->shipping_id_district == 399 || $shipping->shipping_id_district == 444 || $shipping->shipping_id_district == 17 || $shipping->shipping_id_district == 114 || $shipping->shipping_id_district == 278 || $shipping->shipping_id_district == 327 || $shipping->shipping_id_district == 19 || $shipping->shipping_id_district == 254 || $shipping->shipping_id_district == 255 || $shipping->shipping_id_district == 256 || $shipping->shipping_id_district == 387 || $shipping->shipping_id_district == 445 || $shipping->shipping_id_district == 267 || $shipping->shipping_id_district == 48) : ?> if($shop_district_id == $shipping->shipping_id_district) : ?> <div class="col-sm-2 col-xs-6"> <p><a id="goSend" href="#myModalGosend" data-toggle="modal"><img src="<?= base_url('assets/frontend/img/shopdelivery.jpg'); ?>"></a><br>GO-SEND INSTANT COURIER<br>Rp <?= number_format($active_carrier->gosend_fee); ?>/km<br>Minimum Fee Rp<?= $active_carrier->gosend_minimum_fee; ?></p> </div> <?php endif; ?> <?php endif; ?> <?php endif; ?> <?php endif; ?> <?php if($active_carrier->jne_reg == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/jne_regular'); ?>"><img src="<?= base_url('assets/frontend/img/jneregular.jpg'); ?>"></a><br>JNE REG (2-4DAYS)<br> <?php if($jne_regular_fee != 0) : ?> Rp <?= number_format($jne_regular_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> <?php if($active_carrier->jne_yes == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/jne_yes'); ?>"><img src="<?= base_url('assets/frontend/img/jneyes.jpg'); ?>"></a><br>JNE YES (1-2DAYS)<br> <?php if($jne_yes_fee != 0) : ?> Rp <?= number_format($jne_yes_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> <?php if($active_carrier->jne_oke == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/jne_oke'); ?>"><img src="<?= base_url('assets/frontend/img/jneoke.jpg'); ?>"></a><br>JNE OKE (5-7DAYS)<br> <?php if($jne_oke_fee != 0) : ?> Rp <?= number_format($jne_oke_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> <?php if($active_carrier->tiki_reg == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/tiki_reg'); ?>"><img src="<?= base_url('assets/frontend/img/tikiregular.jpg'); ?>"></a><br>TIKI REG (2-4DAYS)<br> <?php if($tiki_reg_fee != 0) : ?> Rp <?= number_format($tiki_reg_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> <?php if($active_carrier->tiki_ons == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/tiki_ons'); ?>"><img src="<?= base_url('assets/frontend/img/tikions.jpg'); ?>"></a><br>TIKI ONS (1-2DAYS)<br> <?php if($tiki_ons_fee != 0) : ?> Rp <?= number_format($tiki_ons_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> <?php if($active_carrier->tiki_eco == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/tiki_eco'); ?>"><img src="<?= base_url('assets/frontend/img/tikieco.jpg'); ?>"></a><br>TIKI ECO (5-7DAYS)<br> <?php if($tiki_eco_fee != 0) : ?> Rp <?= number_format($tiki_eco_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> <?php if($active_carrier->pos_regular == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/pos_regular'); ?>"><img src="<?= base_url('assets/frontend/img/pos.jpg'); ?>"></a><br>POS KILAT (2-4DAYS)<br> <?php if($pos_regular_fee != 0) : ?> Rp <?= number_format($pos_regular_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> <?php if($active_carrier->pos_express == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/pos_express'); ?>"><img src="<?= base_url('assets/frontend/img/pos.jpg'); ?>"></a><br>POS EXPRESS (1-3DAYS)<br> <?php if($pos_express_fee != 0) : ?> Rp <?= number_format($pos_express_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> <?php if($active_carrier->rpx_regular == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/rpx_regular'); ?>"><img src="<?= base_url('assets/frontend/img/rpx.jpg'); ?>"></a><br>RPX REG (2-4DAYS)<br> <?php if($rpx_regular_fee != 0) : ?> Rp <?= number_format($rpx_regular_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> <?php if($active_carrier->rpx_retail == 1) : ?> <div class="col-sm-2 col-xs-6"> <p><a href="<?= base_url('summary/choose_carrier/rpx_retail'); ?>"><img src="<?= base_url('assets/frontend/img/rpx.jpg'); ?>"></a><br>RPX RETAIL (2-4DAYS)<br> <?php if($rpx_retail_fee != 0) : ?> Rp <?= number_format($rpx_retail_fee); ?> <?php else : ?> not available <?php endif; ?></p> </div> <?php endif; ?> </div><!-- end row --> <?php else: ?> <div class="row"> <div class="col-sm-2 col-xs-6"> <p><img src="<?= base_url('assets/frontend/img/tikiregular.jpg'); ?>"><br>TIKI INTERNATIONAL</p> </div> </div> <?php endif; ?> <br> <p style="font-size:1.2em;"><strong>YOU CHOOSE <span style="color:<?= $primary_colortheme; ?>"><?= $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_shop_area)) : ?> <p><strong>FREE SHIPPING FOR <?= strtoupper($free_shipping_shop_area); ?> AREA</strong></p> <?php endif; ?> </div><!-- end col-sm-12--> <div class="col-sm-12" 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; width:100%; background:grey; color:white; padding:5px;"><strong>STEP 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; ?> <?php if($payment_display->cod == 1) : ?> <?php if($this->session->userdata('carrier') == 'shop_delivery') : ?> <p style="margin-bottom:10px;"> <?php $data = array( 'name' => 'payment_type', 'class' => 'payment_type', 'id' => 'payment_type_cod', 'value' => 'cod', 'style' => '', ); if ($this->session->userdata('chosen_payment_type') == 'cod') { $data['checked'] = TRUE; } else { $data['checked'] = FALSE; } echo form_radio($data); ?> <img style="width:40px;" src="<?= base_url('assets/frontend/img/cod.jpg'); ?>"> Cash On Delivery (COD)</p> <?php endif; ?> <?php endif; ?> <?= form_close(); ?> </div><!-- end col-sm-12--> <div class="col-sm-12" style="padding-top:10px; padding-bottom:10px;"> <?= 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; width:100%; background:grey; color:white; padding:5px;"><strong>STEP 4:</strong> FINISH CHECKOUT</h4> <h4 style="font-family:arial; border-bottom:1px solid #ddd; padding-bottom:10px;">Customer Note</h4> <?php $data = array( 'name' => 'customer_note', 'rows' => '3', 'cols' => '10', 'style' => 'max-width:100%', 'class' => 'form-control', 'placeholder' => 'Write your note for us if any...' ); echo form_textarea($data); ?> <p style="margin-top:10px;"><input type="checkbox" name="toc" id="toc_checkbox"/><strong> <span style="font-size:100%;">I AGREE TO <a href="#myModalTOC" data-toggle="modal" style="text-decoration:underline;">TERMS & CONDITIONS</a></span></strong></p> <p style="font-size:13px;">You must check <i class="fa fa-check" aria-hidden="true"></i> I agree to Terms & Conditions</p> <p><input type="submit" id="btnSubmit1" name="process_payment" value="PROCESS PAYMENT ›" style="background:<?= $primary_colortheme; ?>; 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> <?php endif; ?> <?= form_close(); ?> <script> //disable submit button after submit, to prevent double submit $(document).ready(function () { $("#btnSubmit1").click(function () { setTimeout(function () { disableButton(); }, 0); }); function disableButton() { $("#btnSubmit1").prop('disabled', true); } }); </script> <p style="margin-bottom:20px;"></p> </div><!-- end col-sm-12--> </div><!-- end row --> <?php else : ?> <div class="row"> <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> </div> <?php endif; ?> </div><!-- end container --> <div id="myModalGosend" role="dialog" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title">Go-Send: Set your destination address on map</h4> </div> <div class="modal-body"> <div class="form-horizontal" style="width: 550px"> <script type="text/javascript" src='https://maps.google.com/maps/api/js?key=AIzaSyBr6fqknPN4gcVRtLzyulnCGCpU9EVM6jw&libraries=places'></script> <script src="<?= base_url('assets/admin/js/locationpicker.jquery.min.js'); ?>"></script> <?= form_open(base_url('summary/choose_carrier/gosend')); ?> <input name="destination_latitude" type="hidden" id="lat" /> <input name="destination_longitude" type="hidden" id="lon" /> <div class="form-group"> <label class="col-sm-4 control-label">Type Address &<br>Move Pin</label> <div class="col-sm-8"> <input type="text" class="form-control" id="address" /> </div> </div> <div id="location" style="width: 100%; height: 300px;"></div> <div class="clearfix"> </div> <!-- <div class="m-t-small"> <label class="p-r-small col-sm-2 control-label">Latitude:</label> <div class="col-sm-3"> <input name="destination_latitude" type="text" class="form-control" style="width: 110px" id="lat" /> </div> <label class="p-r-small col-sm-2 control-label">Longitude:</label> <div class="col-sm-3"> <input name="destination_longitude" type="text" class="form-control" style="width: 110px" id="lon" /> </div> </div> <div class="clearfix"></div> --> <script> var geocoder = new google.maps.Geocoder(); var address = '<?= $shipping->shipping_address; ?>'; geocoder.geocode( {'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { var destinationLatitude = results[0].geometry.location.lat(); var destinationLongitude = results[0].geometry.location.lng(); $('#location').locationpicker({ location: { latitude: destinationLatitude, longitude: destinationLongitude }, inputBinding: { latitudeInput: $('#lat'), longitudeInput: $('#lon'), locationNameInput: $('#address') }, enableAutocomplete: true, onchanged: function (currentLocation, radius, isMarkerDropped) { // Uncomment line below to show alert on each Location Changed event //alert("Location changed. New location (" + currentLocation.latitude + ", " + currentLocation.longitude + ")"); } }); } }); $('#myModalGosend').on('shown.bs.modal', function () { $('#location').locationpicker('autosize'); }); </script> </div> </div> <div class="modal-footer"> <input style="color:white !important; background:grey;" type="submit" name="submitGosend" class="btn btn-primary" value="CONTINUE"> <!-- <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> --> </div> <?= form_close(); ?> </div> <!-- /.modal-content --> </div> <!-- /.modal-dialog --> </div> <!-- /.modal --> <div class="modal fade" id="myModalTOC" role="dialog" style="display: none;"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title">Terms and Conditions</h4> </div> <div class="modal-body"> <?= $toc->toc; ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div><!-- /.modal-content --> </div><!-- /.modal-dialog --> </div> <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', '<?= $primary_colortheme; ?>'); $('#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(); }); //select dropship status and submit post $('input[name=send_as_dropship]').change(function(){ $('form#choose_dropship_status').submit(); }); }); </script>