Revision 72ee4067
Von Jan Büren vor fast 3 Jahren hinzugefügt
SL/ShopConnector/Shopware6.pm | ||
---|---|---|
180 | 180 |
} |
181 | 181 |
undef $update_p->{partNumber}; # we dont need this one |
182 | 182 |
$ret = $self->connector->PATCH('api/product/' . $one_d->{id}, to_json($update_p)); |
183 |
die "Updating part with " . $part->partnumber . " failed: " . $ret->responseContent() unless (204 == $ret->responseCode()); |
|
183 |
unless (204 == $ret->responseCode()) { |
|
184 |
die t8('Part Description is too long for this Shopware version. It should have lower than 255 characters.') |
|
185 |
if $ret->responseContent() =~ m/Diese Zeichenkette ist zu lang. Sie sollte.*255 Zeichen/; |
|
186 |
die "Updating part with " . $part->partnumber . " failed: " . $ret->responseContent() unless (204 == $ret->responseCode()); |
|
187 |
} |
|
184 | 188 |
} else { |
185 | 189 |
# create part |
186 | 190 |
# 1. get the correct tax for this product |
Auch abrufbar als: Unified diff
Shopware: Bessere Fehlermeldung, dass Titel nur 255 Zeichen haben darf