• I used the function to add the weight of the order but in the shipping method still only received the initial weight

    add_filter(‘woocommerce_cart_contents_weight’, ‘add_package_weight_to_cart_contents_weight’);

    function add_package_weight_to_cart_contents_weight( $weight ) {
    $weight = $weight * 1.3; // add 30%
    return $weight;
    }

    Please help me!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dan

    (@dangoodman)

    Hello,

    The plugin calculates total order weight on its own, from the weight of each item in the cart. You would have to add weight per each item.

    Plugin Author Dan

    (@dangoodman)

    Both total order weight and per-item weights should be kept in sync. That’s how WooCommerce works by default and that’s what third-party plugins expect. So, the best option to change per-item weights to WooCommerce as well as the total order weight.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calculate Weight After Add extra weight’ is closed to new replies.