| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template variables: |
| 4 |
* |
| 5 |
* @var $controllers array Widgets/Addons Settings |
| 6 |
* @var $checkout Object WC()->checkout() |
| 7 |
*/ |
| 8 |
|
| 9 |
// Do not allow directly accessing this file. |
| 10 |
use RadiusTheme\SB\Helpers\Fns; |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) { |
| 13 |
exit( 'This script cannot be accessed directly.' ); |
| 14 |
} |
| 15 |
|
| 16 |
$wrapper_classes = ! empty( $controllers['table_horizontal_scroll_on_mobile'] ) ? ' rtsb-table-horizontal-scroll-on-mobile' : ''; |
| 17 |
?> |
| 18 |
<div class="rtsb-checkout-order-review<?php echo esc_attr( $wrapper_classes ); ?>"> |
| 19 |
<?php |
| 20 |
if ( ! empty( $controllers['show_title'] ) ) { |
| 21 |
?> |
| 22 |
<h3 id="order_review_heading"><?php esc_html_e( 'Your order', 'shopbuilder' ); ?></h3> |
| 23 |
<?php |
| 24 |
} |
| 25 |
?> |
| 26 |
|
| 27 |
<?php |
| 28 |
$addons = 'on' === ( Fns::get_options( 'modules', 'product_add_ons' )['active'] ?? '' ); |
| 29 |
?> |
| 30 |
|
| 31 |
<div id="order_review" class="woocommerce-checkout-review-order<?php echo esc_attr( $addons ? ' has-product-addons' : '' ); ?>"> |
| 32 |
<?php do_action( 'woocommerce_checkout_order_review' ); ?> |
| 33 |
</div> |
| 34 |
|
| 35 |
<?php do_action( 'woocommerce_checkout_after_order_review' ); ?> |
| 36 |
|
| 37 |
</div> |
| 38 |
|