public static function get_cart_shipping_title() { // in this instance we want the title of the shipping method only. If no title is provided, use the label. $title = jigoshop_shipping::get_chosen_method_title(); $label = $title ? $title : jigoshop_shipping::get_label(); if (!$label) { return false; } return sprintf(__('via %s', 'jigoshop'), $label); }