Woocommerce get cart total price in a number format [closed]
Update 2020 Answer See flytech’s answer for a solution using the native WooCommerce API. Note / Caveat If you’re going to do proper arithmetic with monetary values, always use signed integers (!) representing the smallest denomination of a given currency (Cent, Penny, Paisa, Dirham, e.g.). Only convert back to decimal fractions in the presentation layer … Read more