PATH:
home
/
letacommog
/
letaweb
/
admin
/
views
/
builder
/
ecommerce
/
order
<?php $paypal_order = BPaypal_Order::model()->find('order_id=:order_id', array(':order_id'=>$order->id) ); if(!isset($paypal_order)) { return; } //$captured = 0;//number_format($this->model_payment_pp_express->totalCaptured($paypal_order['paypal_order_id']), 2); //$refunded = 0;//number_format($this->model_payment_pp_express->totalRefundedOrder($paypal_order['paypal_order_id']), 2); //$paypal_order['captured'] = $captured; //$paypal_order['refunded'] = $refunded; $paypal_order['remaining'] = number_format($paypal_order['total'] - $paypal_order['captured'], 2); ?> <h2><?php echo Language::term('text_payment_info'); ?></h2> <table class="table table-striped table-bordered"> <tr> <td><?php echo Language::term('text_capture_status'); ?></td> <td id="capture_status"><?php echo $paypal_order['capture_status']; ?></td> </tr> <tr> <td><?php echo Language::term('text_amount_auth'); ?></td> <td><?php echo $paypal_order['total']; ?> <?php if ($paypal_order['capture_status'] != 'Complete') { ?> <a onclick="doVoid();" class="button paypal_capture btn btn-primary" id="button-void"><?php echo Language::term('button_void'); ?></a> <span class="btn btn-primary" id="img_loading_void" style="display:none;"><i class="fa fa-circle-o-notch fa-spin fa-lg"></i></span> <?php } ?></td> </tr> <tr> <td><?php echo Language::term('text_amount_captured'); ?></td> <td id="paypal_captured"><?php echo $paypal_order['captured']; ?></td> </tr> <tr> <td><?php echo Language::term('text_amount_refunded'); ?></td> <td id="paypal_refunded"><?php echo $paypal_order['refunded']; ?></td> </tr> <?php if ($paypal_order['capture_status'] != 'Complete') { ?> <tr class="paypal_capture"> <td><?php echo Language::term('text_capture_amount'); ?></td> <td><p> <input type="checkbox" name="paypal_capture_complete" id="paypal_capture_complete" value="1"/> <?php echo Language::term('text_complete_capture'); ?></p> <p> <input type="text" size="10" id="paypal_capture_amount" value="<?php echo $paypal_order['remaining']; ?>"/> <a class="btn btn-primary" onclick="capture();" id="button_capture"><?php echo Language::term('button_capture'); ?></a> <span class="btn btn-primary" id="img_loading_capture" style="display:none;"><i class="fa fa-circle-o-notch fa-spin fa-lg"></i></span> </p></td> </tr> <?php } ?> <tr> <td><?php echo Language::term('text_transactions'); ?>:</td> <td><table class="table table-striped table-bordered" id="paypal_transactions"> <thead> <tr> <td class="text-left"><strong><?php echo Language::term('column_trans_id'); ?></strong></td> <td class="text-left"><strong><?php echo Language::term('column_amount'); ?></strong></td> <td class="text-left"><strong><?php echo Language::term('column_type'); ?></strong></td> <td class="text-left"><strong><?php echo Language::term('column_status'); ?></strong></td> <td class="text-left"><strong><?php echo Language::term('column_pend_reason'); ?></strong></td> <td class="text-left"><strong><?php echo Language::term('column_date_added'); ?></strong></td> <td class="text-left"><strong><?php echo Language::term('column_action'); ?></strong></td> </tr> </thead> <tbody> <?php foreach($paypal_order['transactions'] as $transaction) { ?> <tr> <td class="text-left"><?php echo $transaction['transaction_id']; ?></td> <td class="text-left"><?php echo $transaction['amount']; ?></td> <td class="text-left"><?php echo $transaction['payment_type']; ?></td> <td class="text-left"><?php echo $transaction['payment_status']; ?></td> <td class="text-left"><?php echo $transaction['pending_reason']; ?></td> <td class="text-left"><?php echo $transaction['date_added']; ?></td> <td class="text-left"><?php if ($transaction['transaction_id']) { ?> <a href="<?php //echo $view_link .'&transaction_id='.$transaction['transaction_id']; ?>"><?php echo Language::term('text_view'); ?></a> <?php if ($transaction['payment_type'] == 'instant' && ($transaction['payment_status'] == 'Completed'|| $transaction['payment_status'] == 'Partially-Refunded')) { ?> <a href="<?php //echo $refund_link .'&transaction_id='.$transaction['transaction_id']; ?>"><?php echo Language::term('text_refund'); ?></a> <?php } ?> <?php } else { ?> <a onclick="resendTransaction(this); return false;" href="<?php //echo $resend_link . '&paypal_order_transaction_id=' . $transaction['paypal_order_transaction_id']; ?>"><?php echo Language::term('text_resend'); ?></a> <?php } ?></td> </tr> <?php } ?> </tbody> </table></td> </tr> </table>
[+]
..
[-] orderdetail_info.php
[edit]
[-] paypal_order.php
[edit]
[-] order.php
[edit]
[+]
payment
[-] orderdetail_comment.php
[edit]
[-] orderdetail_product.php
[edit]
[-] orderdetail_customer.php
[edit]
[-] order_invoice.php
[edit]
[-] status_tab.php
[edit]
[-] payment_status_tab.php
[edit]
[-] cart_tab.php
[edit]
[-] orderdetail_shipping_address.php
[edit]
[-] order_detail - Copy.php
[edit]
[-] order_detail.php
[edit]
[-] orderdetail_total.php
[edit]