Dodano sprawdzenie, aby pominąć kombinacje produktów bez kodu EAN podczas aktualizacji cen w funkcji importu.
This commit is contained in:
8
.vscode/ftp-kr.sync.cache.json
vendored
8
.vscode/ftp-kr.sync.cache.json
vendored
@@ -11,13 +11,13 @@
|
||||
},
|
||||
"1_index_sitemap.xml": {
|
||||
"type": "-",
|
||||
"size": 460,
|
||||
"size": 234,
|
||||
"lmtime": 0,
|
||||
"modified": true
|
||||
},
|
||||
"1_pl_0_sitemap.xml": {
|
||||
"type": "-",
|
||||
"size": 261664,
|
||||
"size": 2903247,
|
||||
"lmtime": 0,
|
||||
"modified": true
|
||||
},
|
||||
@@ -2541,8 +2541,8 @@
|
||||
},
|
||||
"import-product.php": {
|
||||
"type": "-",
|
||||
"size": 32215,
|
||||
"lmtime": 1749162948207,
|
||||
"size": 32613,
|
||||
"lmtime": 1749496641396,
|
||||
"modified": false
|
||||
},
|
||||
"index.php": {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user