Revision 73c26a9e
Von Werner Hahn vor mehr als 3 Jahren hinzugefügt
SL/ShopConnector/WooCommerce.pm | ||
---|---|---|
32 | 32 |
if($answer->{success}) { |
33 | 33 |
my $shoporder = $answer->{data}; |
34 | 34 |
|
35 |
$main::lxdebug->dump(0, 'WH: ANSWER ', $answer); |
|
35 | 36 |
$dbh->with_transaction( sub{ |
36 | 37 |
#update status on server |
37 | 38 |
$shoporder->{status} = "processing"; |
... | ... | |
161 | 162 |
$shop_order->positions($position-1); |
162 | 163 |
|
163 | 164 |
if ( $self->config->shipping_costs_parts_id ) { |
164 |
my $shipping_part = SL::DB::Part->find_by( id => $self->config->shipping_costs_parts_id); |
|
165 |
my $shipping_part = SL::DB::Manager::Part->find_by( id => $self->config->shipping_costs_parts_id);
|
|
165 | 166 |
my %shipping_pos = ( |
166 | 167 |
description => $import->{data}->{dispatch}->{name}, |
167 | 168 |
partnumber => $shipping_part->partnumber, |
... | ... | |
526 | 527 |
my %return; |
527 | 528 |
if($answer->is_success && $type eq 'application/json'){ |
528 | 529 |
my $data_json = $answer->content; |
530 |
$main::lxdebug->dump(0, 'WH: JSON ', $data_json); |
|
529 | 531 |
my $json = SL::JSON::decode_json($data_json); |
530 | 532 |
%return = ( |
531 | 533 |
success => 1, |
Auch abrufbar als: Unified diff
Shop: WooCommerce Syntaxfehler