diff --git a/app/code/community/TIG/MyParcel2014/Model/Api/MyParcel.php b/app/code/community/TIG/MyParcel2014/Model/Api/MyParcel.php index 9dffdb5f..f9c20fff 100755 --- a/app/code/community/TIG/MyParcel2014/Model/Api/MyParcel.php +++ b/app/code/community/TIG/MyParcel2014/Model/Api/MyParcel.php @@ -756,8 +756,14 @@ protected function _getConsignmentData(TIG_MyParcel2014_Model_Shipment $myParcel ); } + $itemDescription = $item->getName(); + + if (strlen($itemDescription) > 50) { + $itemDescription = substr($itemDescription, 0, 50); + } + $data['customs_declaration']['items'][] = array( - 'description' => $item->getName(), + 'description' => $itemDescription, 'amount' => $qty, 'weight' => (int)$weight * 1000, 'item_value' => array('amount' => $price * 100, 'currency' => 'EUR'), diff --git a/app/design/frontend/base/default/template/TIG/MyParcel2014/checkout/onepage/shipping_method/available.phtml b/app/design/frontend/base/default/template/TIG/MyParcel2014/checkout/onepage/shipping_method/available.phtml index 6e765f3e..3e47ea62 100755 --- a/app/design/frontend/base/default/template/TIG/MyParcel2014/checkout/onepage/shipping_method/available.phtml +++ b/app/design/frontend/base/default/template/TIG/MyParcel2014/checkout/onepage/shipping_method/available.phtml @@ -149,7 +149,7 @@ $toggleOptions = $helper->getConfig('toggle_options', 'checkout') == '1' ? true
- +