Commit 4a98cdd2e0217cdd69d55df37f8b6a4e2ce88d1b
1 parent
24a7e405
-Import fix with empty status
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
common/modules/product/models/Import.php
@@ -164,6 +164,8 @@ | @@ -164,6 +164,8 @@ | ||
164 | // ===== Set stock ==== | 164 | // ===== Set stock ==== |
165 | if (!$city_name) { | 165 | if (!$city_name) { |
166 | if (!$count) { | 166 | if (!$count) { |
167 | + $productVariant->status = 0; | ||
168 | + $productVariant->save(false, ['status']); | ||
167 | continue; | 169 | continue; |
168 | } | 170 | } |
169 | $city_name = 'Склад'; | 171 | $city_name = 'Склад'; |