Do not display (FREE!) after the free shipping method
-
Hey guys,
So this might be a stupid thing, but I can’t seem to figure out the way to do it.. Maybe you can help.
I have an option of shipping which is paid by the customer upon receival, so the value of the shipping for me is 0. When I leave the value as 0 in the settings, it shows me the my-shipping-method (FREE!) in the shipping options. And I mean, technically it’s free for me, but definitely not free for the customer. Not to mislead them, I’d want to take out this word (FREE!) from all shipping methods at all. However, I can’t seem to figure out where to do that!
I figured it’s in cart-shipping.php file, somewhere here:
ul id="shipping_method"> <?php foreach ( $available_methods as $method ) : ?> <li> <input type="radio" name="shipping_method[<?php echo $index; ?>]" data-index="<?php echo $index; ?>" id="shipping_method_<?php echo $index; ?>_<?php echo sanitize_title( $method->id ); ?>" value="<?php echo esc_attr( $method->id ); ?>" <?php checked( $method->id, $chosen_method ); ?> class="shipping_method" /> <label for="shipping_method_<?php echo $index; ?>_<?php echo sanitize_title( $method->id ); ?>"><?php echo wp_kses_post( wc_cart_totals_shipping_method_label( $method ) ); ?></label> </li> <?php endforeach; ?> </ul>
But where exactly? I’d love to the simple ‘display: none’ in CSS..
Anyone can help perhaps?
Thanks a lot!
Oksana
- The topic ‘Do not display (FREE!) after the free shipping method’ is closed to new replies.