Created
June 22, 2018 05:13
-
-
Save MrAlejandro/379bceb9073ab6cee64f8abbc131aacf 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/product_variations/schemas/exim/products.functions.php b/app/addons/product_variations/schemas/exim/products.functions.php | |
index d472fa6eea..a6f5ac7ba9 100644 | |
--- a/app/addons/product_variations/schemas/exim/products.functions.php | |
+++ b/app/addons/product_variations/schemas/exim/products.functions.php | |
@@ -85,6 +85,12 @@ function fn_product_variations_exim_processing_by_product_type($data, &$result, | |
if ($data_item['product_type'] === ProductManager::PRODUCT_TYPE_VARIATION) { | |
foreach ($product as $exim_field => $value) { | |
+ if (!empty($export_fields['multilang'][$exim_field]['allow_for_variation']) | |
+ || !empty($export_fields['main'][$exim_field]['allow_for_variation']) | |
+ ) { | |
+ continue; | |
+ } | |
+ | |
if (isset($export_fields['multilang'][$exim_field]['db_field'])) { | |
$field = $export_fields['multilang'][$exim_field]['db_field']; | |
} elseif (isset($export_fields['main'][$exim_field]['db_field'])) { | |
diff --git a/app/addons/product_variations/schemas/exim/products.post.php b/app/addons/product_variations/schemas/exim/products.post.php | |
index 53b1f54d12..778874f65d 100644 | |
--- a/app/addons/product_variations/schemas/exim/products.post.php | |
+++ b/app/addons/product_variations/schemas/exim/products.post.php | |
@@ -114,4 +114,7 @@ | |
'import_only' => true, | |
); | |
+$schema['export_fields']['Items in box']['allow_for_variation'] = true; | |
+$schema['export_fields']['Box size']['allow_for_variation'] = true; | |
+ | |
return $schema; | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment