0

Recently we give free shipping to all german customers but bill the austria and switzerland. On our product pages we show the free shipping, but as needed for german law, it must be called "free shipping in Germany". Where can I change this text?

Couldnt find a solution in WooCommerce setting nor in WooCommerce German Market Plugin. Thanks for help!

3 Answers 3

1

I found this answer . Hope this will help you. maybe with wpml for multi-lang

https://stackoverflow.com/questions/38296093/woocommerce-free-shipping-remove-raw-or-change-the-text-name-on-checkout-and-e

0

You need to check location first and then change the display text or you can change the text from the back end. This link show you how.

-2

you can use css on this. get the selector of free shipping. set display to hidden then use psuedo element :after to place the new text

You can use this filter. To change the shipping title. This would be SEO friendly.

function filter_woocommerce_shipping_package_name( $sprintf, $i, $package ) { 

    return $sprintf; 
}; 

add_filter( 'woocommerce_shipping_package_name', 'filter_woocommerce_shipping_package_name', 10, 3 ); 

Heres some reference

https://docs.woocommerce.com/wc-apidocs/source-function-wc_cart_totals_shipping_html.html#223

https://docs.woocommerce.com/wc-apidocs/hook-docs.html

2
  • I had this in mind, but its not very secure for further updates. But thanks for this idea! Do you know it this is SEO-friendly?
    – Krystian
    Commented Aug 8, 2017 at 3:52
  • yeah I think so, this is not seo friendly. Commented Aug 8, 2017 at 3:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.