Created
October 6, 2022 06:50
-
-
Save danielborzov/7b355e1b9dc8603459eb5718eea6af31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/shopify_import/func.php b/app/addons/shopify_import/func.php | |
index 6d5584b1f7..9c55306037 100644 | |
--- a/app/addons/shopify_import/func.php | |
+++ b/app/addons/shopify_import/func.php | |
@@ -83,6 +83,7 @@ function fn_shopify_import_filter_data(array $import_data, array $params = []) | |
$line_count | |
) | |
) { | |
+ $line_count++; | |
continue; | |
} | |
@@ -116,7 +117,7 @@ function fn_shopify_import_filter_data(array $import_data, array $params = []) | |
} | |
$result->setData([ | |
- 'filtered_data' => $filtered_data, | |
+ 'filtered_data' => array_values($filtered_data), | |
'filtering_params' => $filtering_params | |
]); | |
@@ -270,6 +271,8 @@ function fn_shopify_import_filter_images(array &$filtered_data, array $group, ar | |
$filtered_data[$main_product_line]['Images'] .= '///' . $line[ShopifyFields::IMAGE_SRC]; | |
} | |
+ unset($filtered_data[$line_count]); | |
+ | |
return false; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment