From 73c26a9e27ac539457fe92f13e5548ae35dadd35 Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Fri, 25 Jun 2021 08:26:53 +0200 Subject: [PATCH] Shop: WooCommerce Syntaxfehler --- SL/ShopConnector/WooCommerce.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/ShopConnector/WooCommerce.pm b/SL/ShopConnector/WooCommerce.pm index c2e7c6fd4..d6e23f77a 100644 --- a/SL/ShopConnector/WooCommerce.pm +++ b/SL/ShopConnector/WooCommerce.pm @@ -32,6 +32,7 @@ sub get_one_order { if($answer->{success}) { my $shoporder = $answer->{data}; + $main::lxdebug->dump(0, 'WH: ANSWER ', $answer); $dbh->with_transaction( sub{ #update status on server $shoporder->{status} = "processing"; @@ -161,7 +162,7 @@ sub import_data_to_shop_order { $shop_order->positions($position-1); if ( $self->config->shipping_costs_parts_id ) { - my $shipping_part = SL::DB::Part->find_by( id => $self->config->shipping_costs_parts_id); + my $shipping_part = SL::DB::Manager::Part->find_by( id => $self->config->shipping_costs_parts_id); my %shipping_pos = ( description => $import->{data}->{dispatch}->{name}, partnumber => $shipping_part->partnumber, @@ -526,6 +527,7 @@ sub send_request { my %return; if($answer->is_success && $type eq 'application/json'){ my $data_json = $answer->content; + $main::lxdebug->dump(0, 'WH: JSON ', $data_json); my $json = SL::JSON::decode_json($data_json); %return = ( success => 1, -- 2.20.1