Some of my products has custom attribute pa_ves-g
. In cart total I need to get entire volume of all products in cart.
I found this code for weight:
function myprefix_cart_extra_info() {
global $woocommerce;
echo '<div class="cart-extra-info">';
echo '<p class="total-weight">' . __('Total weight', 'woocommerce');
echo ' ' . $woocommerce->cart->cart_contents_weight . ' ' . 'kg';
echo '</p>';
echo '</div>';
}
So how to do the same for pa_ves-g
?
Thanks.