Home Get the order total shipping in Woocommerce 3
Reply: 0

Get the order total shipping in Woocommerce 3

user542 Published in May 27, 2018, 3:34 am

I'm trying to get the shipping method or cost of shipping for a WooCommerce order - I'm writing a custom email template that is different depending on free delivery vs paid delivery.

I found a function called get_total_shipping(), but this is now deprecated and I cannot find a replacement - does one exist?

I've noticed that the shipping amount is stored in a hidden meta field (_order_shipping), which I can access, but I worry that this might break on future WooCommerce updates.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30402 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO