Commit 804e7a0790356179b645cbdd42eb8f8390cd68b1
1 parent
89729c1d
big commti
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
common/modules/product/models/Import.php
@@ -432,6 +432,7 @@ class Import extends Model { | @@ -432,6 +432,7 @@ class Import extends Model { | ||
432 | $MOD_ARRAY[] = $_productVariant->product_variant_id; | 432 | $MOD_ARRAY[] = $_productVariant->product_variant_id; |
433 | 433 | ||
434 | if ($mod_image) { | 434 | if ($mod_image) { |
435 | + die($mod_image); | ||
435 | $source_image = Yii::getAlias('@uploadDir') . '/product_images/'. urlencode($mod_image); | 436 | $source_image = Yii::getAlias('@uploadDir') . '/product_images/'. urlencode($mod_image); |
436 | if (file_exists($source_image)) { | 437 | if (file_exists($source_image)) { |
437 | if (($variantImage = ProductImage::find()->andFilterWhere(['ilike', 'image', $mod_image])->andFilterWhere(['product_variant_id' => $_productVariant->product_variant_id])->one()) === null) { | 438 | if (($variantImage = ProductImage::find()->andFilterWhere(['ilike', 'image', $mod_image])->andFilterWhere(['product_variant_id' => $_productVariant->product_variant_id])->one()) === null) { |