feat: save per-integration name/short_description/description on product import
This commit is contained in:
@@ -780,6 +780,16 @@ final class SettingsController
|
||||
$variantWarnings = $this->syncImportedProductVariants($savedProductId, $externalProduct);
|
||||
$this->storeProductImportVariantWarnings($savedProductId, $variantWarnings);
|
||||
}
|
||||
// Save per-integration content override
|
||||
if ($integrationId > 0) {
|
||||
$this->products->upsertIntegrationTranslation(
|
||||
$savedProductId,
|
||||
$integrationId,
|
||||
$normalized['translation']['name'] ?? null,
|
||||
$normalized['translation']['short_description'] ?? null,
|
||||
$normalized['translation']['description'] ?? null
|
||||
);
|
||||
}
|
||||
$this->pdo->commit();
|
||||
} catch (Throwable $exception) {
|
||||
if ($this->pdo->inTransaction()) {
|
||||
|
||||
Reference in New Issue
Block a user