• Hi,

    The weight and sizes that you pass on to your API for the price calculations should not come from the product’s weight and size, but from the cart item data instead.

    Some plugins or custom implementations may use the woocommerce_before_calculate_totals filter to programmatically change these values, but they are ignored by the plugin, passing on static values set in the edit product page.

    The fix should be as simple as replacing the $cartItem variable with $quoteItem['data'] in class-shippit-method.php lines 265-268. The variables are unintuitively named, because $cartItem refers to a WC_Product instance 🙂

    Thanks!

Viewing 1 replies (of 1 total)
  • I’m sure this is a complicated area, but can I add that from a vendor perspective I currently have to but the volumetric weight into the item, not the item weight to get shipping to calculate correctly. It would be much better if the volumetric weight was calculated from the dimensions, so the item weight could reflect the actual weight of the item.

    Along with this, it would be good if the vendor could add “padding” to the calculation to allow for packaging around the items.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.