We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e172896 commit f2cec15Copy full SHA for f2cec15
src/services/Csv.php
@@ -851,6 +851,11 @@ private function resolveProductExportMapping(Product $product): array
851
$productMap[$i] = [$fieldHandle, $heading];
852
}
853
854
+ $titleMap = collect($productMap)->filter(static fn ($mapping) => $mapping[1] === 'title')->first();
855
+ if ($titleMap === null) {
856
+ $productMap = array_merge([['title', 'title']], $productMap);
857
+ }
858
+
859
return $productMap;
860
861
0 commit comments