return;
} $sql =
$generatorData['sql'
];
$originals =
$generatorData['originals'
];
$variants =
Shopware()->
Db()->
fetchAll($sql);
$counter = 1;
if ($mergeType === 1
) { $counter =
$offset;
} $allOptions =
$this->
getRepository()->
getAllConfiguratorOptionsIndexedByIdQuery()->
getResult();
// Iterate all selected variants to insert them into the database
foreach ($variants as $variant) { $variantData =
$this->
prepareVariantData($variant,
$detailData,
$counter,
$dependencies,
$priceVariations,
$allOptions,
$originals,
$product,
$mergeType);
if ($variantData === false
) { continue;
} // Merge the data with the original main detail data
$data =
array_merge($detailData,
$variantData);