Support ticket Information:
http://wordpress.org/support/topic/remove-via-table-rate-text-at-checkout?replies=4#post-5646291
I have recently installed a Table Rate Shipping plugin that is great but the only problem is that when I use it, on the front end of the shop the shipping options drop-down options all say ‘Via Table Rate’ at the end. For example, instead of just saying ‘Ground Shipping – $10’ it says ‘Ground Shipping via Table Rate – $10’ I have contacted the plugin author and this appears to be something that Jigoshop adds, not the plugin itself.
The PHP File in Question is: jigoshop/shipping/shipping_method.class.php
I found this code but in the shipping methods file but am not sure what to edit to remove the service name:
/** * Retrieves the service name from the rate array based on the service selected. * Override this method if you wish to provide your own user friendly service name * @return - NULL if the rate by index doesn't exist, otherwise the service name associated with the * service_id */ public function get_selected_service($rate_index) { $my_rate = $this->get_selected_rate($rate_index); if ($this->title && $my_rate['service'] != $this->title) : $service = $my_rate['service'] . __(' via the ', 'jigoshop') . $this->title; else : $service = $my_rate['service']; endif; return ($my_rate == NULL ? $this->title : $service); }
Answer:
you should be able to achieve what you need by changing
$service = $my_rate['service'] . __(' via the ', 'jigoshop') . $this->title;
to
$service = $my_rate['service'] ;
note, that it would need to be done again after upgrade