full_label = $method->label; if ( $method->cost > 0 ) { if ( $woocommerce->cart->tax_display_cart == 'excl' ) { $method->full_label .= ': ' . woocommerce_price( $method->cost ); if ( $method->get_shipping_tax() > 0 && $woocommerce->cart->prices_include_tax ) { $method->full_label .= ' ' . $woocommerce->countries->ex_tax_or_vat() . ''; } } else { $method->full_label .= ': ' . woocommerce_price( $method->cost + $method->get_shipping_tax() ); if ( $method->get_shipping_tax() > 0 && ! $woocommerce->cart->prices_include_tax ) { $method->full_label .= ' ' . $woocommerce->countries->inc_tax_or_vat() . ''; } } } elseif ( $method->id !== 'free_shipping' ) { $method->full_label .= ' (' . __( 'Free', 'woocommerce' ) . ')'; } } // Print a single available shipping method as plain text if ( 1 === count( $available_methods ) ) { echo wp_kses_post( $method->full_label ) . ''; // Show select boxes for methods } elseif ( get_option('woocommerce_shipping_method_format') == 'select' ) { echo ''; // Show radio buttons for methods } else { echo ''; } // No shipping methods are available } else { if ( ! $woocommerce->customer->get_shipping_country() || ! $woocommerce->customer->get_shipping_state() || ! $woocommerce->customer->get_shipping_postcode() ) { echo '

' . __( 'Please fill in your details to see available shipping methods.', 'woocommerce' ) . '

'; } else { echo '

' . __( 'Sorry, it seems that there are no available shipping methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) . '

'; } }