Revision 65de8c94
Von Werner Hahn vor mehr als 6 Jahren hinzugefügt
SL/ShopConnector/Shopware.pm | ||
---|---|---|
212 | 212 |
my $data = $self->connector->get("http://$url/api/categories"); |
213 | 213 |
|
214 | 214 |
my $data_json = $data->content; |
215 |
$main::lxdebug->dump(0, 'WH:DATA ',\$data_json); |
|
215 | 216 |
my $import = SL::JSON::decode_json($data_json); |
217 |
$main::lxdebug->dump(0, 'WH:DATA2 ',\$import); |
|
216 | 218 |
my @daten = @{$import->{data}}; |
217 | 219 |
my %categories = map { ($_->{id} => $_) } @daten; |
218 | 220 |
|
... | ... | |
221 | 223 |
$parent->{children} ||= []; |
222 | 224 |
push @{$parent->{children}},$_; |
223 | 225 |
} |
226 |
$main::lxdebug->dump(0, 'WH:DATA3 ',\@daten); |
|
224 | 227 |
|
225 | 228 |
return \@daten; |
226 | 229 |
} |
Auch abrufbar als: Unified diff
Shopmodul: Anpassungen an neuen Partcontroller