We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 859cba3 + 2704c7c commit 38201e9Copy full SHA for 38201e9
src/Adapters/PrestaShopAdapter.php
@@ -66,6 +66,14 @@ private function transformProduct(array $product): array
66
'variants' => [],
67
];
68
69
+ // Add optional product identifiers
70
+ if (isset($product['ean13']) && $product['ean13'] !== null && $product['ean13'] !== '') {
71
+ $result['ean13'] = (string) $product['ean13'];
72
+ }
73
+ if (isset($product['mpn']) && $product['mpn'] !== null && $product['mpn'] !== '') {
74
+ $result['mpn'] = (string) $product['mpn'];
75
76
+
77
// Handle localized product name
78
$this->addLocalizedField($result, 'name', $product['localizedNames'] ?? []);
79
0 commit comments