From c0b9e3a8b36f0dabd8acf0946191dbc6d164ffc3 Mon Sep 17 00:00:00 2001 From: iesus Date: Thu, 8 Nov 2018 10:11:19 +0000 Subject: [PATCH] strip shipping characters above 40 --- app/code/community/Svea/Checkout/Model/Payment/Api/Invoice.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/community/Svea/Checkout/Model/Payment/Api/Invoice.php b/app/code/community/Svea/Checkout/Model/Payment/Api/Invoice.php index c33c382..104b28b 100644 --- a/app/code/community/Svea/Checkout/Model/Payment/Api/Invoice.php +++ b/app/code/community/Svea/Checkout/Model/Payment/Api/Invoice.php @@ -597,6 +597,7 @@ protected function _getActionRows( } } + $shippingMethod = mb_substr($shippingMethod, 0, 40); if ( ($shippingMethod && $shippingMethod == $row['Name']) || (empty($shippingMethod) && $row['UnitPrice'] == 0 && !$row['ArticleNumber'])