# shopbuilder/3.2.4/templates/elementor/checkout/shipping-method.php

ShopBuilder – WooCommerce Builder For Elementor, version 3.2.4. 56 lines.

- Page: https://pluginprobe.com/plugins/shopbuilder/3.2.4/code/templates/elementor/checkout/shipping-method.php
- Raw: https://pluginprobe.com/plugins/shopbuilder/3.2.4/raw/templates/elementor/checkout/shipping-method.php
- Modified: 2026-06-16T09:34:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shopbuilder/3.2.4/code/templates/elementor/checkout/shipping-method.php#L10-L20`.

```php
<?php
/**
 * Template variables:
 *
 * @var $controllers  array Widgets/Addons Settings
 */

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'This script cannot be accessed directly.' );
}
?>
<div class="rtsb-shipping-method">

    <table class="rtsb_woocommerce_shipping_methods">
		<?php

		/*
		wc()->frontend_includes();
		if(empty(WC()->cart->cart_contents)) {
			WC()->session = new \WC_Session_Handler();
			WC()->session->init();
			WC()->customer = new \WC_Customer(get_current_user_id(), true);
			WC()->cart = new \WC_Cart();
		}
        */

		WC()->cart->calculate_totals();

		if(WC()->cart && WC()->cart->needs_shipping() && WC()->cart->show_shipping()) :
			?>
			<?php do_action('woocommerce_review_order_before_shipping'); ?>
            <?php if( ! empty( $controllers['show_title'] ) ){ ?>
            <tr>
                <td>
                    <?php
		            $htmltag = ! empty( $controllers['title_html_tag'] ) ? $controllers['title_html_tag'] : 'h2';
                    $title_text = ! empty( $controllers['title_text'] ) ? $controllers['title_text'] : esc_html__('Shipping', 'shopbuilder' );
		            printf( '<%1$s class="shipping-method-title">%2$s</%1$s>', esc_html( $htmltag ), $title_text ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
		            ?>
                </td>
            </tr>
            <?php } ?>
			<?php wc_cart_totals_shipping_html(); ?>

			<?php do_action('woocommerce_review_order_after_shipping'); ?>

		<?php
		endif;

		?>
    </table>

</div>


```
