PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 1.6.2
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v1.6.2
2.7.0 2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 All 43 releases
sellkit / includes / elementor / modules / order-cart-details / templates / order-details.php

order-details.php in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster 1.6.2, at includes/elementor/modules/order-cart-details/templates/order-details.php

88 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Order details
4 *
5 * This template can be overridden by copying it to yourtheme/woocommerce/order/order-details.php.
6 *
7 * HOWEVER, on occasion WooCommerce will need to update template files and you
8 * (the theme developer) will need to copy the new files to your theme to
9 * maintain compatibility. We try to do this as little as possible, but it does
10 * happen. When this occurs the version of the template file will be bumped and
11 * the readme will list any important changes.
12 *
13 * @see https://docs.woocommerce.com/document/template-structure/
14 * @package WooCommerce\Templates
15 * @version 3.7.0
16 */
17
18 defined( 'ABSPATH' ) || exit;
19
20 if ( $order ) {
21 $show_purchase_note = $order->has_status( apply_filters( 'woocommerce_purchase_note_order_statuses', array( 'completed', 'processing' ) ) );
22 $downloads = $order->get_downloadable_items();
23 $show_downloads = $order->has_downloadable_item() && $order->is_download_permitted();
24 }
25
26 if ( ! empty( $show_downloads ) ) {
27 wc_get_template(
28 'order/order-downloads.php',
29 array(
30 'downloads' => $downloads,
31 'show_title' => true,
32 )
33 );
34 }
35 ?>
36 <section class="woocommerce-order-details sellkit-order-cart-detail">
37 <?php do_action( 'woocommerce_order_details_before_order_table', $order ); ?>
38
39 <table class="woocommerce-table woocommerce-table--order-details shop_table order_details">
40 <?php if ( ! empty( $heading ) ) : ?>
41 <thead>
42 <tr>
43 <th class="woocommerce-table__product-name product-name sellkit-cart-detail-heading"><?php echo $label; ?></th>
44 <th class="woocommerce-table__product-table product-total"></th>
45 </tr>
46 </thead>
47 <?php endif; ?>
48 <tbody>
49 <?php
50 do_action( 'woocommerce_order_details_before_order_table_items', $order );
51
52 if ( $cart_items ) {
53 foreach ( $order_items as $item_id => $item ) {
54 if ( $order ) {
55 $product = $item->get_product();
56 $purchase_note = $product ? $product->get_purchase_note() : '';
57 }
58
59 require sellkit()->plugin_dir() . 'includes/elementor/modules/order-cart-details/templates/order-details-item.php';
60 }
61 }
62
63 do_action( 'woocommerce_order_details_after_order_table_items', $order );
64 ?>
65 </tbody>
66 <tfoot>
67 <?php
68 foreach ( $order_items_total as $key => $total ) {
69 ?>
70 <tr>
71 <th scope="row"><?php echo esc_html( $total['label'] ); ?></th>
72 <td><?php echo ( 'payment_method' === $key ) ? esc_html( $total['value'] ) : wp_kses_post( $total['value'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></td>
73 </tr>
74 <?php
75 }
76 ?>
77 <?php if ( $order && $order->get_customer_note() ) : ?>
78 <tr>
79 <th><?php esc_html_e( 'Note:', 'woocommerce' ); ?></th>
80 <td><?php echo wp_kses_post( nl2br( wptexturize( $order->get_customer_note() ) ) ); ?></td>
81 </tr>
82 <?php endif; ?>
83 </tfoot>
84 </table>
85
86 <?php do_action( 'woocommerce_order_details_after_order_table', $order ); ?>
87 </section>
88