diff --git a/app/code/community/TIG/MyParcel2014/Model/Api/MyParcel.php b/app/code/community/TIG/MyParcel2014/Model/Api/MyParcel.php index bf2e8bbe..d23a1bd8 100755 --- a/app/code/community/TIG/MyParcel2014/Model/Api/MyParcel.php +++ b/app/code/community/TIG/MyParcel2014/Model/Api/MyParcel.php @@ -783,7 +783,7 @@ protected function _getConsignmentData(TIG_MyParcel2014_Model_Shipment $myParcel } } } - $data['customs_declaration']['weight'] = (int)$WeightData['totalWeight']; + $data['customs_declaration']['weight'] = (int)$WeightData['total_weight']; } @@ -796,8 +796,8 @@ protected function _getConsignmentData(TIG_MyParcel2014_Model_Shipment $myParcel unset($data['options']['weight']); } - if ($WeightData['totalWeight']){ - $data['physical_properties']['weight'] = (int)$WeightData['totalWeight']; + if ($WeightData['total_weight']){ + $data['physical_properties']['weight'] = (int)$WeightData['total_weight']; } /** @@ -854,7 +854,7 @@ public function getTotalWeight($totalWeight, $item, $isWoldShipment = false) { $price *= $qty; - return ['weight' => $weight, 'totalWeight' => $totalWeight, 'qty' => $qty, 'price' => $price]; + return ['weight' => $weight, 'total_weight' => $totalWeight, 'qty' => $qty, 'price' => $price]; }