I'm trying to add 0.1 lb (which is arround 50 gramm - any package material will have that weight) just to meet the minimum weight required by UPS which is 0.1 LB/KG
Problem is that our products mostly have weight 10-20 gramms, so they not meet the min weight required by UPS
/**
* Get the total weight for the order, based on which the proper shipping rate
* can be selected.
*
* @param object $cart Cart object
* @return float Total weight for the order
*/
protected function getOrderWeight (VirtueMartCart $cart, $to_weight_unit) {
$weight = 0;
$to_weight_unit = substr ($to_weight_unit, 0, 2);
foreach ($cart->products as $product) {
$weight += (ShopFunctions::convertWeigthUnit ($product->product_weight, $product->product_weight_uom, $to_weight_unit) * $product->quantity);
}
return $weight;
}
so instead of $weight = 0; it would be $weight = 0.1;
but there is no luck with this change