Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Mar 22, 2024
1 parent 9db1a9a commit d904d29
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/console/controllers/SkeeksSuppliersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use skeeks\cms\relatedProperties\propertyTypes\PropertyTypeList;
use skeeks\cms\relatedProperties\propertyTypes\PropertyTypeNumber;
use skeeks\cms\relatedProperties\propertyTypes\PropertyTypeText;
use skeeks\cms\shop\components\ShopComponent;
use skeeks\cms\shop\models\BrandCmsContentElement;
use skeeks\cms\shop\models\ShopBrand;
use skeeks\cms\shop\models\ShopCmsContentElement;
Expand Down Expand Up @@ -775,6 +776,12 @@ public function actionUpdateProducts($is_new = 1, $page = 1)
if ($page < $pageCount) {
unset($response);
$this->actionUpdateProducts($is_new, $page + 1);
} else {
//Это последняя страница и есть товары, значит обновить цены
if ($total) {
$this->stdout("Обновление цен\n");
ShopComponent::updateProductPrices();
}
}
}

Expand Down

0 comments on commit d904d29

Please sign in to comment.