WooCommerce: Hide “Shipping Via ___” @ Thank You Page, View Order Page
Especially when you do a lot of custom shipping, showing the shipping method title may not be a good idea. Honestly, the default “via ___” suffix beside the shipping cost doesn’t make much sense anyway.
So, let’s get rid of it. With a 1 liner. Enjoy!
PHP Snippet: Remove “via ___” Shipping Amount Suffix @ WooCommerce Thank You & My Account > View Order Pages
This code still works, unless you report otherwise. To exclude conflicts, temporarily switch to the Storefront theme, disable all plugins except WooCommerce, and test the snippet again: WooCommerce troubleshooting 101
Related content
WooCommerce: Remaining $$$ to Get Free Shipping Notification @ Cart This is a very cool snippet that many of you should use to increase your average order value. Ecommerce customers who are near the “free shipping” threshold will try to add more products to the cart in order to qualify for free shipping. It’s pure psychology. So, here’s how we show a simple message on […]
WooCommerce: Separate Login, Registration, My Account Pages There are times when you need to send logged out customers to a Login page and unregistered customers to a standalone Register page. As you know, the WooCommerce My Account page, which contains the Login Username or email address *Required Password *Required Remember me Log in Lost your password? shortcode, has both Login and Registration forms when […]
WooCommerce: Add New Tab @ My Account Page One of the features of Business Bloomer Club is the provision of Premium WooCommerce Q&A Support to supporters who enroll. So, how to add an extra “tab” to the My Account page, and how to add content inside it? Here’s the code I used (thanks to Mike Jolley for inspiration) – feel free to leave […]
WooCommerce: Redirect to Custom Thank you Page How can you redirect customers to a beautifully looking, custom, thank you page? Thankfully you can add some PHP code to your functions.php or install a simple plugin and define a redirect to a custom WordPress page (as opposed to the default order-received endpoint). This is a great way for you to add specific up-sells, […]
WooCommerce: Weight-Based Shipping Methods With WooCommerce you get 3 default shipping methods: Flat Rate, Free Shipping, Local Pickup. For each one you can define a cost, however there is no way to set up some “weight” restrictions. So, what if you want to display a rate for orders below 10 kg, and another shipping rate for orders above that […]
Rodolfo Melogli
Business Bloomer Founder
Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as an independent WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza. Follow @rmelogli
4 thoughts on “WooCommerce: Hide “Shipping Via ___” @ Thank You Page, View Order Page”
Judith
Thanks! Works perfectly. And I agree — this “via” never made any sense!
Hello Rodolfo, thank you very much once again (that default suffix doesn’t make sense to most of us I think).
It works great with flat_rate but not with local_pickup.
Although I have made heavy modifications to Shoptimizer and haven’t tested it with any default theme.
Thank you. Yes, for $0 Local Pickup there is no “Shipping via ___” suffix anyway. In case Local Pickup is > $0, the “via Local pickup” is correctly removed
Questions? Feedback? Customization? Leave your comment now! _____
If you are writing code, please wrap it like so: [php]code_here[/php]. Failure to complying with this, as well as going off topic or not using the English language will result in comment disapproval. You should expect a reply in about 2 weeks - this is a popular blog but I need to get paid work done first. Please consider joining the Business Bloomer Club to get quick WooCommerce support. Thank you!
Thanks! Works perfectly. And I agree — this “via” never made any sense!
Great!
Hello Rodolfo, thank you very much once again (that default suffix doesn’t make sense to most of us I think).
It works great with flat_rate but not with local_pickup.
Although I have made heavy modifications to Shoptimizer and haven’t tested it with any default theme.
Thank you. Yes, for $0 Local Pickup there is no “Shipping via ___” suffix anyway. In case Local Pickup is > $0, the “via Local pickup” is correctly removed