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
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…
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…
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…
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