ver. 0.319: usunięcie shopPRO eksportu produktów + rozszerzenie API o custom_fields i security_information

- Usunięto shopproExportProduct() z IntegrationsRepository
- Usunięto shoppro_product_export() z IntegrationsController
- Usunięto przycisk "Eksportuj do shopPRO" z ShopProductController
- ProductRepository: dodano custom_fields i security_information do odpowiedzi API
- Zaktualizowano docs/API.md i testy

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 12:29:13 +01:00
parent 4e720c5689
commit 4f66dbe42c
9 changed files with 20 additions and 215 deletions

View File

@@ -265,16 +265,6 @@ class IntegrationsController
exit;
}
public function shoppro_product_export(): void
{
$productId = (int) \Shared\Helpers\Helpers::get( 'product_id' );
$result = $this->repository->shopproExportProduct( $productId );
\Shared\Helpers\Helpers::alert( (string)($result['message'] ?? 'Wystapil blad podczas eksportu produktu.') );
header( 'Location: /admin/shop_product/view_list/' );
exit;
}
private function fetchApiloListWithFeedback( string $type, string $label ): void
{
$result = $this->repository->apiloFetchListResult( $type );

View File

@@ -140,14 +140,6 @@ class ShopProductController
}
}
if ( $shopproEnabled ) {
$row['_actions'][] = [
'label' => 'Eksportuj do shopPRO',
'url' => '/admin/integrations/shoppro_product_export/product_id=' . $id,
'class' => 'btn btn-xs btn-system',
'confirm' => 'Na pewno chcesz wyeksportowac ten produkt do shopPRO?',
];
}
$rows[] = $row;
}