fix: Update import logic to skip combinations without EAN and adjust file size in sync cache

This commit is contained in:
2025-06-09 23:32:04 +02:00
parent ebb42a29fc
commit 1984666a3c
2 changed files with 6 additions and 3 deletions

View File

@@ -78,6 +78,9 @@ foreach ( $products_array as $product )
foreach ( $product['combinations'] as $combination )
{
if ( empty( $combination['ean'] ) )
continue;
$sql_combination = 'UPDATE `' . _DB_PREFIX_ . 'product_attribute` SET `price` = ' . (float)$combination['price'] . ' WHERE `reference` = \'' . pSQL($combination['ean']) . '\'';
$result_combination = Db::getInstance()->execute($sql_combination);