Revision bfb6853f
Von Jan Büren vor fast 3 Jahren hinzugefügt
SL/ShopConnector/Shopware6.pm | ||
---|---|---|
138 | 138 |
|
139 | 139 |
my $update_p; |
140 | 140 |
$update_p->{productNumber} = $part->partnumber; |
141 |
$update_p->{name} = $part->description;
|
|
141 |
$update_p->{name} = _u8($part->description);
|
|
142 | 142 |
$update_p->{description} = $shop_part->shop->use_part_longdescription |
143 |
? $part->notes
|
|
144 |
: $shop_part->shop_description;
|
|
143 |
? _u8($part->notes)
|
|
144 |
: _u8($shop_part->shop_description);
|
|
145 | 145 |
|
146 | 146 |
# locales simple check for english |
147 | 147 |
my $english = SL::DB::Manager::Language->get_first(query => [ description => { ilike => 'Englisch' }, |
... | ... | |
151 | 151 |
# add english translation for product |
152 | 152 |
# TODO (or not): No Translations for shop_part->shop_description available |
153 | 153 |
my $translation = first { $english->id == $_->language_id } @{ $part->translations }; |
154 |
$update_p->{translations}->{'en-GB'}->{name} = $translation->{translation};
|
|
155 |
$update_p->{translations}->{'en-GB'}->{description} = $translation->{longdescription};
|
|
154 |
$update_p->{translations}->{'en-GB'}->{name} = _u8($translation->{translation});
|
|
155 |
$update_p->{translations}->{'en-GB'}->{description} = _u8($translation->{longdescription});
|
|
156 | 156 |
} |
157 | 157 |
|
158 | 158 |
$update_p->{stock} = $::form->round_amount($part->onhand, 0) if ($todo =~ m/(stock|all)/); |
Auch abrufbar als: Unified diff
Shopware6: utf8 für json kodieren