Forums
(@mineotserv)
9 years, 6 months ago
Or instead of adding new filter, use in plugin inbuilt woocommerce function $weight = WC()->cart->cart_contents_weight; (because this function has filter “woocommerce_cart_contents_weight”)
$weight = WC()->cart->cart_contents_weight;