Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php global $wpo_wcpdf; ?>
- <?php do_action( 'wpo_wcpdf_before_document', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>
- <div class="grey-head">
- <table class="head container pd2">
- <tr>
- <td class="shop-info">
- </td>
- <td class="header">
- <?php
- if( $wpo_wcpdf->get_header_logo_id() ) {
- $wpo_wcpdf->header_logo();
- } else {
- echo apply_filters( 'wpo_wcpdf_invoice_title', __( 'Invoice', 'wpo_wcpdf' ) );
- }
- ?>
- </td>
- </tr>
- </table>
- <h1 class="document-type-label pd2">
- <?php if( $wpo_wcpdf->get_header_logo_id() ) echo apply_filters( 'wpo_wcpdf_invoice_title', __( 'Invoice', 'wpo_wcpdf' ) ); ?>
- -Number: <?php $wpo_wcpdf->invoice_number(); ?></h1>
- <?php do_action( 'wpo_wcpdf_after_document_label', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>
- <table class="order-data-addresses pd2">
- <tr>
- <td class="address billing-address">
- <!-- <h3><?php _e( 'Billing Address:', 'wpo_wcpdf' ); ?></h3> -->
- <?php $wpo_wcpdf->billing_address(); ?>
- <?php if ( isset($wpo_wcpdf->settings->template_settings['invoice_email']) ) { ?>
- <div class="billing-email"><?php $wpo_wcpdf->billing_email(); ?></div>
- <?php } ?>
- <?php if ( isset($wpo_wcpdf->settings->template_settings['invoice_phone']) ) { ?>
- <div class="billing-phone"><?php $wpo_wcpdf->billing_phone(); ?></div>
- <?php } ?>
- </td>
- <td class="address shipping-address">
- <?php if ( isset($wpo_wcpdf->settings->template_settings['invoice_shipping_address']) && $wpo_wcpdf->ships_to_different_address()) { ?>
- <h3><?php _e( 'Ship To:', 'wpo_wcpdf' ); ?></h3>
- <?php $wpo_wcpdf->shipping_address(); ?>
- <?php } ?>
- </td>
- <td class="order-data">
- <table>
- <?php do_action( 'wpo_wcpdf_before_order_data', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>
- <?php if ( isset($wpo_wcpdf->settings->template_settings['display_date']) && $wpo_wcpdf->settings->template_settings['display_date'] == 'invoice_date') { ?>
- <tr class="invoice-date">
- <th><?php _e( 'Invoice Date', 'wpo_wcpdf' ); ?></th>
- <td>: <?php $wpo_wcpdf->invoice_date(); ?></td>
- </tr>
- <?php } ?>
- <tr class="order-number">
- <th><?php _e( 'Order Number', 'wpo_wcpdf' ); ?></th>
- <td>: <?php $wpo_wcpdf->order_number(); ?></td>
- </tr>
- <tr class="payment-method">
- <th><?php _e( 'Payment Method', 'wpo_wcpdf' ); ?></th>
- <td>: <?php $wpo_wcpdf->payment_method(); ?></td>
- </tr>
- <?php do_action( 'wpo_wcpdf_after_order_data', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>
- </table>
- </td>
- </tr>
- </table>
- </div>
- <?php do_action( 'wpo_wcpdf_before_order_details', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>
- <table class="order-details">
- <thead>
- <tr>
- <th valign="middle" class="product"><?php _e('Product', 'wpo_wcpdf'); ?></th>
- <th valign="middle" class="quantity"><?php _e(' Users', 'wpo_wcpdf'); ?></th>
- <th valign="middle" class="price"><?php _e('Price', 'wpo_wcpdf'); ?></th>
- </tr>
- </thead>
- <tbody>
- <?php $items = $wpo_wcpdf->get_order_items(); if( sizeof( $items ) > 0 ) : foreach( $items as $item_id => $item ) : ?>
- <tr class="<?php echo apply_filters( 'wpo_wcpdf_item_row_class', $item_id, $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order, $item_id ); ?>">
- <td class="product">
- <?php $description_label = __( 'Description', 'wpo_wcpdf' ); // registering alternate label translation ?>
- <span class="item-name"><?php echo $item['name']; ?></span>
- <?php do_action( 'wpo_wcpdf_before_item_meta', $wpo_wcpdf->export->template_type, $item, $wpo_wcpdf->export->order ); ?>
- <!--<span class="item-meta"><?php echo $item['meta']; ?></span>-->
- <dl class="meta">
- <?php $description_label = __( 'SKU', 'wpo_wcpdf' ); // registering alternate label translation ?>
- <?php if( !empty( $item['sku'] ) ) : ?><dt class="sku"><?php _e( 'SKU:', 'wpo_wcpdf' ); ?></dt><dd class="sku"><?php echo $item['sku']; ?></dd><?php endif; ?>
- </dl>
- <?php do_action( 'wpo_wcpdf_after_item_meta', $wpo_wcpdf->export->template_type, $item, $wpo_wcpdf->export->order ); ?>
- </td>
- <td class="quantity"><?php echo $item['quantity']; ?></td>
- <td class="price"><?php echo $item['order_price']; ?></td>
- </tr>
- <?php endforeach; endif; ?>
- </tbody>
- <tfoot>
- <tr class="no-borders">
- <td class="no-borders">
- <div class="customer-notes">
- <?php do_action( 'wpo_wcpdf_before_customer_notes', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>
- <?php if ( $wpo_wcpdf->get_shipping_notes() ) : ?>
- <h3><?php _e( 'Customer Notes', 'wpo_wcpdf' ); ?></h3>
- <?php $wpo_wcpdf->shipping_notes(); ?>
- <?php endif; ?>
- <?php do_action( 'wpo_wcpdf_after_customer_notes', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>
- </div>
- </td>
- <td class="no-borders" colspan="2">
- <table class="totals">
- <tfoot>
- <?php foreach( $wpo_wcpdf->get_woocommerce_totals() as $key => $total ) : ?>
- <tr class="<?php echo $key; ?>">
- <td class="no-borders"></td>
- <th class="description"><?php echo $total['label']; ?></th>
- <td class="price"><span class="totals-price"><?php echo $total['value']; ?></span></td>
- </tr>
- <?php endforeach; ?>
- </tfoot>
- </table>
- </td>
- </tr>
- </tfoot>
- </table>
- <div class="footer-text">The order has been delivered on: <?php $wpo_wcpdf->invoice_date(); ?><br><span>Thank you very much for your business.<span><br><br><span>For EU customers with a valid VAT-ID: No VAT added to this invoice according to Reverse Charge.</span></div>
- <?php do_action( 'wpo_wcpdf_after_order_details', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>
- <?php
- $payment_method = method_exists($order, 'get_payment_method') ? $order->get_payment_method() : $order->payment_method;
- echo $payment_method;
- if ($payment_method == 'braintree_credit_card') { ?>
- <?php if ( $wpo_wcpdf->get_footer() ): ?>
- <div id="footer">
- <?php $wpo_wcpdf->footer(); ?>
- </div><!-- #letter-footer -->
- <?php endif; ?>
- <?php } ?>
- <?php do_action( 'wpo_wcpdf_after_document', $wpo_wcpdf->export->template_type, $wpo_wcpdf->export->order ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement