default.php
35 lines
| 1 | <?php defined('ABSPATH') || exit;?> |
| 2 | <div class="shopengine-checkout-shipping-methods"> |
| 3 | <table class="shopengine_woocommerce_shipping_methods"> |
| 4 | <?php |
| 5 | |
| 6 | \ShopEngine\Widgets\Widget_Helper::instance()->wc_template_filter(); |
| 7 | |
| 8 | wc()->frontend_includes(); |
| 9 | |
| 10 | if(empty(WC()->cart->cart_contents)) { |
| 11 | |
| 12 | WC()->session = new \WC_Session_Handler(); |
| 13 | WC()->session->init(); |
| 14 | WC()->customer = new \WC_Customer(get_current_user_id(), true); |
| 15 | WC()->cart = new \WC_Cart(); |
| 16 | |
| 17 | } |
| 18 | |
| 19 | WC()->cart->calculate_totals(); |
| 20 | |
| 21 | if(WC()->cart && WC()->cart->needs_shipping() && WC()->cart->show_shipping()) : |
| 22 | ?> |
| 23 | <?php do_action('woocommerce_review_order_before_shipping'); ?> |
| 24 | |
| 25 | <?php wc_cart_totals_shipping_html(); ?> |
| 26 | |
| 27 | <?php do_action('woocommerce_review_order_after_shipping'); ?> |
| 28 | |
| 29 | <?php |
| 30 | endif; |
| 31 | |
| 32 | ?> |
| 33 | </table> |
| 34 | </div> |
| 35 |