• Resolved AnnaGallow

    (@annagallow)


    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.

    Any help that you could provide in removing the ‘Via Table Rate’ would be much appreciated! Thank you in advance for your help!

    https://wordpress.org/plugins/jigoshop/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter AnnaGallow

    (@annagallow)

    To follow up, 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);
        }

    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 ater upgrade

    Thread Starter AnnaGallow

    (@annagallow)

    Thank you so much! I am hesitant to edit php myself and I therefore greatly appreciate your help! I love Jigoshop and the extensions that are available, and your support really is awesome!

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove 'Via Table Rate' text at checkout’ is closed to new replies.