diff --git a/autoload/.DS_Store b/autoload/.DS_Store new file mode 100644 index 0000000..3239922 Binary files /dev/null and b/autoload/.DS_Store differ diff --git a/autoload/front/.DS_Store b/autoload/front/.DS_Store new file mode 100644 index 0000000..7285fd1 Binary files /dev/null and b/autoload/front/.DS_Store differ diff --git a/cron.php b/cron.php index c9e73a1..63b7534 100644 --- a/cron.php +++ b/cron.php @@ -465,7 +465,8 @@ if ( $apilo_settings['enabled'] and $apilo_settings['sync_orders'] and $apilo_se $order_message .= '
'; } - if ( strlen( $order_message ) > 1024 ) + //TODO: ostatnio był problem kiedy wiadomość miała mniej 1024 znaki ale zawierała przeniesienie tekstu '
' i do tego jeszcze miała emoji. Wtedy APILO tego nie przepuszczał. + if ( strlen( $order_message ) > 900 ) $order_message = '

Wiadomość do zamówienia była zbyt długa. Sprawdź szczegóły w panelu sklepu

'; // add transport as product @@ -588,8 +589,10 @@ if ( $apilo_settings['enabled'] and $apilo_settings['sync_orders'] and $apilo_se } elseif ( $response['message'] == 'Validation error' ) { - \S::pre( $response ); - \S::pre( $postData ); + echo '
';
+      echo print_r( $response, true );
+      echo print_r( $postData, true );
+      echo '
'; } else {