public static function get_tax_for_display($tax_class) { $return = false; if (jigoshop_cart::get_tax_amount($tax_class, false) > 0 && jigoshop_cart::get_tax_rate($tax_class) > 0 || jigoshop_cart::get_tax_rate($tax_class) !== false) { $return = self::$tax->get_tax_class_for_display($tax_class) . ' (' . (double) jigoshop_cart::get_tax_rate($tax_class) . '%) '; // only show estimated tag when customer is on the cart page and no shipping calculator is enabled to be able to change country if (!jigoshop_shipping::show_shipping_calculator() && is_cart()) { $return .= '<small>' . sprintf(__('estimated for: %s', 'jigoshop'), jigoshop_countries::get_country(jigoshop_tax::get_customer_country())) . '</small>'; } } return $return; }