</td> </tr> <?php } ?> <?php if (WC()->cart->needs_shipping() && WC()->cart->show_shipping()) { ?> <?php do_action('woocommerce_review_order_before_shipping'); ?> <?php wc_cart_totals_shipping_html(); ?> <?php do_action('woocommerce_review_order_after_shipping'); ?> <?php } ?> <?php foreach (WC()->cart->get_fees() as $fee) { ?> <tr class="fee"> <th><?php
/** * @deprecated */ function woocommerce_cart_totals_shipping_html() { wc_cart_totals_shipping_html(); }
<?php foreach ( WC()->cart->get_coupons() as $code => $coupon ) : ?> <tr class="cart-discount coupon-<?php echo esc_attr( $code ); ?>"> <th><?php wc_cart_totals_coupon_label( $coupon ); ?></th> <td><?php wc_cart_totals_coupon_html( $coupon ); ?></td> </tr> <?php endforeach; ?> <?php if ( WC()->cart->needs_shipping() && WC()->cart->show_shipping() ) : ?> <?php //do_action( 'woocommerce_cart_totals_before_shipping' ); ?> <?php //wc_cart_totals_shipping_html(); ?> <?php //do_action( 'woocommerce_cart_totals_after_shipping' ); ?> <tr class="shipping"> <th><?php echo _e('Delivery' , THEMEDOMAIN ); ?></th> <td><?php wc_cart_totals_shipping_html(); ?></td> </tr> <?php /* elseif ( WC()->cart->needs_shipping() ) : ?> <tr class="shipping"> <th><?php echo _e('Delivery' , THEMEDOMAIN ); ?></th> <td><?php //woocommerce_shipping_calculator(); ?></td> </tr> */ endif; ?> <?php foreach ( WC()->cart->get_fees() as $fee ) : ?> <tr class="fee"> <th><?php echo esc_html( $fee->name ); ?></th> <td><?php wc_cart_totals_fee_html( $fee ); ?></td>
function mango_shipping_calculator() { $cart_ver = mango_cart_version(); if (WC()->cart->needs_shipping()) { if ($cart_ver == "v_1") { ?> <div class="col-md-6"> <?php } ?> <h4 class="title-border-tb"><?php _e("Get shipping Estimates", 'mango'); ?> </h4> <?php if (WC()->cart->needs_shipping() && WC()->cart->show_shipping()) { ?> <?php do_action('woocommerce_cart_totals_before_shipping'); ?> <?php wc_cart_totals_shipping_html(); ?> <?php do_action('woocommerce_cart_totals_after_shipping'); ?> <?php } elseif (WC()->cart->needs_shipping()) { ?> <?php woocommerce_shipping_calculator(); ?> <?php } if ($cart_ver == "v_1") { ?> </div> <?php } } }
/** * output review order shipping */ function hwoo_review_order_shipping() { if (WC()->cart->needs_shipping() && WC()->cart->show_shipping()) { do_action('woocommerce_review_order_before_shipping'); wc_cart_totals_shipping_html(); do_action('woocommerce_review_order_after_shipping'); } }