PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.2.5
ShopBuilder – WooCommerce Builder For Elementor v3.2.5
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / templates / elementor / checkout / customized-order-review.php

customized-order-review.php in ShopBuilder – WooCommerce Builder For Elementor 3.2.5, at templates/elementor/checkout/customized-order-review.php

86 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4 ?>
5 <table class="shop_table woocommerce-checkout-review-order-table">
6 <thead>
7 <tr>
8 <th class="product-name"><?php esc_html_e( 'Product', 'shopbuilder' ); ?></th>
9 <th class="product-total"><?php esc_html_e( 'Subtotal', 'shopbuilder' ); ?></th>
10 </tr>
11 </thead>
12 <tbody>
13 <?php
14 do_action( 'woocommerce_review_order_before_cart_contents' );
15
16 foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
17 $_product = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );
18
19 if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_checkout_cart_item_visible', true, $cart_item, $cart_item_key ) ) {
20 ?>
21 <tr class="<?php echo esc_attr( apply_filters( 'woocommerce_cart_item_class', 'cart_item', $cart_item, $cart_item_key ) ); ?>">
22 <td class="product-name">
23 <?php echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key ) ) . '&nbsp;'; ?>
24 <?php echo apply_filters( 'woocommerce_checkout_cart_item_quantity', ' <strong class="product-quantity">' . sprintf( '&times;&nbsp;%s', $cart_item['quantity'] ) . '</strong>', $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
25 <?php echo wc_get_formatted_cart_item_data( $cart_item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
26 </td>
27 <td class="product-total">
28 <?php echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
29 </td>
30 </tr>
31 <?php
32 }
33 }
34
35 do_action( 'woocommerce_review_order_after_cart_contents' );
36 ?>
37 </tbody>
38 <tfoot>
39
40 <tr class="cart-subtotal">
41 <th><?php esc_html_e( 'Subtotal', 'shopbuilder' ); ?></th>
42 <td><?php wc_cart_totals_subtotal_html(); ?></td>
43 </tr>
44
45 <?php foreach ( WC()->cart->get_coupons() as $code => $coupon ) : ?>
46 <tr class="cart-discount coupon-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
47 <th><?php wc_cart_totals_coupon_label( $coupon ); ?></th>
48 <td><?php wc_cart_totals_coupon_html( $coupon ); ?></td>
49 </tr>
50 <?php endforeach; ?>
51
52 <?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
53 <tr class="fee">
54 <th><?php echo esc_html( $fee->name ); ?></th>
55 <td><?php wc_cart_totals_fee_html( $fee ); ?></td>
56 </tr>
57 <?php endforeach; ?>
58
59 <?php if ( wc_tax_enabled() && ! WC()->cart->display_prices_including_tax() ) : ?>
60 <?php if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) : ?>
61 <?php foreach ( WC()->cart->get_tax_totals() as $code => $tax ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?>
62 <tr class="tax-rate tax-rate-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
63 <th><?php echo esc_html( $tax->label ); ?></th>
64 <td><?php echo wp_kses_post( $tax->formatted_amount ); ?></td>
65 </tr>
66 <?php endforeach; ?>
67 <?php else : ?>
68 <tr class="tax-total">
69 <th><?php echo esc_html( WC()->countries->tax_or_vat() ); ?></th>
70 <td><?php wc_cart_totals_taxes_total_html(); ?></td>
71 </tr>
72 <?php endif; ?>
73 <?php endif; ?>
74
75 <?php do_action( 'woocommerce_review_order_before_order_total' ); ?>
76
77 <tr class="order-total">
78 <th><?php esc_html_e( 'Total', 'shopbuilder' ); ?></th>
79 <td><?php wc_cart_totals_order_total_html(); ?></td>
80 </tr>
81
82 <?php do_action( 'woocommerce_review_order_after_order_total' ); ?>
83
84 </tfoot>
85 </table>
86